Refund object
Attributes
Attribute | Type | Description |
---|---|---|
requestId | string | A unique request ID, required (in conjunction with merchantReference ) for safe retries. We recommend that merchants generate a UUID for each unique refund. Max character length = 64. |
amount | Money (required) | The refund amount. |
merchantReference | string | The merchant’s corresponding refund ID or reference, required (in conjunction with requestId ) for safe retries. Max character length = 64. |
refundId | string | The unique, Cash App Afterpay-generated refund ID. |
refundedAt | string | A UTC timestamp of the refund creation time, in ISO 8601 format. |
refundMerchantReference | string | A unique reference for the individual refund event. If provided, the value appears in the daily settlement file as “Payment Event ID”. In most cases, this holds the same value as the merchantReference . Max character length = 128. |
Example Refund object
1 { 2 "requestId" : "956946da-4863-4797-aa7c-540050faf922", 3 "amount" : { 4 "amount" : "10.00", 5 "currency" : "USD" 6 }, 7 "merchantReference" : "merchantRefundId-1234", 8 "refundId" : "67890123", 9 "refundedAt" : "2024-01-01T00:00:00.000Z", 10 "refundMerchantReference" : "merchantRefundId-1234" 11 }