Cancel a payment link Run in API Explorer
Ask AI
Body
Required
-
Store 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}$. -
Payment link identifier
Maximum 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/cancel
curl \
--request POST 'https://api.sandbox.axepta.pl/v1/merchant/{merchantId}/payment/cancel' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"cancel","serviceId":"000eec9b-7248-4dae-98f2-56aab6a53927","paymentId":"805f9c2c-e7ee-4606-b201-ee09032c49b0"}'
Request example
{
"type": "cancel",
"serviceId": "000eec9b-7248-4dae-98f2-56aab6a53927",
"paymentId": "805f9c2c-e7ee-4606-b201-ee09032c49b0"
}