Payments
Create payment refund
Refund a merchant account payment.
post/v3/payments/{id}/refunds
Request
- Base URLhttps://api.truelayer-sandbox.com
- URLhttps://api.truelayer-sandbox.com/v3/payments/{id}/refunds
- Auth
- OAuth 2Client credentialsToken URL: https://auth.truelayer.com/connect/token scopes: payments
- or OAuth 2Client credentialsToken URL: https://auth.truelayer.com/connect/token scopes: payments:refund
Path parameters
idstring required
Unique ID for the Payment
Example:0afd1f6a-f611-48ce-9488-321129bb3a70
The payment ID for the payment to be fully or partially refunded.
Headers
Idempotency-Keystring required
An idempotency key to allow safe retrying without the operation being performed multiple times. The value should be unique for each operation, e.g. a UUID, with the same key being sent on a retry of the same request.
Tl-Signaturestring required
A JWS with detached content, signed with your private key. See Request Signing
Request body
Example request
{
"metadata": {
"prop1": "value1",
"prop2": "value2"
}
}Response
Refund
Example response
{
"id": "43d12d0f-d775-410f-aaff-482200c17017"
}Changes
No recorded changes to this operation across all 1 revision of this API.