---
title: "Purchasereceipt data model"
url: "https://docs.unified.to/accounting/purchasereceipt/model"
description: "API reference for Purchasereceipt data model. Launch multiple pre-built Purchasereceipt integrations today with zero maintenance — all through a single API."
---
# Purchasereceipt data model

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](/accounting/integrations) page. 

### 

* Data Model
* Typescript Type
* Zod Shape
* Python Class

Data Model

**id**string 

**created\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**updated\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**organization\_id**string 

**metadata** array 

**raw**any 

**receipt\_number**string 

**contact\_id**string 

supplier (reference to AccountingContact)

**purchaseorder\_id**string 

header when single-PO

**posted\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**status** enum

Valid values:

 "POSTED" 

 "CANCELLED" 

 "OTHER" 

**currency**string 

**total\_amount**number 

**notes**string 

supplier delivery note / packing slip / memo — NOT a separate reference field

**lineitems** array 

**attachments** array

## Embedded objects

The fields below reference the following embedded objects, each documented as a table of its own fields.

### AccountingAttachment

| Field | Type | Required | Description |
|---|---|---|---|
| id | string |  |  |
| download_url | string |  |  |
| name | string |  |  |
| mime_type | string |  |  |

### AccountingMetadata

| Field | Type | Required | Description |
|---|---|---|---|
| id | string |  |  |
| slug | string |  |  |
| value | any |  |  |
| namespace | string |  |  |
| format | string enum: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL |  |  |
| extra_data | any |  |  |

### AccountingPurchasereceiptLineitem

| Field | Type | Required | Description |
|---|---|---|---|
| id | string |  |  |
| item_id | string |  | (reference to CommerceItem) |
| item_sku | string |  |  |
| item_name | string |  |  |
| item_description | string |  |  |
| unit_quantity_received | number |  |  |
| unit_quantity_ordered | number |  |  |
| unit_amount | number |  |  |
| total_amount | number |  |  |
| purchaseorder_id | string |  |  |
| purchaseorder_line_identifier | string |  | vendor PO line number for three-way match |
| account_id | string |  | (reference to AccountingAccount) |
| locations | AccountingReference[] |  | plant/warehouse/bin — same shape as IAccountingLineitem.locations |

### AccountingReference

| Field | Type | Required | Description |
|---|---|---|---|
| id | string |  |  |
| name | string |  |  |
