Skip to main content

Send Sales Invoice 810

POST 

/api/sales-invoices/:salesInvoice/edi/send

Send the EDI 810 for an issued sales invoice: generates and sends it when it is missing, or sends it again when the last attempt failed or the trading partner rejected it. Sends even when the partner's ship notice has not gone out and even when automatic EDI invoices are off for the connection.

Required scope: orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token and the sales_invoices.send permission.

Response: data.edi = {document_id, control_number, status (sent | queued | waiting_for_asn | failed | not_applicable), sent_at, ack_status (accepted | rejected | null), can_send, can_regenerate}.

Errors: 422 when the invoice is not billed over SPS Commerce EDI, is not issued, or its 810 was already sent or is being sent.

Request​

Responses​

OK

Response Headers
    Content-Type