Cancel a charge
Cancels a charge that has been previously created. Supply the unique charge code that was returned when the charge was created.
Note: Only new charges can be successfully canceled. Once payment is detected, charge can no longer be canceled.
post
/charges/{chargeCode}/cancel/
Cancel a newly added charge
curl --location --request POST 'https://pay-api.fizen.io/api/integration/v1/charges/code/OST1FNY35QDL/cancel' \
--header 'X-FP-API-KEY: -7abd3993-daf7-4322-84c6-c86e04b3d884'
{
"statusCode": 201,
"time": "2022-03-12T18:17:58.957Z",
"total": 0
}
Last modified 1yr ago