Refunds
Process a refund of a transaction (Poslink V2)
This API call is used to process the refund of a previous transaction using the POSLink V2 endpoint.
post/poslink/v2/refunds
Request
- Base URLhttps://api.teya.com
- AuthOAuth 2Authorization codehttps://id.teya.com/oauth/v2/oauth-authorizeToken URLhttps://id.teya.com/oauth/v2/oauth-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
A unique key to identify the request. If the request is repeated with the same key, the same response will be returned. If the request is repeated with a different key or without a key, a new refund will be created.
Request body
Example request
{
"transaction_id": "39e3bacdd5d38d9ce611cf88afbcc86df829a9a5641880b3",
"amount": 100,
"currency": "EUR",
"merchant_reference": "merchant-ref-123"
}Response
Refund processed
Example response
{
"transaction_id": "tr_2b9d1f4c-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
"refund_amount": {
"amount": 100,
"currency": "GBP"
},
"status": "SUCCESS",
"transaction_type": "REFUND",
"card_acceptor_id": "5023045",
"issuer_result": {
"approval_code": "123456",
"response_code": "00"
},
"created_at": "2021-01-01T00:00:00.000Z",
"dcc": {
"cardholder_amount": {
"amount": 100,
"currency": "CHF"
},
"conversion_rate": "0.9517",
"markup": "0.03",
"ecb_markup": "0.01"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.