post
https://api.salesautopilot.com/v2/invoicing-partner//document-requests
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:
202again, still one request. - SAPI is waiting for your callback (
202answer) 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
5xxSAPI retries itself with the samewebhook-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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
