Appearance
Cancel Payment
Cancel or close your payment link even after it being generated to your customer if there some modified detail in your data / order by using this endpoint.
JSON Attributes
Name | Data Type | Required | Details |
---|---|---|---|
transaction_id | String | Yes | Ifortepay Transaction ID |
external_id | String(64) | Yes | Unique string from merchant, used in signature |
order_id | String(255) | Yes | Only allows '-' for special characters, not unique, may be duplicated |
payment_method | String | Yes | Fixed value: wallet |
payment_channel | String | Yes | Fixed value: SHOPEEPAY |
Information
Hostname | https://api-stage.ifortepay.id |
---|---|
Path | /ewallet/v2/cancel-payment |
HTTP Method | POST |
Headers
Key | Format | Required | Value |
---|---|---|---|
Content-Type | application/json | M | |
Authorization | String | M | |
x-req-signature | String | M | |
x-version | String | M | v3 |
Example
Body raw
json
{
"transaction_id": "{{ifp_transaction_id}}",
"external_id": "{{merchant_external_id}}",
"order_id": "{{order_id}}",
"payment_method": "wallet",
"payment_channel": "{{channel_name: SHOPEEPAY}}"
}
Example Request
Body raw
json
curl --location 'https://api-stage.ifortepay.id/ewallet/v2/cancel-payment' \
--header 'Authorization: {{Authorization}}' \
--header 'x-req-signature: {{x-req-signature}}' \
--header 'Content-Type: application/json' \
--header 'x-version: v3' \
--data '{
"transaction_id": "6e5273ce-4a42-4b80-af94-6ae9aabf8e23",
"external_id": "29277091582193",
"order_id": "Wallet-01",
"payment_method": "wallet",
"payment_channel": "SHOPEEPAY"
}'
Example Response
Body raw
json
{
"transaction_id": "6e5273ce-4a42-4b80-af94-6ae9aabf8e23",
"external_id": "29277091582193",
"order_id": "Wallet-01",
"response_code": "00",
"payment_method": "wallet",
"payment_channel": "shopeepay",
"transaction_status": "CANCELED"
}