Refund created
| Event Group | Event Identification |
|---|---|
| refunds | refunds/create |
Occurs whenever a refund is created, not related to 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
- 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:100amount_setobject
Adjust the single amountpresentment_moneyobject
Display amountamount doubleAmountExample:100currency_code stringCurrencyExample:USDshop_moneyobject
Shop amountamount doubleAmountExample:100currency_code stringCurrencyExample:USDid stringRefund adjustment single idExample:2309123221222208434kind stringAdjust single typeExample:shipping_refundorder_id stringOrder numberExample:21057168152571061289431726reason stringAdjust the reasonExample:reason msgrefund_id stringRefund single idExample:27057168152571061289431726tax_amount stringAdjust the single tax amountExample:100tax_amount_setobject
Adjust the single tax amountpresentment_moneyobject
Display amountamount doubleAmountExample:100currency_code stringCurrencyExample:USDshop_moneyobject
Shop amountamount doubleAmountExample:100currency_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 items Details.id stringRefund order numberExample:27057168152571061289431726line_itemobject
Product rowsattribute stringProduct attributes: name - attribute value. Multiple separated by comma ", ". For example: color - red, size - XExample:Size-xfulfillable_quantity integerAvailable quantityExample:1fulfillment_quantity integerThe quantity of products that are actually shipped.Example:1fulfillment_service stringLogistics company nameExample:Go squarefulfillment_status stringThe shipping status of the product, shipping status, fulfilled-shipped; partial-partially shipped; null-unshipped;Example:partialgrams doubleWeight ( grams )Example:1.2id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:2655436734527560price stringCommodity price, precision 2Example:100price_setobject
Multi-currency selling pricepresentment_moneyobject
Buy side currencyamount stringAmountcurrency_code stringCurrencyshop_moneyobject
Sell side amount informationamount stringAmountcurrency_code stringCurrencyproduct_id stringSPU serial numberExample:18054488231146952151833534quantity integerProduct quantityExample:1requires_shipping booleanShipping or notExample:truesku stringProduct code, barCodeExample:SKU1234tax_linesobject[]
Tax informationprice stringTax, precision 2Example:100price_setobject
Multi-currency information of taxpresentment_moneyobject
Buy side currencyamount stringAmountExample:100currency_code stringCurrencyExample:USDshop_moneyobject
Sell side amount informationamount stringAmountExample:100currency_code stringCurrencyExample:USDrate doubleTax rateExample:1.2title stringHeadlineExample:Headlinetype stringTax type , product_tax : product tax ; shipping_tax : shipping taxExample:product_taxtaxable booleanTax or not?Example:truetitle stringProduct titleExample:T-shortvariant_id stringProduct SKU serial numberExample:18054488231146952151833534variant_title stringCommodity attribute value, multiple divided by " / ", such as: "155 / red / large"Example:155 / red / largevendor stringSupplierExample:Supplierline_item_id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:23312553324324quantity integerQuantity, quantity of goodsExample:1restock_type stringInventory return type, no_restock-not returned, cancel-cancelled, return-returned only not returnedExample:no_restocksubtotal doubleTotal refund amount, precision 2Example:100subtotal_setobject
Total refund amount, multi-currency information, same on seller and buyer sidepresentment_moneyobject
Buy side currencyamount stringAmountExample:100currency_code stringCurrencyExample:USDshop_moneyobject
Sell side amount informationamount stringAmountExample:100currency_code stringCurrencyExample:USDtotal_tax doubleTax amount of refunded goods, precision 2Example:100total_tax_setobject
Total tax amount, multi-currency informationpresentment_moneyobject
Sell side currencyamount stringAmountExample:100currency_code stringCurrencyExample:USDshop_moneyobject
Buy side currencyamount stringAmountExample:100currency_code stringCurrencyExample:USDtransactionsobject[]
Refund transaction informationamount stringRefund amount , accuracy 2Example:100created_at stringCreation timeExample:2022-10-03T12:44:45-04:00currency stringCurrencyExample:USDid stringRefund IDExample:10100112220607455014540963840kind stringTransaction type (authorization, capture, sale, void, refund)Example:refundorder_id stringOrder numberExample:21056836827909126061559008processed_at stringCreation timeExample:2022-10-03T12:44:45-04:00status stringHandling status, pending, failure, success, and errorExample:successuser_id stringBuyer IDExample:4323434transactions_v2object[]
A list of refund transactions.amount stringTransaction amount.The value is rounded to two decimal places.Example:8.00create_at stringThe date and time when the transaction was canceled. Format: ISO 8601.Example:2021-08-16T08:27:57+00:00currency stringTransaction currency. A three-letter currency code that follows the ISO 4217 standard.Example:USDerror_code stringPayment failure reason code returned by the channel.Example:RISK_PENDINGerror_msg stringPayment failure message returned by the channel.Example:PENDING_REVIEWgateway stringPayment channel.Example:Mypayid stringTransaction ID.Example:3201270375342377769857557605kind stringTransaction kind:sale: Automatically captured transactionauthorization: Authorized transactioncapture: Manually captured transactionvoid: Voided transactionrefund: Refunded transaction
payment_detailsobject
Payment details.credit_cardobject
Card details for credit card payments.credit_card_bin stringCredit card bin.Example:471110credit_card_brand stringCredit card brand.Example:visacredit_card_expire_month stringCredit card expiration month.Example:12credit_card_expire_year stringCredit card expiration year.Example:30credit_card_number stringMasked credit card number.Example:471110******0000pay_channel_deal_id stringPayment serial number from the external channel.Example:pi_3MI897Hezv8FxjBO1uGxMPhXreceipt_json stringTransaction receipt returned by the payment gateway. Note that receipt formats may vary across different payment providers. Currently, only gift card payment method information is supported in the returned data.Example:\"gift_card_id\":30170521219516412793210045payment_method stringPayment method.Example:Mypaystatus stringTransaction status:created:Transaction has been createdpending:Processing by the gateway.success:Transaction succeededfail:Transaction failed
- user_id stringUser IDExample:
16576456
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?