Sales Receipts
A sale the customer paid for on the spot, with nothing left to collect: a till, a booking system, your own checkout. A sales receipt posts to the ledger the moment it is created, debiting the account the money went to and crediting each line's income account, with sales tax, discount, processing fee and the cost of any tracked inventory sold on their own lines. The total is always derived from the line items. For a sale the customer pays later, create an invoice instead. Requires the money_in scope.
Where the money goes
Name a bank or cash account in deposit_to_account_id when the money lands there directly. Leave it out and the receipt waits in Undeposited Funds until a deposit in the app sweeps it with the day's other takings, which is how a till that banks once a day usually reads. When the card processor keeps a fee before paying out, send it as processing_fee_cents: it is posted as an expense and the deposit is the total less the fee.
Bank feeds
A sales receipt created through the API is not matched to any bank transaction. If the same money later arrives on a connected bank feed it appears in Review, and the user matches it to this receipt (or to the deposit that swept it) there. Send an Idempotency-Key on every create so a retry never posts the same sale twice.
Editing and voiding
An edit reposts the entry. A receipt already swept into a deposit keeps its amount, customer, currency, entity and deposit account until the deposit is undone. A void reverses the entry and is refused while the receipt is in a deposit (in_deposit) or has a refund against it (refunded).
The Sales Receipt Object
| Field | Type | Description |
|---|---|---|
| id | uuid | Sales receipt UUID |
| object | sales_receipt | Always 'sales_receipt' |
| receipt_number | string | Human-readable receipt number (e.g., SR-0001) |
| date | date | ISO 8601 date of the sale |
| posted | boolean | Whether the receipt's entry is live on the ledger. True from create; false once voided |
| voided | boolean | Whether the receipt was voided (its entry reversed) |
| voided_at | date-time | null | ISO 8601 timestamp it was voided (null unless voided) |
| currency | string | ISO currency code (e.g., USD) |
| exchange_rate | string | Units of the company's home currency per unit of currency, as a decimal string |
| subtotal_cents | integer | Sum of the lines before discount and tax, in cents |
| discount_cents | integer | Total discount, in cents |
| tax_amount_cents | integer | Sales tax, in cents |
| total_cents | integer | Total the customer paid: subtotal - discount + tax, in cents |
| processing_fee_cents | integer | What the card processor kept before the money landed, in cents (0 if none) |
| memo | string | null | Internal memo |
| deposit_to_account_id | uuid | null | Chart account UUID the money went to; null means Undeposited Funds, waiting for a deposit |
| location_id | uuid | null | Location UUID (if set) |
| entity_id | uuid | null | Entity UUID the sale belongs to (multi-entity companies) |
| party | object | null | Customer summary (null if none) |
| line_items | object[] | Sales receipt line items |
| created_at | date-time | ISO 8601 timestamp |
| updated_at | date-time | ISO 8601 timestamp |
Endpoints
/api/v1/sales_receiptsList sales receipts
Returns a paginated list of sales receipts for the current organization, newest first.
Scopes: sales_receipts:read or sales_receipts:write or money_in·operationId: listSalesReceipts
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| customer_id | uuid | Filter by customer (party) UUID |
| voided | string | true: only voided receipts; false: only live ones. Omit for both |
| date_from | date | Only receipts dated on or after this date (YYYY-MM-DD) |
| date_to | date | Only receipts dated on or before this date (YYYY-MM-DD) |
| search | string | Search by receipt number, customer name or memo |
| page | integer | Page number (default 1) |
| per_page | integer | Results per page (1-200, default 50) |
curl https://imprest.ai/api/v1/sales_receipts \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"sales_receipts": [
{
"id": "b3cb8a88-8853-4b46-981d-372389c39b78",
"object": "sales_receipt",
"receipt_number": "SR-0002",
"date": "2026-03-05",
"posted": false,
"voided": true,
"voided_at": "2026-11-23T22:27:50Z",
"currency": "USD",
"exchange_rate": "1.0",
"subtotal_cents": 2500,
"discount_cents": 0,
"tax_amount_cents": 0,
"total_cents": 2500,
"processing_fee_cents": 0,
"memo": null,
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"location_id": null,
"entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"party": null,
"line_items": [
{
"id": "8832668a-9dcf-4026-a3c3-667cfd4ba86a",
"description": null,
"quantity": "1.0",
"rate_cents": 2500,
"amount_cents": 2500,
"discount_cents": 0,
"taxable": false,
"product_id": null,
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"entity_id": null,
"location_id": null,
"service_start_date": null,
"service_end_date": null
}
],
"created_at": "2026-11-23T22:27:49Z",
"updated_at": "2026-11-23T22:27:50Z"
},
{
"id": "1177a99a-922c-4987-8356-0316e39487d8",
"object": "sales_receipt",
"receipt_number": "SR-0001",
"date": "2026-03-01",
"posted": true,
"voided": false,
"voided_at": null,
"currency": "USD",
"exchange_rate": "1.0",
"subtotal_cents": 2500,
"discount_cents": 0,
"tax_amount_cents": 0,
"total_cents": 2500,
"processing_fee_cents": 0,
"memo": null,
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"location_id": null,
"entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"party": {
"id": "1e65c523-b8fd-57b2-ae7b-1201f840fd5d",
"display_name": "Acme Corp"
},
"line_items": [
{
"id": "114dd757-c85f-43eb-9c4b-401bfff559b1",
"description": null,
"quantity": "1.0",
"rate_cents": 2500,
"amount_cents": 2500,
"discount_cents": 0,
"taxable": false,
"product_id": null,
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"entity_id": null,
"location_id": null,
"service_start_date": null,
"service_end_date": null
}
],
"created_at": "2026-11-23T22:27:49Z",
"updated_at": "2026-11-23T22:27:49Z"
}
],
"pagination": {
"page": 1,
"per_page": 50,
"total_count": 2,
"total_pages": 1
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| sales_receiptsrequired | object[] | Array of sales receipt objects |
| idrequired | uuid | Sales receipt UUID |
| objectrequired | sales_receipt | Always 'sales_receipt' |
| receipt_numberrequired | string | Human-readable receipt number (e.g., SR-0001) |
| daterequired | date | ISO 8601 date of the sale |
| postedrequired | boolean | Whether the receipt's entry is live on the ledger. True from create; false once voided |
| voidedrequired | boolean | Whether the receipt was voided (its entry reversed) |
| voided_atrequired | date-time | null | ISO 8601 timestamp it was voided (null unless voided) |
| currencyrequired | string | ISO currency code (e.g., USD) |
| exchange_raterequired | string | Units of the company's home currency per unit of currency, as a decimal string |
| subtotal_centsrequired | integer | Sum of the lines before discount and tax, in cents |
| discount_centsrequired | integer | Total discount, in cents |
| tax_amount_centsrequired | integer | Sales tax, in cents |
| total_centsrequired | integer | Total the customer paid: subtotal - discount + tax, in cents |
| processing_fee_centsrequired | integer | What the card processor kept before the money landed, in cents (0 if none) |
| memorequired | string | null | Internal memo |
| deposit_to_account_idrequired | uuid | null | Chart account UUID the money went to; null means Undeposited Funds, waiting for a deposit |
| location_idrequired | uuid | null | Location UUID (if set) |
| entity_idrequired | uuid | null | Entity UUID the sale belongs to (multi-entity companies) |
| partyrequired | object | null | Customer summary (null if none) |
| idrequired | uuid | Customer (party) UUID |
| display_namerequired | string | Customer display name |
| line_itemsrequired | object[] | Sales receipt line items |
| idrequired | uuid | Line item UUID |
| descriptionrequired | string | null | Line item description |
| quantityrequired | string | Quantity as a decimal string |
| rate_centsrequired | integer | Unit price in cents |
| amount_centsrequired | integer | Line total before discount, in cents |
| discount_centsrequired | integer | This line's share of the discount, in cents |
| taxablerequired | boolean | Whether sales tax applies to the line |
| product_idrequired | uuid | null | Product UUID (if linked) |
| account_idrequired | uuid | Income chart account UUID |
| entity_idrequired | uuid | null | Entity UUID the line posts to (multi-entity companies) |
| location_idrequired | uuid | null | Location UUID (if set on the line) |
| service_start_daterequired | date | null | ISO 8601 date the service starts; with service_end_date, the revenue is deferred and recognized over the period |
| service_end_daterequired | date | null | ISO 8601 date the service ends |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
| paginationrequired | object | Where this page sits in the whole list |
| pagerequired | integer | This page's number, from 1 |
| per_pagerequired | integer | Results per page (1-200, default 50) |
| total_countrequired | integer | Results across every page |
| total_pagesrequired | integer | Pages in the whole list (at least 1) |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A malformed date (invalid_date) or voided filter (invalid_filter)
Every error uses the same envelope: error, message and error_code.
/api/v1/sales_receiptsCreate a sales receipt
Records a sale paid on the spot and posts it to the ledger: debits the deposit account (or Undeposited Funds), credits each line's income account, and books sales tax, discount, processing fee and the cost of any tracked inventory sold. The total is derived from the lines. The receipt is not matched to any bank transaction; if the same money arrives on a bank feed it appears in Review for matching.
Scopes: sales_receipts:write or money_in·operationId: createSalesReceipt
Body Parameters
| Parameter | Type | Description |
|---|---|---|
| customer_id | uuid | Customer (party) UUID. Optional: a walk-in sale has no customer |
| date | date | Sale date (YYYY-MM-DD, defaults to today in the company's time zone) |
| receipt_number | string | Receipt number (defaults to the next in sequence) |
| deposit_to_account_id | uuid | Bank or cash chart account UUID the money went to. Omit to hold it in Undeposited Funds for a later deposit |
| memo | string | Internal memo |
| location_id | uuid | Location UUID |
| entity_id | uuid | Entity UUID the sale belongs to (multi-entity companies) |
| currency | string | ISO currency code (defaults to the company's home currency) |
| exchange_rate | string | Home currency per unit of currency, as a decimal string (foreign-currency sales) |
| tax_amount_cents | integer | Sales tax collected, in cents (kept as given) |
| discount_percent | string | A discount on the whole sale as a percent, as a decimal string (e.g. "10"). Spread across the lines |
| discount_cents | integer | A discount on the whole sale in cents. Spread across the lines. Not with discount_percent |
| processing_fee_cents | integer | What the card processor kept, in cents. Booked to processing fees; the deposit is the total less the fee |
| processing_fee_account_id | uuid | Expense chart account UUID for the fee (defaults to the company's Payment Processing Fees) |
| dimension_values | object | Dimension tagging (dimension_id => value_id) |
| line_items_attributesrequired | object[] | Line items (at least one) |
| product_id | uuid | Product UUID. Its income account and description are used when not given |
| account_id | uuid | Income chart account UUID (required when the line has no product) |
| description | string | Line item description |
| quantity | number | Quantity (default 1) |
| rate_cents | integer | Unit price in cents (e.g., 2500 = $25.00) |
| amount_cents | integer | Line total in cents; the unit price is derived as amount / quantity |
| taxable | boolean | Whether sales tax applies to the line |
| location_id | uuid | Location UUID for this line |
| entity_id | uuid | Entity UUID, for companies that keep several legal entities in one set of books |
| service_start_date | date | Service period start (YYYY-MM-DD). With service_end_date, defers the revenue |
| service_end_date | date | Service period end (YYYY-MM-DD) |
curl -X POST https://imprest.ai/api/v1/sales_receipts \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "1e65c523-b8fd-57b2-ae7b-1201f840fd5d",
"date": "2026-03-10",
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"memo": "Farmers market",
"line_items_attributes": [
{
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"description": "Jam",
"quantity": 3,
"rate_cents": 850
}
]
}'{
"sales_receipt": {
"id": "497414fd-b1b1-4dbc-bef2-bf6d68c017a3",
"object": "sales_receipt",
"receipt_number": "SR-0001",
"date": "2026-03-10",
"posted": true,
"voided": false,
"voided_at": null,
"currency": "USD",
"exchange_rate": "1.0",
"subtotal_cents": 2550,
"discount_cents": 0,
"tax_amount_cents": 0,
"total_cents": 2550,
"processing_fee_cents": 0,
"memo": "Farmers market",
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"location_id": null,
"entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"party": {
"id": "1e65c523-b8fd-57b2-ae7b-1201f840fd5d",
"display_name": "Acme Corp"
},
"line_items": [
{
"id": "7ea91710-705e-456b-93af-0d307a20f29a",
"description": "Jam",
"quantity": "3.0",
"rate_cents": 850,
"amount_cents": 2550,
"discount_cents": 0,
"taxable": false,
"product_id": null,
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"entity_id": null,
"location_id": null,
"service_start_date": null,
"service_end_date": null
}
],
"created_at": "2026-11-23T22:27:50Z",
"updated_at": "2026-11-23T22:27:50Z"
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| sales_receiptrequired | object | Sales receipt object |
| idrequired | uuid | Sales receipt UUID |
| objectrequired | sales_receipt | Always 'sales_receipt' |
| receipt_numberrequired | string | Human-readable receipt number (e.g., SR-0001) |
| daterequired | date | ISO 8601 date of the sale |
| postedrequired | boolean | Whether the receipt's entry is live on the ledger. True from create; false once voided |
| voidedrequired | boolean | Whether the receipt was voided (its entry reversed) |
| voided_atrequired | date-time | null | ISO 8601 timestamp it was voided (null unless voided) |
| currencyrequired | string | ISO currency code (e.g., USD) |
| exchange_raterequired | string | Units of the company's home currency per unit of currency, as a decimal string |
| subtotal_centsrequired | integer | Sum of the lines before discount and tax, in cents |
| discount_centsrequired | integer | Total discount, in cents |
| tax_amount_centsrequired | integer | Sales tax, in cents |
| total_centsrequired | integer | Total the customer paid: subtotal - discount + tax, in cents |
| processing_fee_centsrequired | integer | What the card processor kept before the money landed, in cents (0 if none) |
| memorequired | string | null | Internal memo |
| deposit_to_account_idrequired | uuid | null | Chart account UUID the money went to; null means Undeposited Funds, waiting for a deposit |
| location_idrequired | uuid | null | Location UUID (if set) |
| entity_idrequired | uuid | null | Entity UUID the sale belongs to (multi-entity companies) |
| partyrequired | object | null | Customer summary (null if none) |
| idrequired | uuid | Customer (party) UUID |
| display_namerequired | string | Customer display name |
| line_itemsrequired | object[] | Sales receipt line items |
| idrequired | uuid | Line item UUID |
| descriptionrequired | string | null | Line item description |
| quantityrequired | string | Quantity as a decimal string |
| rate_centsrequired | integer | Unit price in cents |
| amount_centsrequired | integer | Line total before discount, in cents |
| discount_centsrequired | integer | This line's share of the discount, in cents |
| taxablerequired | boolean | Whether sales tax applies to the line |
| product_idrequired | uuid | null | Product UUID (if linked) |
| account_idrequired | uuid | Income chart account UUID |
| entity_idrequired | uuid | null | Entity UUID the line posts to (multi-entity companies) |
| location_idrequired | uuid | null | Location UUID (if set on the line) |
| service_start_daterequired | date | null | ISO 8601 date the service starts; with service_end_date, the revenue is deferred and recognized over the period |
| service_end_daterequired | date | null | ISO 8601 date the service ends |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
Errors
401No valid access token (invalid_token).402The company's subscription has lapsed, so its books are read-only until it's renewed (write_locked).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422Validation errors (validation_error), an unknown customer (customer_not_found), a deposit account that is not a bank or cash account (invalid_deposit_account), a locked period, or a malformed cents/date value
Every error uses the same envelope: error, message and error_code.
/api/v1/sales_receipts/:idRetrieve a sales receipt
Scopes: sales_receipts:read or sales_receipts:write or money_in·operationId: getSalesReceipt
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| idrequired | uuid | Sales receipt UUID |
curl https://imprest.ai/api/v1/sales_receipts/8c2808a2-5a8d-482d-a797-f1667640c9b1 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"sales_receipt": {
"id": "8c2808a2-5a8d-482d-a797-f1667640c9b1",
"object": "sales_receipt",
"receipt_number": "SR-0001",
"date": "2026-03-10",
"posted": true,
"voided": false,
"voided_at": null,
"currency": "USD",
"exchange_rate": "1.0",
"subtotal_cents": 2550,
"discount_cents": 0,
"tax_amount_cents": 0,
"total_cents": 2550,
"processing_fee_cents": 0,
"memo": null,
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"location_id": null,
"entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"party": {
"id": "1e65c523-b8fd-57b2-ae7b-1201f840fd5d",
"display_name": "Acme Corp"
},
"line_items": [
{
"id": "85647da0-f99c-4670-abe3-b6dc85224421",
"description": "Jam",
"quantity": "3.0",
"rate_cents": 850,
"amount_cents": 2550,
"discount_cents": 0,
"taxable": false,
"product_id": null,
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"entity_id": null,
"location_id": null,
"service_start_date": null,
"service_end_date": null
}
],
"created_at": "2026-11-23T22:27:50Z",
"updated_at": "2026-11-23T22:27:50Z"
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| sales_receiptrequired | object | Sales receipt object |
| idrequired | uuid | Sales receipt UUID |
| objectrequired | sales_receipt | Always 'sales_receipt' |
| receipt_numberrequired | string | Human-readable receipt number (e.g., SR-0001) |
| daterequired | date | ISO 8601 date of the sale |
| postedrequired | boolean | Whether the receipt's entry is live on the ledger. True from create; false once voided |
| voidedrequired | boolean | Whether the receipt was voided (its entry reversed) |
| voided_atrequired | date-time | null | ISO 8601 timestamp it was voided (null unless voided) |
| currencyrequired | string | ISO currency code (e.g., USD) |
| exchange_raterequired | string | Units of the company's home currency per unit of currency, as a decimal string |
| subtotal_centsrequired | integer | Sum of the lines before discount and tax, in cents |
| discount_centsrequired | integer | Total discount, in cents |
| tax_amount_centsrequired | integer | Sales tax, in cents |
| total_centsrequired | integer | Total the customer paid: subtotal - discount + tax, in cents |
| processing_fee_centsrequired | integer | What the card processor kept before the money landed, in cents (0 if none) |
| memorequired | string | null | Internal memo |
| deposit_to_account_idrequired | uuid | null | Chart account UUID the money went to; null means Undeposited Funds, waiting for a deposit |
| location_idrequired | uuid | null | Location UUID (if set) |
| entity_idrequired | uuid | null | Entity UUID the sale belongs to (multi-entity companies) |
| partyrequired | object | null | Customer summary (null if none) |
| idrequired | uuid | Customer (party) UUID |
| display_namerequired | string | Customer display name |
| line_itemsrequired | object[] | Sales receipt line items |
| idrequired | uuid | Line item UUID |
| descriptionrequired | string | null | Line item description |
| quantityrequired | string | Quantity as a decimal string |
| rate_centsrequired | integer | Unit price in cents |
| amount_centsrequired | integer | Line total before discount, in cents |
| discount_centsrequired | integer | This line's share of the discount, in cents |
| taxablerequired | boolean | Whether sales tax applies to the line |
| product_idrequired | uuid | null | Product UUID (if linked) |
| account_idrequired | uuid | Income chart account UUID |
| entity_idrequired | uuid | null | Entity UUID the line posts to (multi-entity companies) |
| location_idrequired | uuid | null | Location UUID (if set on the line) |
| service_start_daterequired | date | null | ISO 8601 date the service starts; with service_end_date, the revenue is deferred and recognized over the period |
| service_end_daterequired | date | null | ISO 8601 date the service ends |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.404Sales receipt not found
Every error uses the same envelope: error, message and error_code.
/api/v1/sales_receipts/:idUpdate a sales receipt
Updates a sales receipt and reposts it to the ledger. A voided receipt can't be edited. A receipt swept into a deposit keeps its amount, customer, currency, entity and deposit account until the deposit is undone; other fields still change. The processing fee is set at create and can't be changed here.
Scopes: sales_receipts:write or money_in·operationId: updateSalesReceipt
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| idrequired | uuid | Sales receipt UUID |
Body Parameters
| Parameter | Type | Description |
|---|---|---|
| customer_id | uuid | Customer (party) UUID |
| date | date | Sale date (YYYY-MM-DD) |
| receipt_number | string | Receipt number |
| deposit_to_account_id | uuid | Bank or cash chart account UUID, or null for Undeposited Funds |
| memo | string | Internal memo |
| location_id | uuid | Location UUID |
| entity_id | uuid | Entity UUID (multi-entity companies) |
| tax_amount_cents | integer | Sales tax collected, in cents |
| discount_percent | string | Discount on the whole sale as a percent (decimal string). "0" removes it |
| discount_cents | integer | Discount on the whole sale in cents. 0 removes it |
| dimension_values | object | Dimension tagging (dimension_id => value_id). Omit to keep the current tags; {} clears them |
| line_items_attributes | object[] | Line items. Include each line's id to edit in place (and _destroy to remove one); a set with no ids REPLACES every existing line |
| id | uuid | Line item UUID (for updates) |
| product_id | uuid | Product UUID. Its income account and description are used when not given |
| account_id | uuid | Income chart account UUID (required when the line has no product) |
| description | string | Line item description |
| quantity | number | Quantity (default 1) |
| rate_cents | integer | Unit price in cents (e.g., 2500 = $25.00) |
| amount_cents | integer | Line total in cents; the unit price is derived as amount / quantity |
| taxable | boolean | Whether sales tax applies to the line |
| location_id | uuid | Location UUID for this line |
| entity_id | uuid | Entity UUID, for companies that keep several legal entities in one set of books |
| service_start_date | date | Service period start (YYYY-MM-DD). With service_end_date, defers the revenue |
| service_end_date | date | Service period end (YYYY-MM-DD) |
| _destroy | boolean | Remove this line item |
curl -X PATCH https://imprest.ai/api/v1/sales_receipts/7da3ee84-0f2f-4ef9-b2e5-49ff792fbb51 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"memo": "Corrected",
"line_items_attributes": [
{
"id": "0a30cce5-2832-44e9-b26a-548799f7fe90",
"rate_cents": 4000
}
]
}'{
"sales_receipt": {
"id": "7da3ee84-0f2f-4ef9-b2e5-49ff792fbb51",
"object": "sales_receipt",
"receipt_number": "SR-0001",
"date": "2026-03-01",
"posted": true,
"voided": false,
"voided_at": null,
"currency": "USD",
"exchange_rate": "1.0",
"subtotal_cents": 4000,
"discount_cents": 0,
"tax_amount_cents": 0,
"total_cents": 4000,
"processing_fee_cents": 0,
"memo": "Corrected",
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"location_id": null,
"entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"party": null,
"line_items": [
{
"id": "0a30cce5-2832-44e9-b26a-548799f7fe90",
"description": null,
"quantity": "1.0",
"rate_cents": 4000,
"amount_cents": 4000,
"discount_cents": 0,
"taxable": false,
"product_id": null,
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"entity_id": null,
"location_id": null,
"service_start_date": null,
"service_end_date": null
}
],
"created_at": "2026-11-23T22:27:49Z",
"updated_at": "2026-11-23T22:27:49Z"
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| sales_receiptrequired | object | Sales receipt object |
| idrequired | uuid | Sales receipt UUID |
| objectrequired | sales_receipt | Always 'sales_receipt' |
| receipt_numberrequired | string | Human-readable receipt number (e.g., SR-0001) |
| daterequired | date | ISO 8601 date of the sale |
| postedrequired | boolean | Whether the receipt's entry is live on the ledger. True from create; false once voided |
| voidedrequired | boolean | Whether the receipt was voided (its entry reversed) |
| voided_atrequired | date-time | null | ISO 8601 timestamp it was voided (null unless voided) |
| currencyrequired | string | ISO currency code (e.g., USD) |
| exchange_raterequired | string | Units of the company's home currency per unit of currency, as a decimal string |
| subtotal_centsrequired | integer | Sum of the lines before discount and tax, in cents |
| discount_centsrequired | integer | Total discount, in cents |
| tax_amount_centsrequired | integer | Sales tax, in cents |
| total_centsrequired | integer | Total the customer paid: subtotal - discount + tax, in cents |
| processing_fee_centsrequired | integer | What the card processor kept before the money landed, in cents (0 if none) |
| memorequired | string | null | Internal memo |
| deposit_to_account_idrequired | uuid | null | Chart account UUID the money went to; null means Undeposited Funds, waiting for a deposit |
| location_idrequired | uuid | null | Location UUID (if set) |
| entity_idrequired | uuid | null | Entity UUID the sale belongs to (multi-entity companies) |
| partyrequired | object | null | Customer summary (null if none) |
| idrequired | uuid | Customer (party) UUID |
| display_namerequired | string | Customer display name |
| line_itemsrequired | object[] | Sales receipt line items |
| idrequired | uuid | Line item UUID |
| descriptionrequired | string | null | Line item description |
| quantityrequired | string | Quantity as a decimal string |
| rate_centsrequired | integer | Unit price in cents |
| amount_centsrequired | integer | Line total before discount, in cents |
| discount_centsrequired | integer | This line's share of the discount, in cents |
| taxablerequired | boolean | Whether sales tax applies to the line |
| product_idrequired | uuid | null | Product UUID (if linked) |
| account_idrequired | uuid | Income chart account UUID |
| entity_idrequired | uuid | null | Entity UUID the line posts to (multi-entity companies) |
| location_idrequired | uuid | null | Location UUID (if set on the line) |
| service_start_daterequired | date | null | ISO 8601 date the service starts; with service_end_date, the revenue is deferred and recognized over the period |
| service_end_daterequired | date | null | ISO 8601 date the service ends |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
Errors
401No valid access token (invalid_token).402The company's subscription has lapsed, so its books are read-only until it's renewed (write_locked).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422Validation errors, a voided receipt (sales_receipt_voided), or a change a deposit or a refund holds in place (invalid_state)
Every error uses the same envelope: error, message and error_code.
/api/v1/sales_receipts/:id/voidVoid a sales receipt
Voids the sales receipt and reverses its ledger entry, including the cost of any inventory it sold.
Scopes: sales_receipts:write or money_in·operationId: voidSalesReceipt
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| idrequired | uuid | Sales receipt UUID |
curl -X POST https://imprest.ai/api/v1/sales_receipts/ec8a0e72-9ff4-4821-8391-8d35a597f827/void \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"{
"sales_receipt": {
"id": "ec8a0e72-9ff4-4821-8391-8d35a597f827",
"object": "sales_receipt",
"receipt_number": "SR-0001",
"date": "2026-03-01",
"posted": false,
"voided": true,
"voided_at": "2026-11-23T22:27:49Z",
"currency": "USD",
"exchange_rate": "1.0",
"subtotal_cents": 2500,
"discount_cents": 0,
"tax_amount_cents": 0,
"total_cents": 2500,
"processing_fee_cents": 0,
"memo": null,
"deposit_to_account_id": "def75944-088d-5417-88b3-d3d68486b302",
"location_id": null,
"entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"party": null,
"line_items": [
{
"id": "339d0194-0501-4099-ad3a-9c389c6bfae5",
"description": null,
"quantity": "1.0",
"rate_cents": 2500,
"amount_cents": 2500,
"discount_cents": 0,
"taxable": false,
"product_id": null,
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"entity_id": null,
"location_id": null,
"service_start_date": null,
"service_end_date": null
}
],
"created_at": "2026-11-23T22:27:49Z",
"updated_at": "2026-11-23T22:27:49Z"
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| sales_receiptrequired | object | Sales receipt object with voided=true |
| idrequired | uuid | Sales receipt UUID |
| objectrequired | sales_receipt | Always 'sales_receipt' |
| receipt_numberrequired | string | Human-readable receipt number (e.g., SR-0001) |
| daterequired | date | ISO 8601 date of the sale |
| postedrequired | boolean | Whether the receipt's entry is live on the ledger. True from create; false once voided |
| voidedrequired | boolean | Whether the receipt was voided (its entry reversed) |
| voided_atrequired | date-time | null | ISO 8601 timestamp it was voided (null unless voided) |
| currencyrequired | string | ISO currency code (e.g., USD) |
| exchange_raterequired | string | Units of the company's home currency per unit of currency, as a decimal string |
| subtotal_centsrequired | integer | Sum of the lines before discount and tax, in cents |
| discount_centsrequired | integer | Total discount, in cents |
| tax_amount_centsrequired | integer | Sales tax, in cents |
| total_centsrequired | integer | Total the customer paid: subtotal - discount + tax, in cents |
| processing_fee_centsrequired | integer | What the card processor kept before the money landed, in cents (0 if none) |
| memorequired | string | null | Internal memo |
| deposit_to_account_idrequired | uuid | null | Chart account UUID the money went to; null means Undeposited Funds, waiting for a deposit |
| location_idrequired | uuid | null | Location UUID (if set) |
| entity_idrequired | uuid | null | Entity UUID the sale belongs to (multi-entity companies) |
| partyrequired | object | null | Customer summary (null if none) |
| idrequired | uuid | Customer (party) UUID |
| display_namerequired | string | Customer display name |
| line_itemsrequired | object[] | Sales receipt line items |
| idrequired | uuid | Line item UUID |
| descriptionrequired | string | null | Line item description |
| quantityrequired | string | Quantity as a decimal string |
| rate_centsrequired | integer | Unit price in cents |
| amount_centsrequired | integer | Line total before discount, in cents |
| discount_centsrequired | integer | This line's share of the discount, in cents |
| taxablerequired | boolean | Whether sales tax applies to the line |
| product_idrequired | uuid | null | Product UUID (if linked) |
| account_idrequired | uuid | Income chart account UUID |
| entity_idrequired | uuid | null | Entity UUID the line posts to (multi-entity companies) |
| location_idrequired | uuid | null | Location UUID (if set on the line) |
| service_start_daterequired | date | null | ISO 8601 date the service starts; with service_end_date, the revenue is deferred and recognized over the period |
| service_end_daterequired | date | null | ISO 8601 date the service ends |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
Errors
401No valid access token (invalid_token).402The company's subscription has lapsed, so its books are read-only until it's renewed (write_locked).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422Already voided (already_voided), in a deposit (in_deposit), refunded (refunded), on a reconciled bank line (reconciled), or otherwise refused (void_refused)
Every error uses the same envelope: error, message and error_code.