A purchasing recurring document contains the transaction header, line item details, and recurring schedule information that the system uses to create a recurring transaction.
Returns a collection with a key, ID, and link for each purchasing recurring document.
OK
Bad Request
{- "ia::result": [
- {
- "key": "2",
- "id": "2",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/2"
}, - {
- "key": "6",
- "id": "6",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/6"
}, - {
- "key": "14",
- "id": "14",
- "href": "/objects/purchasing/recurring-document::Purchase%20Order/14"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified purchasing recurring document.
key required | string System-assigned unique key for the purchasing recurring document. Example: 99 |
OK
Bad Request
{- "ia::result": {
- "id": "14",
- "key": "14",
- "txnDefinition": {
- "key": "86",
- "id": "Purchase Invoice",
- "href": "/objects/purchasing/txn-definition::Purchase%20Invoice/86"
}, - "status": "active",
- "contacts": {
- "primary": {
- "key": "108",
- "id": "CAR(CCAR)"
}, - "shipTo": {
- "key": "108",
- "id": "CAR(CCAR)"
}, - "billTo": {
- "key": "108",
- "id": "CAR(CCAR)"
}
}, - "referenceNumber": "1012",
- "paymentTerm": {
- "key": "5",
- "id": "N15",
- "href": "/objects/accounts-payable/term/5"
}, - "shippingMethod": {
- "id": "Air",
- "key": "2",
- "href": "/objects/accounts-receivable/shipping-method/2"
}, - "memo": "End of season clearance sale",
- "subtotal": "11001.32000000000000",
- "total": "11611.21000000000000",
- "recurringSchedule": {
- "id": "15",
- "key": "15",
- "href": "/objects/core/schedule/15"
}, - "documentType": "Purchase Invoice",
- "schedule": {
- "startDate": "2024-07-01",
- "nextExecutionDate": "2024-07-01",
- "recurringDueDate": "2024-07-16",
- "frequency": "weeks",
- "executionCount": "0",
- "repeatCount": "2",
- "repeatBy": "weeks",
- "repeatInterval": "1"
}, - "vendor": {
- "key": "22",
- "id": "CAR",
- "name": "Quick and Easy Payroll",
- "href": "/objects/accounts-payable/vendor/22"
}, - "baseCurrency": "USD",
- "txnCurrency": "USD",
- "exchangeRate": {
- "date": "2024-08-08",
- "rate": "1.0000000000"
}, - "subtotalInTxnCurrency": "11001.32000000000000",
- "totalInTxnCurrency": "11611.21000000000000",
- "state": "active",
- "audit": {
- "createdDateTime": "2024-08-08T09:19:34Z",
- "modifiedDateTime": "2024-08-08T10:46:15Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "lines": [
- {
- "id": "814",
- "key": "814",
- "recurringDocumentHeader": {
- "id": "14",
- "key": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "lineNumber": 1,
- "item": {
- "key": "15",
- "id": "Car_Battery",
- "href": "/objects/inventory-control/item/15"
}, - "dimensions": {
- "item": {
- "id": "Car_Battery",
- "key": "89",
- "href": "/objects/inventory-control/item/89"
}, - "warehouse": {
- "id": "WareHouse10004",
- "key": "4",
- "href": "/objects/inventory-control/warehouse/4"
}, - "location": {
- "id": "1",
- "key": "6",
- "href": "/objects/company-config/location/6"
}
}, - "unit": "10 Pack",
- "status": "inactive",
- "recurringStatus": "active",
- "unitQuantity": "9.0000000000",
- "unitPrice": "1000.1200000000",
- "retailPrice": "0.0000000000",
- "currency": "USD",
- "priceInTxnCurrency": "1000.1200000000",
- "conversionType": "quantity",
- "enableTax": false,
- "href": "/objects/purchasing/recurring-document-line/814"
}, - {
- "id": "815",
- "key": "815",
- "recurringDocumentHeader": {
- "id": "14",
- "key": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "lineNumber": 2,
- "item": {
- "key": "15",
- "id": "Car_Battery",
- "href": "/objects/inventory-control/item/15"
}, - "dimensions": {
- "item": {
- "id": "Car_Battery--Battery for Car"
}, - "warehouse": {
- "id": "WareHouse10004",
- "key": "4",
- "href": "/objects/inventory-control/warehouse/4"
}, - "location": {
- "id": "1",
- "key": "6",
- "href": "/objects/company-config/location/6"
}
}, - "unit": "10 Pack",
- "status": "active",
- "recurringStatus": "active",
- "unitQuantity": "1.0000000000",
- "unitPrice": "1000.1200000000",
- "retailPrice": "0.0000000000",
- "currency": "USD",
- "priceInTxnCurrency": "1000.1200000000",
- "conversionType": "quantity",
- "enableTax": false,
- "href": "/objects/purchasing/recurring-document-line/815"
}, - {
- "id": "816",
- "key": "816",
- "recurringDocumentHeader": {
- "id": "14",
- "key": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "lineNumber": 3,
- "item": {
- "key": "15",
- "id": "Car_Battery",
- "href": "/objects/inventory-control/item/15"
}, - "dimensions": {
- "item": {
- "id": "Car_Battery",
- "key": "89",
- "href": "/objects/inventory-control/item/89"
}, - "warehouse": {
- "id": "WareHouse10004",
- "key": "4",
- "href": "/objects/inventory-control/warehouse/4"
}, - "location": {
- "id": "1",
- "key": "6",
- "href": "/objects/company-config/location/6"
}, - "department": {
- "id": "1",
- "key": "2",
- "href": "/objects/company-config/department/2"
}
}, - "unit": "10 Pack",
- "status": "active",
- "recurringStatus": "active",
- "unitQuantity": "1.0000000000",
- "unitPrice": "1000.1200000000",
- "retailPrice": "0.0000000000",
- "currency": "USD",
- "priceInTxnCurrency": "1000.1200000000",
- "conversionType": "quantity",
- "href": "/objects/purchasing/recurring-document-line/816"
}
], - "subtotals": [
- {
- "id": "1627",
- "key": "1627",
- "recurringDocumentHeader": {
- "key": "14",
- "id": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "description": "Purchase Discount.",
- "absoluteValue": "275.03",
- "percentValue": "2.50",
- "total": "-275.03000000000000",
- "dimensions": {
- "department": {
- "id": "1",
- "key": "2",
- "href": "/objects/company-config/department/2"
}, - "location": {
- "key": "1--Chicago",
- "id": "1",
- "href": "/objects/company-config/location/1--Chicago"
}, - "vendor": {
- "key": "22",
- "id": "CAR",
- "href": "/objects/accounts-payable/vendor/22"
}
}, - "txnAbsoluteValue": "275.03",
- "txnTotal": "-275.03000000000000",
- "href": "/objects/purchasing/recurring-document-subtotal/1627"
}, - {
- "id": "1628",
- "key": "1628",
- "recurringDocumentHeader": {
- "key": "14",
- "id": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "description": "Purchase Tax",
- "absoluteValue": "884.92",
- "percentValue": "8.25",
- "total": "884.92000000000000",
- "dimensions": {
- "department": {
- "id": "1",
- "key": "2",
- "href": "/objects/company-config/department/2"
}, - "location": {
- "key": "1--Chicago",
- "id": "1",
- "href": "/objects/company-config/location/1--Chicago"
}, - "vendor": {
- "key": "22",
- "id": "CAR",
- "href": "/objects/accounts-payable/vendor/22"
}
}, - "txnAbsoluteValue": "884.92",
- "txnTotal": "884.92000000000000",
- "href": "/objects/purchasing/recurring-document-subtotal/1628"
}
], - "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "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. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
documentName required | string Document Name |
OK
Bad Request
{- "ia::result": [
- {
- "key": "171",
- "id": "171",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/171"
}, - {
- "key": "172",
- "id": "172",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/172"
}, - {
- "key": "155",
- "id": "155",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/155"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100
}
}
Creates a new purchasing recurring document.
documentName required | string Document Name |
state | string Default: "active" State of the Purchasing recurring document. Example: "active" | ||||||||||||||||||||||||||||||||
object Contacts associated with the Purchasing recurring document. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Shipping method for the document. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
referenceNumber | string Reference number for the Purchasing recurring document. Example: "PURCHASE-100" | ||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Accounts Payable (AP) term, which determines the expiration date for quotes and the due date for invoices. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
notes | string Notes about the Purchasing document. Example: "Fast order" | ||||||||||||||||||||||||||||||||
memo | string Text printed on the Purchasing document. Example: "Lowry solutions" | ||||||||||||||||||||||||||||||||
vendorDocumentNumber | string Vendor document number. Example: "A2330-12" | ||||||||||||||||||||||||||||||||
object Vendor associated with the purchasing recurring document. Example: "IBN" | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object User can define the scheduling details for the Purchasing recurring document, including start date, frequency, next execution date, and end conditions. Based on this the document will be generated on the execution date. Example: "{ \"startDate\": \"2024-07-01\", \"frequency\": \"weeks\", \"repeatCount\": \"2\", \"repeatBy\": \"weeks\", \"repeatInterval\": \"1\" }" | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Transaction definition that is associated with this recurring transaction. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
Array of objects Lines of the Purchasing recurring document. | |||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
Array of objects Lines of the Purchasing recurring document subtotal. | |||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
Created
Bad Request
{- "referenceNumber": "RMF-001",
- "memo": "Discounted order",
- "txnCurrency": "USD",
- "baseCurrency": "USD",
- "shippingMethod": {
- "id": "Air"
}, - "paymentTerm": {
- "id": "N15"
}, - "vendor": {
- "id": "22"
}, - "schedule": {
- "startDate": "2024-07-01",
- "nextExecutionDate": "2024-07-01",
- "recurringDueDate": "2024-07-16",
- "frequency": "weeks",
- "repeatCount": "2",
- "repeatBy": "weeks",
- "repeatInterval": "1"
}, - "lines": [
- {
- "unit": "10 Pack",
- "unitQuantity": "1",
- "unitPrice": "1000.12",
- "dimensions": {
- "item": {
- "id": "Car_Battery"
}, - "warehouse": {
- "id": "WareHouse10004"
}, - "location": {
- "id": "1"
}
}
}
]
}
{- "ia::result": {
- "key": "13977",
- "id": "13977",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/13977"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified purchasing recurring document.
documentName required | string Document Name |
key required | string System-assigned key for the purchasing recurring document. Example: 99 |
OK
Bad Request
{- "ia::result": {
- "id": "14",
- "key": "14",
- "txnDefinition": {
- "key": "86",
- "id": "Purchase Invoice",
- "href": "/objects/purchasing/txn-definition::Purchase%20Invoice/86"
}, - "status": "active",
- "contacts": {
- "primary": {
- "key": "108",
- "id": "CAR(CCAR)"
}, - "shipTo": {
- "key": "108",
- "id": "CAR(CCAR)"
}, - "billTo": {
- "key": "108",
- "id": "CAR(CCAR)"
}
}, - "referenceNumber": "1012",
- "paymentTerm": {
- "key": "5",
- "id": "N15",
- "href": "/objects/accounts-payable/term/5"
}, - "shippingMethod": {
- "id": "Air",
- "key": "2",
- "href": "/objects/accounts-receivable/shipping-method/2"
}, - "memo": "End of season clearance sale",
- "subtotal": "11001.32000000000000",
- "total": "11611.21000000000000",
- "recurringSchedule": {
- "id": "15",
- "key": "15",
- "href": "/objects/core/schedule/15"
}, - "documentType": "Purchase Invoice",
- "schedule": {
- "startDate": "2024-07-01",
- "nextExecutionDate": "2024-07-01",
- "recurringDueDate": "2024-07-16",
- "frequency": "weeks",
- "executionCount": "0",
- "repeatCount": "2",
- "repeatBy": "weeks",
- "repeatInterval": "1"
}, - "vendor": {
- "key": "22",
- "id": "CAR",
- "name": "Quick and Easy Payroll",
- "href": "/objects/accounts-payable/vendor/22"
}, - "baseCurrency": "USD",
- "txnCurrency": "USD",
- "exchangeRate": {
- "date": "2024-08-08",
- "rate": "1.0000000000"
}, - "subtotalInTxnCurrency": "11001.32000000000000",
- "totalInTxnCurrency": "11611.21000000000000",
- "state": "active",
- "audit": {
- "createdDateTime": "2024-08-08T09:19:34Z",
- "modifiedDateTime": "2024-08-08T10:46:15Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "lines": [
- {
- "id": "814",
- "key": "814",
- "recurringDocumentHeader": {
- "id": "14",
- "key": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "lineNumber": 1,
- "item": {
- "key": "15",
- "id": "Car_Battery",
- "href": "/objects/inventory-control/item/15"
}, - "dimensions": {
- "item": {
- "id": "Car_Battery"
}, - "warehouse": {
- "id": "WareHouse10004",
- "key": "4",
- "href": "/objects/inventory-control/warehouse/4"
}, - "location": {
- "id": "1",
- "key": "6",
- "href": "/objects/company-config/location/6"
}
}, - "unit": "10 Pack",
- "status": "inactive",
- "recurringStatus": "active",
- "unitQuantity": "9.0000000000",
- "unitPrice": "1000.1200000000",
- "retailPrice": "0.0000000000",
- "currency": "USD",
- "priceInTxnCurrency": "1000.1200000000",
- "conversionType": "quantity",
- "enableTax": false,
- "href": "/objects/purchasing/recurring-document-line/814"
}, - {
- "id": "815",
- "key": "815",
- "recurringDocumentHeader": {
- "id": "14",
- "key": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "lineNumber": 2,
- "item": {
- "key": "15",
- "id": "Car_Battery",
- "href": "/objects/inventory-control/item/15"
}, - "dimensions": {
- "item": {
- "id": "Car_Battery--Battery for Car"
}, - "warehouse": {
- "id": "WareHouse10004",
- "key": "4",
- "href": "/objects/inventory-control/warehouse/4"
}, - "location": {
- "id": "1",
- "key": "6",
- "href": "/objects/company-config/location/6"
}
}, - "unit": "10 Pack",
- "status": "active",
- "recurringStatus": "active",
- "unitQuantity": "1.0000000000",
- "unitPrice": "1000.1200000000",
- "retailPrice": "0.0000000000",
- "currency": "USD",
- "priceInTxnCurrency": "1000.1200000000",
- "conversionType": "quantity",
- "enableTax": false,
- "href": "/objects/purchasing/recurring-document-line/815"
}, - {
- "id": "816",
- "key": "816",
- "recurringDocumentHeader": {
- "id": "14",
- "key": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "lineNumber": 3,
- "item": {
- "key": "15",
- "id": "Car_Battery",
- "href": "/objects/inventory-control/item/15"
}, - "dimensions": {
- "item": {
- "id": "Car_Battery"
}, - "warehouse": {
- "id": "WareHouse10004",
- "key": "4",
- "href": "/objects/inventory-control/warehouse/4"
}, - "location": {
- "id": "1",
- "key": "6",
- "href": "/objects/company-config/location/6"
}, - "department": {
- "id": "1",
- "key": "2",
- "href": "/objects/company-config/department/2"
}
}, - "unit": "10 Pack",
- "status": "active",
- "recurringStatus": "active",
- "unitQuantity": "1.0000000000",
- "unitPrice": "1000.1200000000",
- "retailPrice": "0.0000000000",
- "currency": "USD",
- "priceInTxnCurrency": "1000.1200000000",
- "conversionType": "quantity",
- "href": "/objects/purchasing/recurring-document-line/816"
}
], - "subtotals": [
- {
- "id": "1627",
- "key": "1627",
- "recurringDocumentHeader": {
- "key": "14",
- "id": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "description": "Purchase Discount.",
- "absoluteValue": "275.03",
- "percentValue": "2.50",
- "total": "-275.03000000000000",
- "dimensions": {
- "department": {
- "id": "1",
- "key": "2",
- "href": "/objects/company-config/department/2"
}, - "location": {
- "key": "1--Chicago",
- "id": "1",
- "href": "/objects/company-config/location/1--Chicago"
}, - "vendor": {
- "key": "22",
- "id": "CAR",
- "href": "/objects/accounts-payable/vendor/22"
}
}, - "txnAbsoluteValue": "275.03",
- "txnTotal": "-275.03000000000000",
- "href": "/objects/purchasing/recurring-document-subtotal/1627"
}, - {
- "id": "1628",
- "key": "1628",
- "recurringDocumentHeader": {
- "key": "14",
- "id": "14",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "description": "Purchase Tax",
- "absoluteValue": "884.92",
- "percentValue": "8.25",
- "total": "884.92000000000000",
- "dimensions": {
- "department": {
- "id": "1",
- "key": "2",
- "href": "/objects/company-config/department/2"
}, - "location": {
- "key": "1--Chicago",
- "id": "1",
- "href": "/objects/company-config/location/1--Chicago"
}, - "vendor": {
- "key": "22",
- "id": "CAR",
- "href": "/objects/accounts-payable/vendor/22"
}
}, - "txnAbsoluteValue": "884.92",
- "txnTotal": "884.92000000000000",
- "href": "/objects/purchasing/recurring-document-subtotal/1628"
}
], - "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/14"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing recurring document by setting field values. Any fields not provided remain unchanged.
documentName required | string Document Name |
key required | string System-assigned key for the purchasing recurring document. Example: 99 |
state | string Default: "active" State of the Purchasing recurring document. Example: "active" | ||||||||||||||||||||||||||||||||
object Contacts associated with the Purchasing recurring document. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Shipping method for the document. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
referenceNumber | string Reference number for the Purchasing recurring document. Example: "PURCHASE-100" | ||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Accounts Payable (AP) term, which determines the expiration date for quotes and the due date for invoices. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
notes | string Notes about the Purchasing document. Example: "Fast order" | ||||||||||||||||||||||||||||||||
memo | string Text printed on the Purchasing document. Example: "Lowry solutions" | ||||||||||||||||||||||||||||||||
vendorDocumentNumber | string Vendor document number. Example: "A2330-12" | ||||||||||||||||||||||||||||||||
object Vendor associated with the purchasing recurring document. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object User can define the scheduling details for the Purchasing recurring document, including start date, frequency, next execution date, and end conditions. Based on this the document will be generated on the execution date. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Transaction definition that is associated with this recurring transaction. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
Array of objects Lines of the Purchasing recurring document. | |||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
Array of objects Lines of the Purchasing recurring document subtotal. | |||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
OK
Bad Request
{- "value": {
- "referenceNumber": "1012",
- "lines": [
- {
- "dimensions": {
- "item": {
- "key": "15"
}, - "warehouse": {
- "key": "4"
}, - "location": {
- "key": "6"
}
}, - "item": {
- "key": "15"
}, - "unit": "10 Pack"
}, - {
- "key": "59",
- "ia::operation": "delete"
}
]
}
}
{- "ia::result": {
- "key": "52",
- "id": "52",
- "documentType": "Purchase Invoice",
- "href": "/objects/purchasing/recurring-document::Purchase%20Invoice/52"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a recurring document.
documentName required | string Document Name |
key required | string System-assigned key for the purchasing recurring document. Example: 99 |
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
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "purchasing/recurring-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 has (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 result set, 4000 maximum. Example: 100 |
OK
Bad Request
{- "object": "purchasing/recurring-document",
- "filters": [
- {
- "$eq": {
- "documentType": "Purchase Requisition"
}
}
], - "fields": [
- "id",
- "href",
- "status",
- "vendor.id",
- "totalInTxnCurrency"
]
}
{- "ia::result": [
- {
- "id": "1",
- "href": "/objects/purchasing/recurring-document::Purchase%20Requisition/1",
- "status": "active",
- "vendor.id": "PVE",
- "totalInTxnCurrency": "8800.00000000000000"
}, - {
- "id": "3",
- "href": "/objects/purchasing/recurring-document::Purchase%20Requisition/3",
- "status": "active",
- "vendor.id": "GK483",
- "totalInTxnCurrency": "7200.00000000000000"
}, - {
- "id": "4",
- "href": "/objects/purchasing/recurring-document::Purchase%20Requisition/4",
- "status": "active",
- "vendor.id": "Rosen",
- "totalInTxnCurrency": "7200.00000000000000"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}