Skip to main content
yayloh events
Nikhil Shikarkhane avatar
Written by Nikhil Shikarkhane
Updated over a year ago

When listening to yayloh events, you can receive events when

  1. customer registers a return request

  2. customer support processes a refund or store-credit

  3. a return is marked as inspected in yayloh via wms

Example json for a return request event looks like

{
...
"detail": {
"body": {
"data": {
"retailer_id": 15,
"order_id": 3652436,
"order_number": "81241",
"return_details": [
{
"id": 5012308,
"productSku": "ACC-326-40",
"sizeColorSku": null,
"imageUrl": "https://cdn.com/NAVY.png",
"name": "SAPMI TOFFLA - NAVY",
"quantity": 1,
"size": "40",
"color": "NAVY",
"sellingPrice": 175,
"currencyCode": "SEK",
"returnType": "return",
"reasonText": "Product did not match expectations"
}
],
"customer_email": "johndoe@gmail.com",
"label_url": "https://label-yayloh.com/2359703740ea.pdf",
"commercial_invoice_url": "",
"tracking_url": null,
"tracking_number": "21503254",
"shipping_company": "DBSchenker",
"oms_internal_order_id": "5700999151942"
},
"direct_bus": true,
"event_type": "return_request"
}
}
}

Did this answer your question?