Cancel fulfillment
Requires write_assigned_fulfillment_orders access scope.
For more info, refer to:
POST https://{handle}.myshopline.com/admin/openapi/v20260301/fulfillments/:order_id/:fulfillment_id/cancel.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 .Path Parameters
- fulfillment_id string requiredPackage idExample:
"21057401932826316666967110" - order_id string requiredOrder idExample:
"21057401932826316666967110"
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
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
fulfillmentobject
Package detailsshipment_status stringLogistics statusExample:"success"tracking_company stringLogistics company nameExample:"Other"id stringParcel single idExample:"4005740193290131085320"tracking_numbers arrayThird party logistics single number listExample:["[\"UG198768340YP\"]"]tracking_urls arrayLogistics tracking url listExample:["[\"\"https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=1Z2345\"\"]"]line_itemsobject[]
Package Productpropertiesobject[]
Additional informationname stringCustom attribute nameExample:" picture "type stringAttribute typeExample:"picture"urls arrayUrl listExample:["[\"https://www.myshopline.com\"]"]value stringCustom attribute valuesExample:"value"additional stringAdditional informationExample:" add-on information "title stringProduct titleExample:"Draft"version stringProduct versionExample:"1"price stringItem priceExample:"100.00"price_setobject
Item price informationshop_moneyobject
Store pricecurrency_code stringCurrencyExample:"USD"amount stringTotalExample:"100.00"presentment_moneyobject
Priceamount stringTotalExample:"100.00"currency_code stringCurrencyExample:"USD"variant_title stringProduct attribute valueExample:"Black / Bracelet / Bracelet""id stringidExample:"466157049"product_id stringProduct serial numberExample:"343342675"variant_id stringSku serial numberExample:"183423409238904944"taxable booleanTax or not?Example:truetotal_discount stringDiscountExample:"0.00"grams doubleWeightExample:10.5fulfillment_status stringPackage trackingExample:"open"tax_linesobject[]
Tax itemtitle stringTax titleExample:" Product tax "name stringTax nameExample:" item tax "price stringTaxExample:"10.00"price_setobject
Multi-currency information of taxshop_moneyobject
Store priceamount stringTotalExample:"10.00"currency_code stringCurrencyExample:"USD"presentment_moneyobject
Priceamount stringTotalExample:"10.00"currency_code stringCurrencyExample:"USD"rate stringTax rateExample:"1.00"quantity integerSku quantityExample:1sku stringProduct barcodeExample:"183423409238904944"total_discount_setobject
Great price informationpresentment_moneyobject
Priceamount stringTotalExample:"0.00"currency_code stringCurrencyExample:"USD"shop_moneyobject
Store priceamount stringTotalExample:"0.00"currency_code stringCurrencyExample:"USD"fulfillable_quantity integerRemaining quantity can be shippedExample:1fulfillment_quantity integerShipping quantityExample:1name stringSku titleExample:Trade namerequires_shipping booleanShipping or notExample:truevendor stringSupplierorder_id stringOrder idExample:"21057116277667827637773776"status stringParcel single statusExample:"success"tracking_url stringLogistics tracking URLExample:"https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=1Z2345"updated_at stringUpdate timeExample:2022-10-21T08:56:20-04:00created_at stringCreation timeExample:2022-10-21T08:56:20-04:00tracking_number stringThird party tracking numberExample:"UG198768340YP"name stringPackage nameExample:"#21057116277667827637773776.1"
API Explorer
Debugger
Was this article helpful to you?