Ask SAPI to send invoice.create for an order again

Use it when a document you refused can be issued now (the customer fixed a missing buyer detail), or when
you never got the request of an order. The base is the connection.events_url of any webhook with
/events replaced by /document-requests.

SAPI does not call your webhook inside this request: it answers 202 and queues the request – the next run
of the retry queue (within minutes) sends an invoice.create with a new webhook-id, so your dedupe
does not return the earlier, refused answer. Its own retries keep that id.

  • The order already has an active document of the slot (invoice and receipt share one; proforma; deposit;
    per installment): 200, status: skipped, reason: already_issued – nothing is sent.
  • A request of the same slot is already waiting: 202 again, still one request.
  • SAPI is waiting for your callback (202 answer) on this slot: 200, status: skipped, reason: pending.
  • Another document of the order (same installment) waits for its retry: 200, status: skipped,
    reason: other_document_waiting – ask again once that one is done.
  • A temporary failure waiting for its backoff is replaced: the document is sent on the next run.
  • Only for documents you refused: after a timeout or a 5xx SAPI retries itself with the same webhook-id.

The customer can do the same from the connection's log (Request again on a refused document).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The connection id (data.connection.id in the webhooks), {list id}-{connection number}.

Body Params
string
required

order.reference of the order (from any message about it).

document
object
required
integer | null
≥ 0

The installment to invoice; null or 0 for the whole order.

Headers
string
length ≤ 100

Your own id of the request – shown in the customer's log.

Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Choose an example:
application/json