Skip to content

API docs

Connect the ERP. Read the pending work. Return the decision.

Approva is a SaaS connection in front of the ERP. The samples below are the shape of that connection. Values such as endpoints, client ids and addresses come from the customer environment. They are not live credentials.

01 · Connection

Register the endpoint.

The ERP base URL, the client credential, the approver account and the hosting addresses allowed to call that environment are stored on the connection. A connector stays off until this record exists and is enabled.

approva connections create \
  --erp microsoft-dynamics-365 \
  --environment sandbox \
  --endpoint https://erp.example.com/api \
  --client-id $CLIENT_ID \
  --approver example.approver

POST /v1/connections

{
  "erp": "microsoft-dynamics-365",
  "environment": "sandbox",
  "endpoint": "https://erp.example.com/api",
  "clientId": "client_••••••••",
  "approver": "example.approver",
  "allowedHostingIps": ["10.4.12.20", "10.4.12.21"],
  "documents": ["purchaseOrder", "salesOrder", "payment"],
  "logo": "company-logo.png"
}

02 · Inbox

Read what is waiting.

Approva asks the connected endpoint for documents the workflow can share. Each item keeps its source system, document number, party, amount and stage. A document that the ERP does not expose does not appear.

approva approvals list \
  --connection cnt_example \
  --status awaitingApproval

GET /v1/approvals?status=awaitingApproval

{
  "source": "sap",
  "document": "PO-10482",
  "type": "purchaseOrder",
  "party": "Northstar Industrial Supplies",
  "amount": { "value": "12450.00", "currency": "USD" },
  "stage": "awaitingApproval",
  "approver": "example.approver"
}

03 · Decision

Send the action back.

Approve or reject is submitted for one document. Approva forwards that action to the originating ERP. The mobile status stays submitted until the ERP accepts it. Confirmed means the ERP responded.

approva approvals decide \
  --document PO-10482 \
  --action approve \
  --actor example.approver

POST /v1/approvals/PO-10482/decision

{
  "document": "PO-10482",
  "action": "approve",
  "actor": "example.approver",
  "submittedAt": "2026-10-18T10:15:00Z"
}

ERP response

{
  "document": "PO-10482",
  "status": "confirmed",
  "erp": "sap",
  "message": "Workflow continued."
}

Status and errors

StatusMeaning
awaitingApprovalThe ERP has shared the document and no decision has been sent.
submittedApprova has sent the action. The ERP has not confirmed it.
confirmedThe originating ERP accepted the action and continued the workflow.
errorThe ERP could not accept the action. The same decision can be retried.
{
  "error": "erp_rejected",
  "document": "PO-10482",
  "retryable": true
}

Approva

Bring your enterprise approvals into one mobile app.

Discover how Approva can simplify the way your authorised decision-makers interact with your connected ERP systems.