Order refund
POST https://{handle}.myshopline.com/admin/openapi/v20220901/order/refund.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 requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
- note stringRefund NotesExample:
Refund
- notify booleanSend message notifications ( logic with existing b-end refund message )Example:
true
- order_id string requiredOrder idExample:
21057520029298437725452511
refund_line_itemsobject[]
Refund Product line information , can be associated with multiple Product linesline_item_id longProduct row idExample:601
location_id stringProduct stock back placeExample:5409714787218633772
quantity longTrial refund Product quantityExample:1
restock_type stringProduct inventory processingExample:return
type string requiredWhen making a refund in Product , you need to provide a Product delivery status Unshipped : Product has not shipped; Returned : the product has been returned;Example:Shipped
shippingobject
Refund policy for shipping amountamount stringSpecify refund amountExample:1.23
full_refund booleanReturn shipping fee or notExample:true
transactionsobject[] required
Payment slip refund informationamount stringRefund amountExample:2.34
gateway stringPayment channelsExample:Paypal
id stringPayment slip number , start with 230Example:23057520029306658561302511
kind stringPayment slip typeExample:refund
type booleanRefund type , ture : refund on the original roadExample:true
Response
- 200
- 401
- 429
For more information about status codes, see Http status code.
Response Headers
traceId
traceId
Response Body
dataobject
Data return bodycreate_at stringRefund single creation timeExample:1673404700862
id stringRefund id , unique recognitionExample:2605755870074105241861
note stringRefund NotesExample:Notes
order_adjustmentsobject[]
Adjust the order informationamount stringAdjust the single amountExample:2.34
amount_setobject
Adjust the single amount according to the store currency and transaction currencypresentment_moneyobject
Marketplace amount informationamount stringMarketplace amountExample:2.34
currency_code stringMarket currencyExample:USD
shop_moneyobject
Store amount informationamount stringStore amountExample:2.34
currency_code stringStore currencyExample:USD
id stringAdjust single sizekind stringAdjustment single type : refund_discrepancy、shipping_refundExample:refund_discrepancy
order_id stringOrder number for this adjustment of the single linkExample:21057520029298437725452511
reason stringAdjustment reason : Refund discrepancy、shipping_refundExample:refund_discrepancy
refund_id stringRefund id , unique recognitiontax_amount stringAdjust the single tax amountExample:978
tax_amount_setobject
Adjust the single tax amount according to the store currency and transaction currencypresentment_moneyobject
Marketplace amount informationamount stringMarketplace amount informationExample:2.34
currency_code stringMarket currencyExample:USD
shop_moneyobject
Store amount informationamount stringStore amountExample:3.45
currency_code stringStore currencyExample:USD
order_id stringOrder number associated with this refund orderExample:21057520029298437725452511
refund_line_itemsobject[]
Refund related Product line informationid longProduct row idline_item_id longThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:601
quantity longRefund Product quantityExample:1
restock_type stringReturn- returns only not backExample:return
subtotal stringRefund Product row total amount , accuracy 2Example:3.45
subtotal_setobject
Total amount of refund Product bank by store currency and transaction currencypresentment_moneyobject
Marketplace amount informationamount stringMarketplace amountExample:1.23
currency_code stringMarket currencyExample:USD
shop_moneyobject
Store currency amount informationamount stringStore amountExample:2.36
currency_code stringStore currencyExample:USD
total_tax stringRefund Product row tax total amount , accuracy 2Example:4.56
total_tax_setobject
Total amount of refund Product bank tax , sold in store currency and transaction currencypresentment_moneyobject
Marketplace amount informationamount stringStore amountExample:3.24
currency_code stringStore currencyExample:USD
shop_moneyobject
Store currency amount informationamount stringStore amountExample:6.14
currency_code stringStore currencyExample:USD
transactionsobject[]
Refund payment slip informationamount longRefund amount , accuracy 2create_at stringCreation timeExample:1673404700862
currency stringPayment currencyExample:USD
id stringPayment slip numberExample:23057520029306658561302511
kind stringPayment slip type , here is only refundExample:refund
order_id stringOrder number for this adjustment of the single linkExample:21057520029298437725452511
processed_at stringRefund order update timeExample:1673404700862
status stringHandling status, pending, failure, success, and errorExample:pending
API Explorer
Debugger
Was this article helpful to you?
Error loading component.