Perform a payment refund Run in API Explorer
Ask AI
Path parameters
-
Client identifier
-
Transaction identifier as
UUID v4Maximum length is
36. Format should match the following pattern:^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$.
POST
/merchant/{merchantId}/payment/{paymentId}/refund
curl \
--request POST 'https://api.sandbox.axepta.pl/v1/merchant/{merchantId}/payment/{paymentId}/refund' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"refund","serviceId":"000eec9b-7248-4dae-98f2-56aab6a53927","amount":100}'
Request example
{
"type": "refund",
"serviceId": "000eec9b-7248-4dae-98f2-56aab6a53927",
"amount": 100
}