Skip to content

ERP hand-off

API reference

Trigger the send of a reviewed order to your ERP receive endpoint. The contract of that endpoint is under Outbound: webhooks. Guide: Sending to the ERP.

Send an order to the ERP receive endpoint

POST/erp/send/{request_id}integration key

Hands a reviewed order to your ERP by calling the receive endpoint configured for the tenant (see webhookserpReceiveOrder). The call is synchronous: AIOTIC waits for your response (timeout configurable, default 30 s) and returns its outcome.

  • Only orders in PROCESSED, MODIFIED or ATTENTION can be sent. Sending an ATTENTION order is an explicit override of the review flag.
  • The order is atomically locked (SENDING) — concurrent sends of the same order get 409. On success the status becomes SENT and erp_ref is stored.
  • On any failure the status rolls back to what it was, so the send can be retried.
  • Operator corrections made in the AIOTIC app are merged into the payload before it leaves AIOTIC.

Parameters

NameInTypeRequiredDescription
request_idpathstringyesThe order's id (UUID) as returned by the upload endpoints

Responses

StatusDescriptionBody
200Your ERP accepted the orderErpSendResponse
400Invalid request (malformed UUID, unsupported file, …)ErrorResponse
401Missing or invalid API keyErrorResponse
404Resource not foundErrorResponse
409Order is not in a sendable status, or another send is in progressErrorResponse
422Your ERP answered success: false; detail carries your error textErrorResponse
500Your ERP returned a non-JSON body, timed out or was unreachable (status rolled back)ErrorResponse
503No ERP endpoint configured for this tenantErrorResponse
bash
curl -X POST "https://acme.aiotic.ai/erp/send/<request_id>" -H "X-API-Key: $AIOTIC_API_KEY"
python
from aiotic import AioticErpRejectedError
try:
    res = client.erp.send(request_id)             # res.erp_order_number
except AioticErpRejectedError as e:
    print(e.erp_error)                            # your endpoint's error text
json
{
  "success": true,
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "data": {
    "success": true,
    "order_number": "SO-2026-00981"
  }
}

Documentation revision 3 · Published 8 September 2026 · commit 6862d5e. Verified against AIOTIC API v1.0.0. AIOTIC is a product of DevOps Company.