A purchasing document contains information about purchasing transactions. A purchasing transaction can be a purchase requisition, purchase order, receipt, vendor invoice, or adjustment. When you create a new document, it represents the first transaction in a workflow, and it can only be converted to the next transaction in a workflow.
See Add a purchase transaction in the Sage Intacct Help Center for more information.
Returns a collection with a key, ID, and link for each purchasing document. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View Purchasing documents |
OK
Bad Request
{- "ia::result": [
- {
- "key": "73",
- "id": "Vendor Invoice-Po-0204-Rec",
- "href": "/objects/purchasing/document::Vendor%20Invoice/73"
}, - {
- "key": "76",
- "id": "PO Receiver Invoice-Po-0205-Rec",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/76"
}, - {
- "key": "77",
- "id": "PO Receiver Invoice-Po-0206-Rec",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/77"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified purchasing document.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View Purchasing documents |
key required | string |
OK
Bad Request
{- "ia::result": {
- "key": "1428",
- "documentNumber": "POIR-003",
- "id": "PO Receiver Invoice-POIR-003",
- "sourceDocument": {
- "id": "Purchase Order-PO-00063",
- "key": "1293",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "state": "pending",
- "txnDate": "2024-06-01",
- "audit": {
- "createdDateTime": "2024-10-03T23:08:54Z",
- "createdBy": "39",
- "modifiedBy": "39",
- "modifiedDateTime": "2024-10-03T23:08:57Z"
}, - "dueDate": "2024-07-01",
- "referenceNumber": "Sales Order-SO-00173",
- "vendorDocumentNumber": null,
- "documentType": "PO Receiver Invoice",
- "txnDefinition": {
- "id": "PO Receiver Invoice",
- "key": "258",
- "href": "/objects/purchasing/txn-definition::PO%20Receiver%20Invoice/258"
}, - "paymentTerm": {
- "key": "4",
- "id": "NET30",
- "href": "/objects/accounts-payable/term/4"
}, - "notes": null,
- "shippingMethod": {
- "key": null,
- "id": null
}, - "contacts": {
- "primary": {
- "key": "1367",
- "id": "HPD Inc"
}, - "shipTo": {
- "key": "1349",
- "id": "Gupta, Raj"
}, - "billTo": {
- "key": "1367",
- "id": "HPD Inc"
}, - "deliverTo": {
- "key": null,
- "id": null
}
}, - "memo": "For MetroBank21 customers.",
- "isPrinted": false,
- "isBackordered": false,
- "subtotal": "1875.00",
- "total": "1875.00",
- "txnCurrency": "USD",
- "exchangeRate": {
- "date": "2025-03-29",
- "rate": "1.0000000000"
}, - "subtotalInTxnCurrency": "1875.00",
- "totalInTxnCurrency": "1875.00",
- "baseCurrency": "USD",
- "isSystemGeneratedDocument": false,
- "postingDate": "2024-06-01",
- "taxSolution": {
- "key": null,
- "id": null,
- "showMultilineTax": null,
- "taxCalculationMethod": null
}, - "retainagePercent": null,
- "paymentStatus": "selected",
- "requestedShippingDate": null,
- "doNotShipBeforeDate": null,
- "doNotShipAfterDate": null,
- "promisedDate": null,
- "contractStartDate": null,
- "contractEndDate": null,
- "cancelAfterDate": null,
- "vendor": {
- "key": "510",
- "id": "V-00006",
- "href": "/objects/accounts-payable/vendor/510"
}, - "lines": [
- {
- "id": "2371",
- "key": "2371",
- "documentHeader": {
- "key": "1428",
- "id": "PO Receiver Invoice-POIR-003",
- "documentType": "PO Receiver Invoice",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/1428"
}, - "documentType": "PO Receiver Invoice",
- "lineNumber": 0,
- "dimensions": {
- "item": {
- "key": "49",
- "id": "21Mon--21\" Monitor",
- "name": "21\" Monitor",
- "href": "/objects/inventory-control/item/49"
}, - "warehouse": {
- "id": "Test",
- "key": "1",
- "href": "/objects/inventory-control/warehouse/1"
}, - "location": {
- "id": null,
- "key": null
}, - "department": {
- "id": null,
- "key": null
}, - "project": {
- "key": null,
- "id": null
}, - "task": {
- "key": null,
- "id": null
}, - "class": {
- "key": null,
- "id": null,
- "name": null
}, - "customer": {
- "key": "36",
- "id": "C-00045--MetroAtlantix, Inc.",
- "name": "MetroAtlantix, Inc.",
- "href": "/objects/accounts-receivable/customer/36"
}, - "vendor": {
- "key": "510",
- "id": "V-00006--HPD Inc",
- "name": "HPD Inc",
- "href": "/objects/accounts-payable/vendor/510"
}, - "employee": {
- "key": null,
- "id": null,
- "name": null
}, - "contract": {
- "key": null,
- "id": null,
- "name": null
}
}, - "item": {
- "key": "49",
- "id": "21Mon--21\" Monitor",
- "href": "/objects/inventory-control/item/49"
}, - "unit": "Each",
- "memo": null,
- "quantity": "25.0000000000",
- "quantityConverted": "0.0000000000",
- "retailPrice": "75.0000000000",
- "price": "75.0000000000",
- "audit": {
- "createdDateTime": "2024-06-01T00:00:00Z",
- "modifiedDateTime": "2024-10-03T23:08:54Z",
- "createdBy": "39",
- "modifiedBy": "39"
}, - "status": "active",
- "costMethod": "standard",
- "unitQuantity": "25.0000000000",
- "unitPrice": "75.0000000000",
- "sourceDocument": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "sourceDocumentLine": {
- "id": "2140",
- "key": "2140",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document-line::Purchase%20Order/2140"
}, - "txnCurrency": "USD",
- "baseCurrency": "USD",
- "priceInTxnCurrency": "75.0000000000",
- "enableTax": null,
- "isBillable": null,
- "isBilled": null,
- "taxRate": null,
- "taxInBaseCurrency": null,
- "discountPercentage": null,
- "taxInTxnCurrency": null,
- "priceConverted": "0.0000000000",
- "conversionType": "quantity",
- "quantityToleranceVariance": null,
- "priceToleranceVariance": null,
- "requestedShippingDate": null,
- "doNotShipBeforeDate": null,
- "doNotShipAfterDate": null,
- "deliveryDueDate": null,
- "orderConfirmationDate": null,
- "cancelAfterDate": null,
- "allocation": {
- "id": null,
- "key": null
}, - "quantityRemaining": "25.0000000000",
- "trackingDetail": [ ],
- "href": "/objects/purchasing/document-line::PO%20Receiver%20Invoice/2371"
}
], - "history": [
- {
- "id": "1175",
- "key": "1175",
- "convertedTo": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "convertedFrom": {
- "id": null,
- "documentType": null,
- "key": null
}, - "purchasingDocument": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "href": "/objects/purchasing/document-history/1175"
}, - {
- "id": "1270",
- "key": "1270",
- "convertedTo": {
- "key": "1428",
- "id": "PO Receiver Invoice-POIR-003",
- "documentType": "PO Receiver Invoice",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/1428"
}, - "convertedFrom": {
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "key": "1293",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "purchasingDocument": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "href": "/objects/purchasing/document-history/1270"
}
], - "subtotals": [ ],
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/1428"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns a collection with a key, ID, and link for each purchasing document with the specified name.
For example, to list all documents that are based on the Purchase Order transaction definition, specify Purchase Order
as the documentName
in the request URL.
This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View Purchasing documents |
documentName required | string Document Name |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1157",
- "id": "Purchase Order-PO-00037",
- "href": "/objects/purchasing/document::Purchase%20Order/1157"
}, - {
- "key": "1158",
- "id": "Purchase Order-PO-00038",
- "href": "/objects/purchasing/document::Purchase%20Order/1158"
}, - {
- "key": "1159",
- "id": "Purchase Order-PO-00039",
- "href": "/objects/purchasing/document::Purchase%20Order/1159"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new purchasing document. To create a new purchasing document, specify the transaction definition that is the template for the new document as documentName
in the request URL.
When creating a new document, the field state
must be set to one of these values: pending, draft, or submitted.
If no value is specified for the state
field, it defaults to pending.
To access a list of available transaction definitions, use the list transaction definitions operation. For example, to create a new purchasing document that uses the Purchase Requisition transaction definition as a template, specify Purchase Requisition
for the documentName
in the request URL.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View, Add Purchasing documents |
documentName required | string Document Name |
txnDate required | string <date> Date on the purchasing document. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
documentNumber | string Document number for the purchasing document. If the transaction definition does not have a numbering sequence configured, provide a number to identify the transaction. Example: "PO-O122" | ||||||||||||||||||||||||||||||||||||||||||||||||
state | string Default: "pending" State of the purchasing document. Example: "draft" | ||||||||||||||||||||||||||||||||||||||||||||||||
baseCurrency | string Base currency for the transaction. Example: "USD" | ||||||||||||||||||||||||||||||||||||||||||||||||
txnCurrency | string Currency used for the transaction. Example: "USD" | ||||||||||||||||||||||||||||||||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
dueDate | string <date> Due date for the purchasing document. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
postingDate | string <date> The date on which purchasing document posts to the General Ledger. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
referenceNumber | string Reference to another document, as needed. Example: "PURCHASE-100" | ||||||||||||||||||||||||||||||||||||||||||||||||
vendorDocumentNumber | string The number by which to reference a bill or other vendor document. A number is required only if Accounts Payable is configured to require numbers on bills, adjustments, and recurring bills. Example: "A2330-12" | ||||||||||||||||||||||||||||||||||||||||||||||||
notes | string Notes about the purchasing document. Example: "Fast order" | ||||||||||||||||||||||||||||||||||||||||||||||||
memo | string Text to appear on the printed document. Example: "Lowry solutions" | ||||||||||||||||||||||||||||||||||||||||||||||||
cancelAfterDate | string <date> Indicates the date after which the transaction should be be canceled. Example: "2024-05-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
doNotShipBeforeDate | string <date> The date before which goods cannot be shipped. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
doNotShipAfterDate | string <date> The date after which goods cannot be shipped. Example: "2024-05-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
requestedShippingDate | string <date> The date the customer requests the goods to arrive on their premises. The default is the due date. Example: "2024-04-12" | ||||||||||||||||||||||||||||||||||||||||||||||||
promisedDate | string <date> The date the vendor promised to deliver the goods. Example: "2024-04-08" | ||||||||||||||||||||||||||||||||||||||||||||||||
contractStartDate | string <date> Valid start date of a purchase order or purchase contract. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
contractEndDate | string <date> Valid end date of a purchase order or purchase contract. Example: "2024-05-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
retainagePercent | string <decimal-precision-2> Default retainage percentage. Example: "50.10" | ||||||||||||||||||||||||||||||||||||||||||||||||
object Contacts associated with the purchasing document. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Shipping method for the order. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Accounts Payable (AP) term, which determines the expiration date for quotes and the due date for invoices. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Transaction definition that is associated with this transaction. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object The source transaction from which the purchasing document was created. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object The associated tax solution for the transaction. Tax solutions are available for different countries, for example Australia GST or South Africa VAT. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Vendor associated with the purchasing document. Example: "AXN" | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Lines of the purchasing document. | |||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Lines of the purchasing document subtotal. | |||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Lines of the purchasing document history. | |||||||||||||||||||||||||||||||||||||||||||||||||
Array |
Created
Bad Request
{- "vendor": {
- "id": "V-00013"
}, - "txnDate": "2024-03-29",
- "dueDate": "2024-05-29",
- "lines": [
- {
- "dimensions": {
- "item": {
- "id": 88
}, - "warehouse": {
- "id": "WH10004"
}, - "location": {
- "id": "TX"
}
}, - "unit": "Each",
- "unitQuantity": "1",
- "unitPrice": "10.10"
}
]
}
{- "ia::result": {
- "key": "1908",
- "id": "Purchase Requisition-12",
- "href": "/objects/purchasing/document::Purchase%20Requisition/1908"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified purchasing document. For example, to return details about a purchasing document that uses the PO Receiver Invoice transaction definition as a template, specify PO Receiver Invoice
for the documentName
in the request URL.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View Purchasing documents |
documentName required | string Document Name |
key required | string System-assigned unique key for the document. |
OK
Bad Request
{- "ia::result": {
- "key": "1428",
- "documentNumber": "POIR-003",
- "id": "PO Receiver Invoice-POIR-003",
- "sourceDocument": {
- "id": "Purchase Order-PO-00063",
- "key": "1293",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "state": "pending",
- "txnDate": "2024-06-01",
- "audit": {
- "createdDateTime": "2024-10-03T23:08:54Z",
- "createdBy": "39",
- "modifiedBy": "39",
- "modifiedDateTime": "2024-10-03T23:08:57Z"
}, - "dueDate": "2024-07-01",
- "referenceNumber": "Sales Order-SO-00173",
- "vendorDocumentNumber": null,
- "documentType": "PO Receiver Invoice",
- "txnDefinition": {
- "id": "PO Receiver Invoice",
- "key": "258",
- "href": "/objects/purchasing/txn-definition::PO%20Receiver%20Invoice/258"
}, - "paymentTerm": {
- "key": "4",
- "id": "NET30",
- "href": "/objects/accounts-payable/term/4"
}, - "notes": null,
- "shippingMethod": {
- "key": null,
- "id": null
}, - "contacts": {
- "primary": {
- "key": "1367",
- "id": "HPD Inc"
}, - "shipTo": {
- "key": "1349",
- "id": "Gupta, Raj"
}, - "billTo": {
- "key": "1367",
- "id": "HPD Inc"
}, - "deliverTo": {
- "key": null,
- "id": null
}
}, - "memo": "For MetroBank21 customers.",
- "isPrinted": false,
- "isBackordered": false,
- "subtotal": "1875.00",
- "total": "1875.00",
- "txnCurrency": "USD",
- "exchangeRate": {
- "date": "2025-03-29",
- "rate": "1.0000000000"
}, - "subtotalInTxnCurrency": "1875.00",
- "totalInTxnCurrency": "1875.00",
- "baseCurrency": "USD",
- "isSystemGeneratedDocument": false,
- "postingDate": "2024-06-01",
- "taxSolution": {
- "key": null,
- "id": null,
- "showMultilineTax": null,
- "taxCalculationMethod": null
}, - "retainagePercent": null,
- "paymentStatus": "selected",
- "requestedShippingDate": null,
- "doNotShipBeforeDate": null,
- "doNotShipAfterDate": null,
- "promisedDate": null,
- "contractStartDate": null,
- "contractEndDate": null,
- "cancelAfterDate": null,
- "vendor": {
- "key": "510",
- "id": "V-00006",
- "href": "/objects/accounts-payable/vendor/510"
}, - "lines": [
- {
- "id": "2371",
- "key": "2371",
- "documentHeader": {
- "key": "1428",
- "id": "PO Receiver Invoice-POIR-003",
- "documentType": "PO Receiver Invoice",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/1428"
}, - "documentType": "PO Receiver Invoice",
- "lineNumber": 0,
- "dimensions": {
- "item": {
- "key": "49",
- "id": "21Mon--21\" Monitor",
- "name": "21\" Monitor",
- "href": "/objects/inventory-control/item/49"
}, - "warehouse": {
- "id": "Test",
- "key": "1",
- "href": "/objects/inventory-control/warehouse/1"
}, - "location": {
- "id": null,
- "key": null
}, - "department": {
- "id": null,
- "key": null
}, - "project": {
- "key": null,
- "id": null
}, - "task": {
- "key": null,
- "id": null
}, - "class": {
- "key": null,
- "id": null,
- "name": null
}, - "customer": {
- "key": "36",
- "id": "C-00045--MetroAtlantix, Inc.",
- "name": "MetroAtlantix, Inc.",
- "href": "/objects/accounts-receivable/customer/36"
}, - "vendor": {
- "key": "510",
- "id": "V-00006--HPD Inc",
- "name": "HPD Inc",
- "href": "/objects/accounts-payable/vendor/510"
}, - "employee": {
- "key": null,
- "id": null,
- "name": null
}, - "contract": {
- "key": null,
- "id": null,
- "name": null
}
}, - "item": {
- "key": "49",
- "id": "21Mon--21\" Monitor",
- "href": "/objects/inventory-control/item/49"
}, - "unit": "Each",
- "memo": null,
- "quantity": "25.0000000000",
- "quantityConverted": "0.0000000000",
- "retailPrice": "75.0000000000",
- "price": "75.0000000000",
- "audit": {
- "createdDateTime": "2024-06-01T00:00:00Z",
- "modifiedDateTime": "2024-10-03T23:08:54Z",
- "createdBy": "39",
- "modifiedBy": "39"
}, - "status": "active",
- "costMethod": "standard",
- "unitQuantity": "25.0000000000",
- "unitPrice": "75.0000000000",
- "sourceDocument": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "sourceDocumentLine": {
- "id": "2140",
- "key": "2140",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document-line::Purchase%20Order/2140"
}, - "txnCurrency": "USD",
- "baseCurrency": "USD",
- "priceInTxnCurrency": "75.0000000000",
- "enableTax": null,
- "isBillable": null,
- "isBilled": null,
- "taxRate": null,
- "taxInBaseCurrency": null,
- "discountPercentage": null,
- "taxInTxnCurrency": null,
- "priceConverted": "0.0000000000",
- "conversionType": "quantity",
- "quantityToleranceVariance": null,
- "priceToleranceVariance": null,
- "requestedShippingDate": null,
- "doNotShipBeforeDate": null,
- "doNotShipAfterDate": null,
- "deliveryDueDate": null,
- "orderConfirmationDate": null,
- "cancelAfterDate": null,
- "allocation": {
- "id": null,
- "key": null
}, - "quantityRemaining": "25.0000000000",
- "trackingDetail": [ ],
- "href": "/objects/purchasing/document-line::PO%20Receiver%20Invoice/2371"
}
], - "history": [
- {
- "id": "1175",
- "key": "1175",
- "convertedTo": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "convertedFrom": {
- "id": null,
- "documentType": null,
- "key": null
}, - "purchasingDocument": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "href": "/objects/purchasing/document-history/1175"
}, - {
- "id": "1270",
- "key": "1270",
- "convertedTo": {
- "key": "1428",
- "id": "PO Receiver Invoice-POIR-003",
- "documentType": "PO Receiver Invoice",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/1428"
}, - "convertedFrom": {
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "key": "1293",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "purchasingDocument": {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "documentType": "Purchase Order",
- "href": "/objects/purchasing/document::Purchase%20Order/1293"
}, - "href": "/objects/purchasing/document-history/1270"
}
], - "subtotals": [ ],
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/1428"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing purchasing document by setting field values. Any fields not provided remain unchanged. With Edit permissions to Purchasing transactions, most details for a transaction that has a state of Draft or Pending can be edited.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View, Edit Purchasing documents |
documentName required | string Document Name |
key required | string System-assigned unique key for the document. |
documentNumber | string Document number for the purchasing document. If the transaction definition does not have a numbering sequence configured, provide a number to identify the transaction. Example: "PO-O122" | ||||||||||||||||||||||||||||||||||||||||||||||||
state | string Default: "pending" State of the purchasing document. Example: "draft" | ||||||||||||||||||||||||||||||||||||||||||||||||
baseCurrency | string Base currency for the transaction. Example: "USD" | ||||||||||||||||||||||||||||||||||||||||||||||||
txnCurrency | string Currency used for the transaction. Example: "USD" | ||||||||||||||||||||||||||||||||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
txnDate | string <date> Date on the purchasing document. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
dueDate | string <date> Due date for the purchasing document. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
postingDate | string <date> The date on which purchasing document posts to the General Ledger. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
referenceNumber | string Reference to another document, as needed. Example: "PURCHASE-100" | ||||||||||||||||||||||||||||||||||||||||||||||||
vendorDocumentNumber | string The number by which to reference a bill or other vendor document. A number is required only if Accounts Payable is configured to require numbers on bills, adjustments, and recurring bills. Example: "A2330-12" | ||||||||||||||||||||||||||||||||||||||||||||||||
notes | string Notes about the purchasing document. Example: "Fast order" | ||||||||||||||||||||||||||||||||||||||||||||||||
memo | string Text to appear on the printed document. Example: "Lowry solutions" | ||||||||||||||||||||||||||||||||||||||||||||||||
cancelAfterDate | string <date> Indicates the date after which the transaction should be be canceled. Example: "2024-05-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
doNotShipBeforeDate | string <date> The date before which goods cannot be shipped. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
doNotShipAfterDate | string <date> The date after which goods cannot be shipped. Example: "2024-05-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
requestedShippingDate | string <date> The date the customer requests the goods to arrive on their premises. The default is the due date. Example: "2024-04-12" | ||||||||||||||||||||||||||||||||||||||||||||||||
promisedDate | string <date> The date the vendor promised to deliver the goods. Example: "2024-04-08" | ||||||||||||||||||||||||||||||||||||||||||||||||
contractStartDate | string <date> Valid start date of a purchase order or purchase contract. Example: "2024-04-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
contractEndDate | string <date> Valid end date of a purchase order or purchase contract. Example: "2024-05-04" | ||||||||||||||||||||||||||||||||||||||||||||||||
retainagePercent | string <decimal-precision-2> Default retainage percentage. Example: "50.10" | ||||||||||||||||||||||||||||||||||||||||||||||||
object Contacts associated with the purchasing document. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Shipping method for the order. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Accounts Payable (AP) term, which determines the expiration date for quotes and the due date for invoices. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Transaction definition that is associated with this transaction. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object The source transaction from which the purchasing document was created. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object The associated tax solution for the transaction. Tax solutions are available for different countries, for example Australia GST or South Africa VAT. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object Vendor associated with the purchasing document. | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Lines of the purchasing document. | |||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Lines of the purchasing document subtotal. | |||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Lines of the purchasing document history. | |||||||||||||||||||||||||||||||||||||||||||||||||
Array |
OK
Bad Request
{- "referenceNumber": "PURCHASE-100",
- "lines": [
- {
- "dimensions": {
- "warehouse": {
- "id": "WareHouse10004"
}, - "location": {
- "id": "1"
}
}, - "unit": "10 Pack",
- "unitQuantity": "8",
- "multiplier": 1,
- "unitPrice": "100.0000000000"
}, - {
- "key": "46",
- "unitQuantity": "11"
}, - {
- "ia::operation": "delete",
- "key": "44"
}
]
}
{- "ia::result": {
- "key": "70",
- "id": "PO Receiver Invoice-Po-0202-Rec",
- "href": "/objects/purchasing/document::PO%20Receiver%20Invoice/70"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a purchasing document. Several factors determine whether a purchasing transaction can be deleted. See Purchasing transactions in the Sage Intacct Help Center for more information.
Subscription | Purchasing |
---|---|
User type | Business, Employee, Project Manager, Warehouse |
Permissions | List, View, Delete Purchasing documents |
documentName required | string Document Name |
key required | string System-assigned unique key for the document. |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Submit a purchasing document
key required | string System-assigned key for the purchasing document. Example: "66" |
OK
Bad Request
{- "key": "66"
}
{- "ia::result": {
- "key": "66",
- "id": "Purchase Invoice-PO-O122",
- "href": "/objects/purchasing/document::Purchase%20Invoice/66",
- "state": "submitted"
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}
Approve a purchasing document
key required | string System-assigned key for the purchasing document. Example: "66" |
notes | string Notes or comments about this purchasing document. Example: "Approved, ready for use" |
OK
Bad Request
{- "key": "66",
- "notes": "Approved, ready for use"
}
{- "ia::result": {
- "key": "66",
- "id": "Purchase Invoice-PO-O122",
- "href": "/objects/purchasing/document::Purchase%20Invoice/66",
- "state": "approved"
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}
Decline a purchasing document
key required | string System-assigned key for the purchasing document. Example: "132" |
notes | string Notes or comments about this purchasing document. Example: "Declined, missing information" |
OK
Bad Request
{- "key": "132",
- "notes": "Declined, missing information"
}
{- "ia::result": {
- "key": "66",
- "id": "Purchase Invoice-PO-O122",
- "href": "/objects/purchasing/document::Purchase%20Invoice/66",
- "state": "declined"
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "purchasing/document" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "purchasing/document",
- "filters": [
- {
- "$eq": {
- "state": "converted"
}
}
], - "fields": [
- "key",
- "id",
- "isBackordered",
- "txnDefinition.id"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "797",
- "id": "Purchase Order with Back Order-PO-00008-B",
- "isBackordered": true,
- "txnDefinition.id": "Purchase Order with Back Order"
}, - {
- "key": "1293",
- "id": "Purchase Order-PO-00063",
- "isBackordered": false,
- "txnDefinition.id": "Purchase Order"
}, - {
- "key": "1395",
- "id": "Purchase Order-PO-00068",
- "isBackordered": false,
- "txnDefinition.id": "Purchase Order"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}