Dispute created
| Event Group | Event Identification |
|---|---|
| payments | payments/create |
Occurs whenever a dispute is created.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - 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
detailobject
Dispute details.amount stringDispute amount. The value is rounded to two decimal places.channel_dispute_id stringThe dispute ID from the payment channel used by SHOPLINE Payments.currency stringDispute currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. Example:USD.dispute_evidence_update_deadline stringDeadline for the merchant to submit evidence. Format: ISO 8601.Example:2025-06-02T00:00:00+08:00dispute_id stringThe unique identifier for the dispute.dispute_type stringDispute type. Valid values are:CHARGEBACK: Customers have filed transaction disputes with their banks, and the disputed amounts will be temporarily withheld during the investigation.PRE_CHARGEBACK: This is the preliminary stage before a fullCHARGEBACK, where the issuing bank investigates the dispute.RETRIEVAL: The acquiring bank has requested the merchant to provide additional information regarding this transaction.FRAUD_NOTIFICATION: The transaction is potentially fraudulent.
exchangeobject
Foreign exchange information.amount stringThe amount of foreign exchange based on the actual payment amount. The value is rounded to two decimal places.currency stringExchange currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. Example:USD.rate stringExchange rate, in the format of{dispute currency}/{exchange currency} @{rate}. The rate is rounded to 10 decimal places.Example:USD/USD @1.0000000000fee stringTransaction fees. If SHOPLINE Payments charges a fee to the merchant, this field is displayed as a negative amount. If SHOPLINE Payments refunds a fee to the merchant, this field is displayed as a positive amount.fee_type stringFee type. Valid values are:domestic: Local transaction fee, the fee for accepting domestic bank card transactions.international: Cross-border transaction fee, the fee for accepting foreign bank card transactions.
payment_method stringPayment method.reason stringThe reason for the dispute. Whendispute_typeisCHARGEBACK, the valid values are:fraudulent: The transaction was fraudulent.unrecognized: The transaction is suspicious.duplicate: The customer was charged twice for the same item or service.subscription_canceled: The customer canceled a subscription but was still billed.product_not_received: The customer did not receive the purchased product.product_unacceptable: The customer received the product but was dissatisfied with it.credit_not_processed: The customer was promised a refund but never received it.general: Other reasons.
Whendispute_typeisPRE_CHARGEBACK,RETRIEVAL, orFRAUD_NOTIFICATION, the value of this field is non-enumerated.seller_order_id stringBusiness order number.status stringDispute status.Whendispute_typeisCHARGEBACK, the valid value is:CREATED: The dispute has been initiated.
Whendispute_typeisPRE_CHARGEBACK, the valid value is:PRE_CHARGEBACK_CREATED: A pre-chargeback has been initiated. Per the regulations of some card schemes, the system will not issue an automatic refund. The merchant needs to decide whether to accept or reject the refund request.
Whendispute_typeisRETRIEVAL, the valid value is:RETRIEVAL_CREATED: A retrieval request has been submitted.
Whendispute_typeisFRAUD_NOTIFICATION, the valid value is:FRAUD_FINISHED: Notification of potential fraudulent activity. The merchant should hold the shipment and contact the customer to verify the order, and consider issuing a refund to avoid a future chargeback.
trade_order_id stringThe unique identifier for the original payment.update_time stringDispute detail update time. Format: ISO 8601. Updates include changes to dispute status.Example:2025-06-01T00:00:00+08:00- event_id stringThe unique identifier for the dispute event. Use this as the idempotency key to avoid duplicate processing.
- event_type stringEvent type. Fixed value:
slp_dispute/create. - store_id stringStore ID.
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?