Nousu Custom API
Standaard API-contract waarmee bedrijven met een eigen e-commerce systeem integreren met het Nousu AI-klantenserviceplatform. **Hoe het werkt**: je implementeert de onderstaande endpoints in je eigen backend. Nousu roept deze aan wanneer een klant via de chatbot vraagt naar bestellingen, retouren of producten.
Authenticatie
Alle requests vereisen een Bearer token in de Authorization header:
Authorization: Bearer {jouw_api_token}
Content-Type: application/json
User-Agent: Nousu/1.0Orders
Bestelinformatie ophalen
Returns
Retouren aanmaken en updaten
Products
Producten zoeken en catalogus synchroniseren
Customers
Klantgegevens opzoeken en verifiëren
Mutations
Gegevens wijzigen (adres, e-mail)
Policies
Winkelbeleid en kortingscodes
Webhooks
Real-time event notificaties (optioneel)
Schemas
Hieronder staan alle datamodellen die gebruikt worden in requests en responses. Verplichte velden zijn gemarkeerd.
ErrorResponse
successverplichterrorverplichtcodeverplichtMachine-leesbare foutcode
messageverplichtLeesbare foutmelding
detailsOptionele extra context
Address
namestreetcitypostalCodecountryISO 3166-1 alpha-2 landcode
OrderResponse
successverplichtdataverplichtidverplichtnumberverplichtstatusverplichtpendingprocessingshippeddeliveredcancelledcreatedAtverplichtdisplayFulfillmentStatusverplichtLeesbare fulfillment-status (bijv. 'Verzonden', 'In verwerking')
displayFinancialStatusverplichtLeesbare betaalstatus (bijv. 'Betaald', 'Terugbetaald')
customerverplichtemailphonenameitemsverplichtidverplichttitleverplichtquantityverplichtvarianttotalsverplichtamountverplichtBedrag als string (bijv. '49.99')
currencyCodeverplichtISO 4217 valutacode
fulfillmentsverplichtidstatustrackingInfoStandardOrder
idverplichtnumberverplichtstatusverplichtpendingprocessingshippeddeliveredcancelledcreatedAtverplichtdisplayFulfillmentStatusverplichtLeesbare fulfillment-status (bijv. 'Verzonden', 'In verwerking')
displayFinancialStatusverplichtLeesbare betaalstatus (bijv. 'Betaald', 'Terugbetaald')
customerverplichtemailphonenameitemsverplichtidverplichttitleverplichtquantityverplichtvarianttitletotalsverplichtamountverplichtBedrag als string (bijv. '49.99')
currencyCodeverplichtISO 4217 valutacode
fulfillmentsverplichtidstatustrackingInfonumberTrack & trace nummer
urlLink naar tracking pagina
companyVervoerder
OrderCustomer
emailphonenameOrderItem
idverplichttitleverplichtquantityverplichtvarianttitleOrderTotals
amountverplichtBedrag als string (bijv. '49.99')
currencyCodeverplichtISO 4217 valutacode
Fulfillment
idstatustrackingInfonumberTrack & trace nummer
urlLink naar tracking pagina
companyVervoerder
CreateReturnRequest
orderNumberverplichtcustomerEmailverplichtreasonverplichtReden voor retour
itemsitemIdverplichtquantityverplichtreasoncustomerMessageOptioneel bericht van de klant
UpdateReturnRequest
statusverplichtapprovedrejectedprocessingcompletedstaffNotesrefundAmountBedrag als string (bijv. '24.99')
refundMethodbijv. 'original_payment_method', 'store_credit'
ReturnResponse
successverplichtdataverplichtidverplichtstatusverplichtpendingapprovedrejectedprocessingcompletedorderNumberverplichtestimatedProcessingTimereturnInstructionsreturnAddressreturnLabelURL naar retourlabel PDF
instructionsProductSearchResponse
successverplichtdataverplichtqueryverplichtresultsverplichtidverplichttitleverplichtdescriptionpriceverplichtimagesvariantsurlverplichtcategoriesrelevanceScoretotalResultsverplichtprocessingTimeProduct
idverplichttitleverplichtdescriptionpriceverplichtamountverplichtcurrencyCodeverplichtimagesurlaltvariantsidtitleavailablepriceurlverplichtcategoriesrelevanceScoreProductCatalogPage
successverplichtdataverplichtproductsverplichtidverplichttitleverplichtdescriptionpriceverplichtimagesvariantsurlverplichtcategoriesrelevanceScorepaginationverplichtpageverplichtlimitverplichttotalPagesverplichttotalProductsverplichthasNextPageCustomerLookupResponse
successverplichtdataverplichtidverplichtemailverplichtphonenamecreatedAtordersCountdefaultAddressnamestreetcitypostalCodecountryISO 3166-1 alpha-2 landcode
UpdateAddressRequest
namestreetverplichtcityverplichtpostalCodeverplichtcountryverplichtPolicyBundleResponse
successverplichtdataverplichtshippingtitleverplichtbodyverplichtBeleidsinhoud (mag Markdown bevatten)
returnstitleverplichtbodyverplichtBeleidsinhoud (mag Markdown bevatten)
refundtitleverplichtbodyverplichtBeleidsinhoud (mag Markdown bevatten)
privacytitleverplichtbodyverplichtBeleidsinhoud (mag Markdown bevatten)
PolicySection
titleverplichtbodyverplichtBeleidsinhoud (mag Markdown bevatten)
DiscountCheckResponse
successverplichtdataverplichtcodeverplichtvalidverplichttypepercentagefixed_amountfree_shippingvalueKortingswaarde (percentage als getal, bedrag in EUR)
minOrderAmountexpiresAtapplicableProducts'all' of komma-gescheiden product IDs
OrderUpdatedWebhook
eventverplichtorderNumberverplichtnewStatusverplichttimestampverplichttrackingUpdatestatuslocationtimestampReturnUpdatedWebhook
eventverplichtreturnIdverplichtnewStatusverplichttimestampverplichtrefundAmount