Refund created
Event Group | Event Identification |
---|---|
refunds | refunds/create |
When a new refund was created on the order , it would occur , not related to the flow of funds
Request Headers
- X-Shopline-Topic string requiredEvent operation identificationExample:
orders/edited
- X-Shopline-Hmac-Sha256 string requiredSignatureExample:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string requiredShop domainExample:
shophub.myshopline.com
- X-Shopline-Shop-Id string requiredShop IDExample:
1610418123456
- X-Shopline-Merchant-Id string requiredMerchant IDExample:
2000001234
- X-Shopline-API-Version string requiredVersionExample:
v20210901
- X-Shopline-Webhook-Id string requiredMessage IDExample:
b54557e48a5fbf7d70bcd043
Request Body
- created_at stringRefund form creation time (see IOS8601 for the format)Example:
2022-10-03T12:44:45-04:00
- id stringRefund IDExample:
SL201AS4571669738589065294
- note stringRefund NotesExample:
Notes
order_adjustmentsobject[]
Adjust the order informationamount stringAdjust the single amountExample:100
amount_setobject
Adjust the single amountpresentment_moneyobject
Display amountamount doubleAmountExample:100
currency_code stringCurrencyExample:USD
shop_moneyobject
Shop amountamount doubleAmountExample:100
currency_code stringCurrencyExample:USD
id stringRefund adjustment single idExample:2309123221222208434
kind stringAdjust single typeExample:shipping_refund
order_id stringOrder numberExample:21057168152571061289431726
reason stringAdjust the reasonExample:reason msg
refund_id stringRefund single idExample:27057168152571061289431726
tax_amount stringAdjust the single tax amountExample:100
tax_amount_setobject
Adjust the single tax amountpresentment_moneyobject
Display amountamount doubleAmountExample:100
currency_code stringCurrencyExample:USD
shop_moneyobject
Shop amountamount doubleAmountExample:100
currency_code stringCurrencyExample:USD
- order_id stringOrder numberExample:
21057168152571061289431726
- processed_at stringUpdate time (see IOS8601 for the format)Example:
2022-10-03T12:44:45-04:00
refund_line_itemsobject[]
Refund Detailsid stringRefund order numberExample:27057168152571061289431726
line_itemobject
Product rowsattribute stringProduct attributes: name - attribute value. Multiple separated by comma ", ". For example: color - red, size - XExample:Size-x
fulfillable_quantity integerAvailable quantityExample:1
fulfillment_quantity integerAvailable quantityExample:1
fulfillment_service stringLogistics company nameExample:Go square
fulfillment_status stringThe shipping status of the product, shipping status, fulfilled-shipped; partial-partially shipped; null-unshipped;Example:partial
grams doubleWeight ( grams )Example:1.2
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:2655436734527560
price stringCommodity price, precision 2Example:100
price_setobject
Multi-currency selling pricepresentment_moneyobject
Buy side currencyamount stringAmountcurrency_code stringCurrencyshop_moneyobject
Sell side amount informationamount stringAmountcurrency_code stringCurrencyproduct_id stringSPU serial numberExample:18054488231146952151833534
quantity integerProduct quantityExample:1
requires_shipping booleanShipping or notExample:true
sku stringProduct code, barCodeExample:SKU1234
tax_linesobject[]
Tax informationprice stringTax, precision 2Example:100
price_setobject
Multi-currency information of taxpresentment_moneyobject
Buy side currencyamount stringAmountExample:100
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmountExample:100
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1.2
title stringHeadlineExample:Headline
type stringTax type , product_tax : product tax ; shipping_tax : shipping taxExample:product_tax
taxable booleanTax or not?Example:true
title stringProduct titleExample:T-short
variant_id stringProduct SKU serial numberExample:18054488231146952151833534
variant_title stringCommodity attribute value, multiple divided by " / ", such as: "155 / red / large"Example:155 / red / large
vendor stringSupplierExample:Supplier
line_item_id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:23312553324324
quantity integerQuantity, quantity of goodsExample:1
restock_type stringInventory return type, no_restock-not returned, cancel-cancelled, return-returned only not returnedExample:no_restock
subtotal doubleTotal refund amount, precision 2Example:100
subtotal_setobject
Total refund amount, multi-currency information, same on seller and buyer sidepresentment_moneyobject
Buy side currencyamount stringAmountExample:100
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmountExample:100
currency_code stringCurrencyExample:USD
total_tax doubleTax amount of refunded goods, precision 2Example:100
total_tax_setobject
Total tax amount, multi-currency informationpresentment_moneyobject
Sell side currencyamount stringAmountExample:100
currency_code stringCurrencyExample:USD
shop_moneyobject
Buy side currencyamount stringAmountExample:100
currency_code stringCurrencyExample:USD
transactionsobject[]
Refund transaction informationamount stringRefund amount , accuracy 2Example:100
created_at stringCreation timeExample:2022-10-03T12:44:45-04:00
currency stringCurrencyExample:USD
id stringRefund IDExample:10100112220607455014540963840
kind stringTransaction type (authorization, capture, sale, void, refund)Example:refund
order_id stringOrder numberExample:21056836827909126061559008
processed_at stringCreation timeExample:2022-10-03T12:44:45-04:00
status stringHandling status, pending, failure, success, and errorExample:success
user_id stringBuyer IDExample:4323434
- user_id stringUser IDExample:
16576456
Response
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OK
For more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?