curl --request POST \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/simulate/reversal \
--header 'Content-Type: application/json' \
--data '{
"card_no": "C02606050CI1Y0HS",
"amount": 10,
"consume_no": "YOUR_CONSUME_NO"
}'
{
"code": 0,
"msg": "Success"
}
Transaction Simulation
Simulate Reversal
POST
/
open-api
/
v1
/
simulate
/
reversal
curl --request POST \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/simulate/reversal \
--header 'Content-Type: application/json' \
--data '{
"card_no": "C02606050CI1Y0HS",
"amount": 10,
"consume_no": "YOUR_CONSUME_NO"
}'
{
"code": 0,
"msg": "Success"
}
Simulates a reversal so you can test the reversal notification.
card_no, amount, and consume_no are all required.
- If you pass
consume_no, you can omitpay_type - These APIs do not use
Api-Key/Access-Token
Request Headers
string
default:"application/json"
required
Fixed to
application/json; charset=utf-8Request Body
string
required
Card number
number
required
Amount
string
required
Consumption order number. Associates the authorization transaction number.
Response
number
Status code.
0 means success. On failure it matches the HTTP status (e.g. 400 / 500)string
Response message.
Success on success, or a specific error reason. No data fieldcurl --request POST \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/simulate/reversal \
--header 'Content-Type: application/json' \
--data '{
"card_no": "C02606050CI1Y0HS",
"amount": 10,
"consume_no": "YOUR_CONSUME_NO"
}'
{
"code": 0,
"msg": "Success"
}
