Finance & ERP

Send order to ERP

Sends the CRM order to the main order connection as a sales order: the customer's PO number (customer_po), ERP account code, item code, quantity, price, currency, due date. If the company is missing in the ERP and Create new account is on, the account is created first. The response is the send state (status: sent, open…; queued on a Solk ERP API connection — the middleware picks it up) and the ERP document number (ext_no). An order is not sent twice; a failed one is retried.

POST/api/v1/orders/{id}/erp

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope: crm.write

Path parameters

idintegerrequired
Order id.

Errors

HTTPerrorMeaning
400erpThe ERP operation failed (`message`: no order connection, account not matched, item has no ERP code…).
403forbiddenYou may not see / edit this record.
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/orders/17/erp \
  -H "Authorization: Bearer $SOLK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Response
{
  "ext_id": null,
  "ext_no": null,
  "label": "Sırada",
  "ok": true,
  "status": "queued"
}

Example responses were captured from a v54 installation running sample data; lists are shortened to two items.