Idempotency
Attach this Parameter to the Header Request whenever you create a Payment or Payout
X-REQUEST-ID
String
M
Unique Idempotency Key to make sure no double transaction created from Merchant
Scenario
First-time request to create Payment / Payout using the
X-REQUEST-ID
:123
, a successful process will return a Response HTTP Status 200Second-time request to create Payment / Payout using the same
X-REQUEST-ID
:123
With a different Payload, then Pivot will return HTTP Response 409Second-time request to create Payment / Payout using the same
X-REQUEST-ID
:123
With the same request Payload, then Pivot will return a HTTP Response Status 200, with the same initial response
Requirements
The requirement for X-REQUEST-ID
are:
Allow only alphanumeric characters
Minimum length is 16 digits
Maximum length is 36 digits
Expired in 24 hours, which means after 24 hours, you can reuse the same
X-REQUEST-ID
for another transaction request
Last updated