Cancel Service Payment Transaction
Cancels a successfully paid Service Payment transaction.
Note: The service provider must allow third-party cancellation, and the transaction must still be within the provider's cancellation period.
Endpoint details
Method:
POST
URL: BASE_URL/servicePayment/transaction/cancel/
Header:
http
Authorization: Bearer <ACCESS_TOKEN>Request body
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Unique identifier returned when the Service Payment transaction was created |
Request example
json
{
"transactionId": "b6135bb4-ef3c-4ab1-a5aa-db174a9bdc26"
}Response
On success, the API returns:
json
{
"error": null,
"result": {
"transactionId": "b6135bb4-ef3c-4ab1-a5aa-db174a9bdc26",
"status": "cancelled",
"cancelTime": "2025-12-31 11:24:03"
}
}Error response
json
{
"result": null,
"error": {
"code": "transaction_not_available_for_cancel",
"message": "transaction_not_available_for_cancel"
}
}Error codes
validation_errorgateway_not_workingpermission_deniedtransaction_not_foundtransaction_not_available_for_cancelprocessing_errorcard_not_found(unsupported_card_typemessage)