POST
/
collections
/
reverse
/
simulate
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/collections/reverse/simulate" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  --header "X-Idempotency-Key: your-idempotency-key" \
  -d '{
    "merchantAccountNumber": 35253486,
    "capturedBy": "johndoe@onekhusa.com",
    "transactionReferenceNumber": "B250713MGRTW"
  }'
"Transaction reversed successfully"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer Token, Where accessToken is the access token used to authenticate the request.

Headers

Accept-Language
string
default:en

Preferred language for the response

X-Idempotency-Key
string

A unique key to ensure idempotent requests

Body

application/json
merchantAccountNumber
integer
required

Required string length: 8

Required range: 10000000 <= x <= 99999999
Example:

35253486

capturedBy
string<email>
required

Email address of the user initiating the reversal

Example:

"johndoe@onekhusa.com"

transactionReferenceNumber
string
required

The unique transaction reference number to reverse

Example:

"B250713MGRTW"

Response

200 - application/json

Success Response (200)