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