post https://integration.api.scalapay.com/v2/payments//refund
Merchant is able to refund a payment by calling /v2/payments/{token}/refund. The funds will be reversed from the merchant account, and then refunded to the customer.
Response refund order
Successful response (200)
Attribute | Type | Description |
---|---|---|
token | string | Scalapay order unique token |
amount | amount | Total refund amount |
merchantReference | string | Unique reference that identifies the merchant order |
merchantRefundReference | string | Unique reference that identifies the merchant refund ID |
refundToken | string | Unique reference that identifies the Scalapay refund ID |
refundedAt | datetime | Date and time of refund in ISO 8601 format |