Winkelstraat/stock hub/v1/creditmemo
The creditmemo webhook performs a POST in JSON format to a designated endpoint of the reseller.
Headers
-
Version of the webhook.
-
x-api-key string
The API-key is a shared secret that can be used to authenticate the incomming request.
Body
-
increment_id string
-
created_at string(date-time)
-
updated_at string(date-time)
-
items array[object]
-
billing_address object
-
shipping_price number(float)
-
grand_total number(float)
-
subtotal number(float)
-
currency string
-
order_increment_id string
-
adjustment number(float)
-
fee_amount number(float)
-
return_fee_amount number(float)
-
po_number string | null
The PO (Purchase order) number is the reference number to pay for approved purchases. The PO number is used to link the credit memo to the order of the purchasing company.
Request example
{
"items": [
{
"mpn": "3G1MXE1MXVZF982",
"qty": 1,
"sku": "wsnl199-5c9de5ad4681ed3eb551e7ee",
"size": "L",
"reversal": "NONE",
"parent_sku": "381189",
"manufacturer": "Emporio Armani",
"return_item_fee": 0,
"row_total_inc_tax": 270,
"item_price_inc_tax": 270
}
],
"currency": "EUR",
"subtotal": 270,
"po_number": "YOUR_ORDER_REFERENCE",
"adjustment": 0,
"created_at": "2024-12-18T08:40:35.000+00:00",
"fee_amount": 2.95,
"updated_at": "2024-12-18T08:40:35.000+00:00",
"grand_total": 267.05,
"increment_id": "000000060",
"shipping_price": 0,
"billing_address": {
"city": "Zonnewijk",
"email": "jan.jansen@gwinkelstraat.nl",
"street": "Edsger Dijkstraat",
"postcode": "9012DE",
"last_name": "Jansen",
"telephone": "+31621510775",
"country_id": "NL",
"first_name": "Jan",
"region_code": null,
"company_name": null,
"house_number": "12"
},
"order_increment_id": "000000568"
}