Describes a request to refund a payment using RefundPayment.
RefundPaymentRequest
Name | Type | Tags | Description |
---|---|---|---|
idempotencyKey |
string |
Required | A unique string that identifies this RefundPayment request. The key can be any valid stringbut must be unique for every RefundPayment request.Keys are limited to a max of 45 characters - however, the number of allowed characters might be less than 45, if multi-byte characters are used. For more information, see Idempotency. Constraints: Minimum Length: 1 |
amountMoney |
Money |
Required | Represents an amount of money. Money fields can be signed or unsigned.Fields that do not explicitly define whether they are signed or unsigned are considered unsigned and can only hold positive amounts. For signed fields, the sign of the value indicates the purpose of the money transfer. See Working with Monetary Amounts for more information. |
appFeeMoney |
Money | undefined |
Optional | Represents an amount of money. Money fields can be signed or unsigned.Fields that do not explicitly define whether they are signed or unsigned are considered unsigned and can only hold positive amounts. For signed fields, the sign of the value indicates the purpose of the money transfer. See Working with Monetary Amounts for more information. |
paymentId |
string | undefined |
Optional | The unique ID of the payment being refunded. Must be provided and non-empty. |
reason |
string | undefined |
Optional | A description of the reason for the refund. Constraints: Maximum Length: 192 |
paymentVersionToken |
string | undefined |
Optional | Used for optimistic concurrency. This opaque token identifies the current Payment version that the caller expects. If the server has a different version of the Payment, the update fails and a response with a VERSION_MISMATCH error is returned. If the versions match, or the field is not provided, the refund proceeds as normal. |
teamMemberId |
string | undefined |
Optional | An optional TeamMember ID to associate with this refund. Constraints: Maximum Length: 192 |
{
"amount_money": {
"amount": 1000,
"currency": "USD"
},
"app_fee_money": {
"amount": 10,
"currency": "USD"
},
"idempotency_key": "9b7f2dcf-49da-4411-b23e-a2d6af21333a",
"payment_id": "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY",
"reason": "Example"
}