Purchasereceipt data model
View field support, webhooks, and list parameters for each integration on the Supported Integrations page.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | |
created_at | string (date-time) | No | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) |
updated_at | string (date-time) | No | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) |
organization_id | string | No | |
metadata | AccountingMetadata[] | No | |
metadata[].id | string | No | The ID of the custom field definition (from the metadata/metadata endpoint). |
metadata[].slug | string | No | The integration's API name (key) of an existing custom field. List valid slugs for this object with the metadata/metadata endpoint; unknown slugs are rejected by the integration. |
metadata[].value | object | No | The field's value, typed by format: DATE as ISO-8601 (YYYY-MM-DD, or YYYY-MM-DDTHH:MM:SSZ for date-times); NUMBER, PRICE and CURRENCY as a number; BOOLEAN and YES_NO as true/false; MULTIPLE_SELECT as an array of option values; otherwise a string. |
metadata[].namespace | string | No | |
metadata[].format | enum | No | The data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL |
metadata[].extra_data | object | No | |
receipt_number | string | No | |
contact_id | string | No | supplier (reference to AccountingContact) |
purchaseorder_id | string | No | header when single-PO |
posted_at | string (date-time) | No | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) |
status | enum | No | Values: POSTED, CANCELLED, OTHER |
currency | string | No | |
total_amount | number | No | |
notes | string | No | supplier delivery note / packing slip / memo — NOT a separate reference field |
lineitems | AccountingPurchasereceiptLineitem[] | No | |
lineitems[].id | string | No | |
lineitems[].item_id | string | No | (reference to CommerceItem) |
lineitems[].item_sku | string | No | |
lineitems[].item_name | string | No | |
lineitems[].item_description | string | No | |
lineitems[].unit_quantity_received | number | No | |
lineitems[].unit_quantity_ordered | number | No | |
lineitems[].unit_amount | number | No | |
lineitems[].total_amount | number | No | |
lineitems[].purchaseorder_id | string | No | |
lineitems[].purchaseorder_line_identifier | string | No | vendor PO line number for three-way match |
lineitems[].account_id | string | No | (reference to AccountingAccount) |
lineitems[].locations | AccountingReference[] | No | plant/warehouse/bin — same shape as IAccountingLineitem.locations |
lineitems[].locations[].id | string | No | |
lineitems[].locations[].name | string | No | |
attachments | AccountingAttachment[] | No | |
attachments[].id | string | No | |
attachments[].download_url | string | No | |
attachments[].name | string | No | |
attachments[].mime_type | string | No |
Are we missing anything? Let us know
Was this page helpful?