Record a goods receipt
POST
/purchase-orders/receipts
const url = 'https://api.invogi.com/v1/purchase-orders/receipts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"poNumber":"example","receivedAt":"2026-11-02","lines":[{"quantityReceived":"10.00","poLineNumber":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/purchase-orders/receipts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "poNumber": "example", "receivedAt": "2026-11-02", "lines": [ { "quantityReceived": "10.00", "poLineNumber": 1 } ] }'Requires an ADMIN/OWNER session or an API key with purchase_data:write. Quantities are non-negative decimal strings. A known receipt externalId is safe to repeat with the same content; conflicting content is refused.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
poNumber
required
string
receivedAt
required
string
lines
required
Array<object>
object
quantityReceived
required
string
poLineNumber
required
integer
companyId
string format: uuid
externalId
string
Example
{ "poNumber": "example", "receivedAt": "2026-11-02", "lines": [ { "quantityReceived": "10.00", "poLineNumber": 1 } ]}Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
id
required
string
received_at
required
string
Example generated
{ "id": "example", "received_at": "example"}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Conflicting idempotency key or resource processing state
Media typeapplication/json