Skip to content

Retrying requests

Requests are not idempotent unless an endpoint says so. These endpoints act again every time they are sent, so a retry after a timeout can create a second order, charge or refund:

  • POST /orders and POST /payments/hosted-page
  • POST /payments/sale and POST /payments/auth
  • PUT /payments/refund

Before retrying, check whether the first request succeeded. Look up the order with GET /orders?origin_id=<the id you sent>, or its transactions with GET /transactions?order_id=<the id you sent>.

These endpoints are safe to retry:

  • PUT /subscriptions/resume accepts an Idempotency-Key header. A retry with the same key returns the subscription with replayed: true and does not charge again.
  • POST /subscriptions/dime-billing refuses a second debit for the same invoice with 400 already_billed.
  • POST /bridge/transfers requires an Idempotency-Key header. A retry with the same key returns the original transfer and moves no money.