Create a Return Fulfillment
POST https://{handle}.myshopline.com/admin/openapi/v20260301/return/package/create.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
- reverse_fulfillment_order_id stringReturn item order idExample:
RFP5864594983873946674 tracking_infoobject
Logistics tracking informationtracking_url stringLogistics tracking URLExample:https://www.sf-express.com/chn/sctracking_company stringLogistics company nameExample:Sf internationaltracking_number stringThird party tracking numberExample:SF21232311- notify_customer booleanInform consumer true if the false is not notified or notExample:
true reverse_delivery_line_itemsobject[]
Return invoice Product line informationid stringReturn order Product line numberExample:RFIP5879597673402123274total_quantity integerProduct return quantityExample:1
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
return_packageobject
Return invoice informationid stringReturn invoice unique business idExample:RPP5860827056427246608return_id stringReturn invoice numberExample:2605864536661019862039reverse_delivery_line_itemsobject[]
Return invoice Product line listid stringReturn invoice Product line numberExample:RPIP5864612075310421029quantity integerReturn invoice Product quantityExample:1reverse_fulfillment_order_line_itemobject
Return shipping list Product line information node associated with return invoicequantity integerReturn order Product line quantityExample:1id stringReturn order Product line numberExample:RFIP5864536664442414108line_itemobject
Invoice Product line informationlocation_id string1 ) pick up location unique no .2 ) non-local Product location informationExample:5327026538935748524fulfillment_status stringProduct delivery status : fulfilled- shipped ; partial- partially shipped ; null- not shippedExample:fulfilledimage_url stringProduct link urlExample:https://image.shopline.com/abc.jpgvendor stringProduct suppliergrams doubleProduct weight ( grams )Example:1id stringProduct row idExample:405sku stringMerchant custom numberExample:SKU1234attribute stringProduct attribute information : name-attribute value , multiple attribute values are measured commaExample:Color-red , size-xfulfillment_service stringLogistics company nameExample:Sf internationalfulfillable_quantity integerRemaining Product number of requiredExample:1tax_linesobject[]
Product tax detailsrate doubleTax rateExample:10title stringTax nameExample:CNMPprice stringTax amountExample:18.00price_setobject
Tax amount measured in store currency and transaction currencypresentment_moneyobject
Transaction currencyamount stringTax amountExample:18.00currency_code stringCurrencyExample:USDshop_moneyobject
Store currencyamount stringTax amountExample:18.00currency_code stringCurrencyExample:USDtaxable booleanProduct incl . : false、trueExample:truegift_card booleanWei for gift cards or not : false、trueExample:trueproduct_id stringSpu serial number , Product unique identification numberExample:16056898121352174690861487propertiesobject[]
Product customization informationname stringCustom information objectExample:Texttype stringCustom information type : text、picture、link 1 ) when type is text , take name and value ;2 ) when type is picture , the display type is name , and the details of the thumb of urls to obtain Product 3 ) when type is link , support click urls to use the picture .Example:texturls arrayAddress link informationExample:["https://image.shopline.com"]value stringCustomized information contentExample:Freedomrequires_shipping booleanProduct need to be shipped : false、trueExample:trueprice stringProduct selling price , Product detail page sale priceExample:100.0quantity integerProduct quantityExample:1variant_id stringProduct SKU serial numberExample:18056898121355865678441487name stringSKU title, same as titleExample:It's good Producttags stringProduct tag , separated by ',' when there are multipleExample:salestitle stringGpu Product titleExample:It's good Productvariant_title stringProduct attribute value , multiple divided by " / "Example:L/Redreverse_fulfillment_order_id stringRelated return item order numberExample:RFP5864594983873946674tracking_informationobject
Logistics tracking informationtracking_url stringLogistics tracking URLExample:https://www.sf-express.com/chn/sctracking_company stringLogistics company nameExample:Sf internationaltracking_number stringThird party tracking numberExample:SF222111011
API Explorer
Debugger
Was this article helpful to you?