Return Update
| Event Group | Event Identification |
|---|---|
| return | return/update |
New returns will occur when the order is created , not associated with the flow of funds
Request Headers
- X-Shopline-Topic string requiredThe unique identifier for the event.Example:
orders/edited - X-Shopline-Hmac-Sha256 string requiredThe signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string requiredThe store domain.Example:
example.myshopline.com - X-Shopline-Shop-Id string requiredThe store ID.Example:
1610418123456 - X-Shopline-Merchant-Id string requiredThe merchant ID.Example:
2000001234 - X-Shopline-API-Version string requiredThe API version.Example:
v20250601 - X-Shopline-Webhook-Id string requiredThe ID of this Webhook event.Example:
b54557e48a5fbf7d70bcd043
Request Body
- after_sale_order_seq stringReturn idExample:
2606576826460396889110 - created_at stringOrder update time , ( format see IOS8601 )Example:
2024-07-30T19:05:13.968+0800 - order_seq stringOrder idExample:
21064997045395244145024325 return_line_itemsobject[]
Return listingfulfillment_line_itemobject
Forward invoice Productline_itemobject
Productattribute stringProduct attributes : name-attribute valueExample:Color - REDfinal_price stringProduct transaction priceExample:1.39fulfillable_quantity integerAvailable quantityfulfillment_service stringLogistics company nameExample:Yuan Tong Deliveryfulfillment_status stringProduct shipping statusExample:fulfilledgift_card booleanGift card or notgrams doubleWeight ( grams ) , involving unit conversionExample:28350group_id stringItem group idExample:0id stringProduct id for snapshot chartsExample:7889image_url stringPicture urlExample:https://www.asdlj22lljsf.com/gima.imagelocation_seq stringUnique code of pickup locationExample:15232786871282name stringSKU title, same as titleExample:this is a mock product titleprice stringProduct selling priceExample:200.00product_id stringSPU serial numberExample:16065603540221212797880910product_tax_linesobject[]
Product tax informationname stringTax nameExample:VATprice stringTaxExample:1.39price_setobject
Tax amount detailspresentment_moneyobject
Market currency amount breakdownamount stringAmountExample:19currency_code stringCurrencyExample:USDshop_moneyobject
Store currency amount breakdownamount stringAmountExample:1.39currency_code stringCurrencyExample:USDrate doubleTax rateExample:0.0012rate_percentage doubleTax %tax_no stringTax codeExample:124323title stringTax nameExample:product_taxtype stringTax typeExample:product_taxpropertiesobject[]
Product able custom informationadditional stringAdditional informationExample:{}ext_info stringExpand informationExample:{}name stringCustom attribute nameExample:Wegihtshow booleanTo be displayed on the front end or notExample:truetype stringAttribute typeExample:Wegihturls arrayUrl listExample:["https://www.asdlj22lljsf.com/gima.image"]value stringCustom attribute valuesExample:23121quantity integerQuantity of items in the orderExample:3requires_shipping booleanShipping or notExample:truesku stringProduct yardsExample:T20200925200122tags stringProduct tag , separated by ','Example:BWP,CUSTOMtaxable booleanTax or not?title stringProduct titleExample:this is a mock product titlevariant_id stringProduct SKU serial numberExample:18065603540226245962750910variant_title stringProduct attribute valueExample:REDvendor stringSupplierExample:this is a mock product vendorversion stringProduct versionExample:0quantity integerReturn order return quantityExample:1order_package_seq stringInvoice number associated with return orderExample:22065768243292542110023140quantity integerReturn order return quantityExample:1refund_detail_seq stringReturn order Product line numberExample:RDP6576826460816319513return_reason stringProduct line return reason : COLOR issue DEFECTIVE Product damaged or defective NOT_AS_DESCRIBED Product does not match description OTHER reason SIZE_TOO_LARGE size is too large size_TOO_SMALL size is too small STYLE issue UNWANTED customer changed idea WRONG_ITEM received wrong ProductExample:this is a mock return reasonreturn_reason_note stringProduct line return reason details notes , maximum support 128 charactersExample:this is a mock return reason note- return_reason stringReturn reasonExample:
This is a test return reason - status stringReturn status : REQUESTED 、CLOSED ( return is completed and refunded is completed ) 、OPEN ( in return ) 、DECLINED ( reject return ) 、CANCELED ( cancel return )Example:
OPEN
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OKFor more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?