POST), retries can accidentally perform the same action more than once.Idempotency-Key header.GET requests should be idempotent by nature (they should not change server state).POST requests are often not idempotent by default (re-sending can create duplicates).Idempotency-Key header with supported mutating endpoints:Idempotency-Key: <uuid>Idempotency-Key (within the retention window).Only reuse the same key when retrying the same logical operation. Reusing a key for a different operation within 24 hours can cause you to receive a stored response that does not match your new request.
7d2b3f0c-8e66-4d9c-9a2c-4f6e3b2f5b21d7f59c3a-13c2-4f2f-8d3d-0d1a2f9a3b7cGuid.NewGuid()UUID.randomUUID()crypto.randomUUID()uuid.uuid4()POST https://api.payments.ontime.co/paymentscreate_new_payment_requestx-api-key: …Authorization: Bearer …payments:write (Create and cancel payment requests)Idempotency-Key)payment_record (required): request body root objectmandate_id (required, UUID): the unique identifier for the active mandate this payment request is linked toamount (required, integer): in the smallest denomination (e.g. 455 = £4.55 in pounds/pence)due_date (optional, date or null): a future date on which the payment is duecurrency (optional, ISO 4217 or null): defaults to GBP if not providedmetadata (optional): freeform, biller-provided metadata; limited to 3 items of 1 MB eachallow_post_due_date_deduction (optional, boolean; default false):true, we will make the deduction from the consumer even if the expected pay date is after your selected due date.false, we will reject the payment request if the expected pay date is after your selected due date.Idempotency-Key.POST)/payments)payment_record)5xx responses).Idempotency-Key with payment creation requests you may need to retry.