Documents

An order entry document contains information about sales transactions.

Please be aware that this object is currently "Uncertified" in our open beta, signifying that it has not undergone the complete review process and the design may change during ongoing refinement. Users are advised to exercise discretion in using this object and are encouraged to provide feedback.

List documents

get/objects/order-entry/document

Returns a collection with a key, ID, and link for each order entry 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.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "453",
      • "id": "Sales Invoice-SUBINV#0182#doc",
      • "href": "/objects/order-entry/document::Sales%20Invoice/453"
      },
    • {
      • "key": "442",
      • "id": "Sales Order-SO0023",
      • "href": "/objects/order-entry/document::Sales%20Order/442"
      },
    • {
      • "key": "446",
      • "id": "Sales Order-SO0024",
      • "href": "/objects/order-entry/document::Sales%20Order/446"
      }
    ],
  • "ia::meta": {
    • "totalCount": 3,
    • "start": 1,
    • "pageSize": 100
    }
}

Get a document

get/objects/order-entry/document/{key}

Returns detailed information for a specified order entry document.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the order entry document.

Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "453",
    • "documentNumber": "SUBINV#0182#doc",
    • "id": "Sales Invoice-SUBINV#0182#doc",
    • "sourceDocument": {
      • "id": "Sales Order-SO0026",
      • "key": "451",
      • "documentType": "Sales Order",
      • "href": "/objects/order-entry/document::Sales%20Order/451"
      },
    • "state": "pending",
    • "transactionDate": "2023-03-29",
    • "audit": {
      • "createdDateTime": "2023-11-10T18:36:30Z",
      • "createdBy": "1",
      • "modifiedBy": "1",
      • "modifiedDateTime": "2023-11-10T18:36:32Z"
      },
    • "dueDate": "2024-10-28",
    • "documentType": "Sales Invoice",
    • "txnDefinition": {
      • "id": "Sales Invoice",
      • "key": "188",
      • "href": "/objects/order-entry-txn-definition::Sales%20Invoice/188"
      },
    • "contacts": {
      • "primary": {
        },
      • "shipTo": {
        },
      • "billTo": {
        }
      },
    • "isPrinted": false,
    • "isBackordered": false,
    • "subTotal": "750.44",
    • "total": "742.54",
    • "txnCurrency": "USD",
    • "exchangeRate": {
      • "date": "2023-03-29",
      • "rate": "1"
      },
    • "subtotalInTxnCurrency": "750.55",
    • "totalInTxnCurrency": "742.5",
    • "baseCurrency": "USD",
    • "isSystemGeneratedDocument": false,
    • "postingDate": "2023-03-29",
    • "paymentStatus": "open",
    • "customer": {
      • "key": "1",
      • "id": "1",
      • "href": "/objects/accounts-receivable/customer/1"
      },
    • "lines": [
      • {
        }
      ],
    • "history": [
      • {
        },
      • {
        }
      ],
    • "subtotals": [
      • {
        },
      • {
        },
      • {
        }
      ],
    • "href": "/objects/order-entry/document::Sales%20Invoice/453"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

List named documents

get/objects/order-entry/document::{documentName}

Returns a collection with a key, ID, and link for each order entry 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.

SecurityOAuth2
Request
path Parameters
documentName
required
string

Document name

Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "171",
      • "id": "Sales Invoice-SUBINV#0147#doc",
      • "href": "/objects/order-entry/document::Sales%20Invoice/171"
      },
    • {
      • "key": "172",
      • "id": "Sales Invoice-SUBINV#0148#doc",
      • "href": "/objects/order-entry/document::Sales%20Invoice/172"
      },
    • {
      • "key": "155",
      • "id": "Sales Invoice-SUBINV#0144#doc",
      • "href": "/objects/order-entry/document::Sales%20Invoice/155"
      }
    ],
  • "ia::meta": {
    • "totalCount": 3,
    • "start": 1,
    • "pageSize": 100
    }
}

Create a document

post/objects/order-entry/document::{documentName}

Creates a new order entry document.

SecurityOAuth2
Request
path Parameters
documentName
required
string

Document name

Request Body schema: application/json
transactionDate
required
string <date>

Date on the Order Entry document.

Example: "2023-04-04"
documentNumber
string

Document number for the Order Entry document. If the transaction definition does not have a numbering sequence configured, provide a number to identify the transaction.

Example: "SI-O122"
state
string
Default: "draft"

State of the Order Entry document.

Enum: "approved" "closed" "converted" "convertedByLine" "declined" "draft" "exception" "inProgress" "partiallyApproved" "partiallyConverted" "partiallyConvertedByLine" "pending" "submitted"
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.

date
string <date>

Exchange rate date for this transaction. Can be the current date, the date the transaction was issued, or the date the transaction will be paid.

Example: "2021-01-23"
rate
string <decimal-precision-10>

Exchange rate used to calculate the base amount from the transaction amount.

Example: "1.0789"
typeId
string

Exchange rate type used to calculate the base amount from the transaction amount.

Example: "1"
typeName
string

The name of exchange rate type.

Example: "Intacct Daily Rate"
dueDate
string <date>

Due date for the Order Entry document.

Example: "2023-04-04"
postingDate
string <date>

The date on which Order Entry document posts to the General Ledger.

Example: "2023-04-04"
referenceNumber
string

Reference number for the Order Entry document.

Example: "SALES-100"
notes
string

Notes about the Order Entry document.

Example: "Fast order"
memo
string

Text printed on the Order Entry document.

Example: "Lowry solutions"
contractID
string

Sales contract ID associated with the transaction.

Example: "CN100123"
contractDescription
string

Sales contract description.

Example: "Sales & Service"
invoiceDate
string <date>

Original invoice date.

Example: "2023-04-04"
customerPONumber
string

Customer PO number associated with the transaction.

Example: "ABOTT-1001"
trackingNumber
string

User-provided tracking reference number.

Example: "TK-1002"
shipByDate
string <date>

The ship-by date for the order.

Example: "2023-04-04"
shippedDate
string <date>

The date that the order was shipped.

Example: "2023-04-04"
serviceDeliveryDate
string <date>

The date on which the service is delivered.

Example: "2023-04-04"
cancelAfterDate
string <date>

Indicates the date after which the order can be canceled.

Example: "2023-04-04"
doNotShipBeforeDate
string <date>

Do not ship before this date.

Example: "2023-04-04"
doNotShipAfterDate
string <date>

Do not ship after this date.

Example: "2023-04-04"
requestedShippingDate
string <date>

The date the customer requests the goods to arrive on their premises. The default is the due date.

Example: "2023-04-04"
object

Contacts associated with the Order Entry document.

object

Primary contact

id
string

Identifier for the primary contact.

Example: "contact"
object

Ship-to contact.

id
string

Identifier for the ship-to contact.

Example: "contact"
object

Bill-to contact.

id
string

Identifier for the bill-to contact.

Example: "contact"
object

Shipping method for the order.

key
string

System-assigned key for the shipping method.

Example: "77"
id
string

Identifier for the shipping method.

Example: "Air"
href
string

URL for the shipping method.

Example: "/objects/accounts-receivable/shipping-method/77"
object

Transaction definition that is associated with this transaction.

key
string

System-assigned key for the transaction definition.

Example: "11"
id
string

Name for the Order Entry transaction definition.

Example: "Sales Invoice"
object

Parent/Source document

key
string

System-assigned key for the Order Entry document.

Example: "44"
id
string

The source transaction from which the Order Entry document was created.

Example: "Sales Order-SO0022"
object

Customer associated with the Order Entry document.

Example: "IBN"
id
required
string

Customer ID

Example: "customer"
key
string

System-assigned key for the customer.

Example: "15"
object

Contract associated with the Order Entry document.

key
string

System-assigned key for the contract.

Example: "46"
id
string

ID of the contract.

Example: "CNRT1001"
object

Accounts Receivable (AR) term, which determines the expiration date for quotes and the due date for invoices.

key
string

System-assigned key for the AR term.

Example: "75"
id
string

The name of AR term.

Example: "10 Days"
object

The associated tax solution for the transaction. Tax solutions are available for different countries, for example Australia GST or South Africa VAT.

key
string

System-assigned key for the tax solution.

Example: "44"
id
string

ID for the tax solution.

Example: "Avalara"
taxCalculationMethod
string or null
Default: null

Calculation method used for the tax solution.

Enum: "VAT" "advancedTax" "avaTax" "noTax" null "simpleTax"
Example: "noTax"
Array of objects

Lines of the Order Entry document.

Array
unit
required
string

Unit associated with this document line item.

Example: "Each"
unitQuantity
required
string <decimal-precision-10>

Unit quantity associated with this document line item.

Example: "10.10"
unitPrice
required
string <decimal-precision-10>

Unit price associated with this line item.

Example: "10.50"
object

Item associated with the document line.

object

Alternative name for the Item for a specific customer.

memo
string

Memo about the document line item.

Example: "Payment ACH"
priceCalculationMemo
string

Memo about price calculation used for the document line item.

Example: "Fair value price list"
status
string
Default: "active"

Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced.

Enum: "active" "inactive"
Example: "active"
discountPercent
string <decimal-precision-2>

Discount percentage for the document line item.

Example: "10.50"
multiplier
number

Multiplier

Example: 1
object

Parent/Source document

object

Parent/Source document line that needs to be converted.

isPriceProrated
boolean
Default: true

Indicates whether the price is prorated.

Example: true
discountMemo
string

Discount memo for any discounts taken.

Example: "Festival discount"
isBillable
boolean
Default: true

Indicates whether the line is billable.

Example: true
taxRate
string <decimal-precision-2>

Tax rate for the document line item.

Example: "10.05"
discountPercentage
string <decimal-precision-2>

Discount applied to the line item.

Example: "10.25"
enableTax
boolean
Default: false

Indicates whether the line item is taxable.

Example: false
conversionType
string
Default: "quantity"

Conversion type used for the transaction.

Enum: "price" "quantity"
Example: "quantity"
object
Example: "{ \"item\": { \"id\": \"1\" }, \"warehouse\": { \"id\": \"1\" }, \"location\": { \"id\": \"1\" }}"
object

The template used for renewal schedules.

revenueRecognitionStartDate
string <date>

The date on which the either revenue recognition schedule and/or renewal schedule get started.

Example: "2023-04-04"
revenueRecognitionEndDate
string <date>

The date on which the either revenue recognition schedule and/or renewal schedule ends.

Example: "2023-04-04"
requestedShippingDate
string <date>

The date the customer requests the goods to arrive on their premises. The default is the due date.

Example: "2023-04-04"
shipByDate
string <date>

The date the goods should be shipped so they arrive when the customer needs them.

Example: "2023-04-04"
pickTicketPrintedDate
string <date>

The date on which the pick ticket is printed.

Example: "2023-04-04"
cancelAfterDate
string <date>

Indicates the date after which the order can be canceled.

Example: "2023-04-04"
doNotShipBeforeDate
string <date>

Do not ship before this date.

Example: "2023-04-04"
doNotShipAfterDate
string <date>

Do not ship after this date.

Example: "2023-04-04"
shippedDate
string <date>

The date that the order was shipped.

Example: "2023-04-04"
allowDropship
boolean
Default: false

Indicates whether dropship is allowed for the line.

Example: true
allowBuyToOrder
boolean
Default: false

Indicates whether buy-to-order is allowed for the line.

Example: true
object

Contacts for delivering the buy-to-order.

Array of objects

List of warehouse inventory details including serial number, aisle, bin, and row per item.

object

Header lever details for the document line items.

Array of objects

Lines of the Order Entry document subtotal.

Array
description
string

Description about the subtotal.

Example: "Tax"
percentValue
string <decimal-precision-2>

Percentage value that is calculated on the total of all line items of the document.

Example: "10.50"
txnAbsoluteValue
string <decimal-precision-2>

Non negative transaction amount calculated across all other lines of the document.

Example: "44.78"
object
Array of objects

Lines of the Order Entry document history.

Array
Responses
201

Created

400

Bad Request

Request samples
application/json
{
  • "customer": {
    • "id": "1"
    },
  • "state": "submitted",
  • "transactionDate": "2023-11-01",
  • "dueDate": "2024-12-12",
  • "txnCurrency": "USD",
  • "baseCurrency": "USD",
  • "lines": [
    • {
      • "dimensions": {
        },
      • "unit": "Each",
      • "unitQuantity": "1",
      • "unitPrice": "650"
      }
    ]
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "13977",
    • "id": "Sales Invoice-SUBINV#0193#doc",
    • "documentType": "Sales Invoice",
    • "href": "/objects/order-entry/document::Sales%20Invoice/469"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Get a named document

get/objects/order-entry/document::{documentName}/{key}

Returns detailed information for a specified order entry document.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the order entry document.

documentName
required
string

Document name

Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "453",
    • "documentNumber": "SUBINV#0182#doc",
    • "id": "Sales Invoice-SUBINV#0182#doc",
    • "sourceDocument": {
      • "id": "Sales Order-SO0026",
      • "key": "451",
      • "documentType": "Sales Order",
      • "href": "/objects/order-entry/document::Sales Order/451"
      },
    • "state": "pending",
    • "transactionDate": "2023-03-29",
    • "audit": {
      • "createdDateTime": "2023-11-10T18:36:30Z",
      • "createdBy": "1",
      • "modifiedBy": "1",
      • "modifiedDateTime": "2023-11-10T18:36:32Z"
      },
    • "dueDate": "2024-10-28",
    • "documentType": "Sales Invoice",
    • "txnDefinition": {
      • "id": "Sales Invoice",
      • "key": "188",
      • "href": "/objects/order-entry-txn-definition::Sales%20Invoice/188"
      },
    • "contacts": {
      • "primary": {
        },
      • "shipTo": {
        },
      • "billTo": {
        }
      },
    • "isPrinted": false,
    • "isBackordered": false,
    • "subTotal": "750.66",
    • "total": "742.54",
    • "txnCurrency": "USD",
    • "exchangeRate": {
      • "date": "2023-03-29",
      • "rate": "1"
      },
    • "subtotalInTxnCurrency": "750.55",
    • "totalInTxnCurrency": "742.5",
    • "baseCurrency": "USD",
    • "isSystemGeneratedDocument": false,
    • "postingDate": "2023-03-29",
    • "paymentStatus": "open",
    • "customer": {
      • "key": "1",
      • "id": "1",
      • "href": "/objects/accounts-receivable/customer/1"
      },
    • "lines": [
      • {
        }
      ],
    • "history": [
      • {
        },
      • {
        }
      ],
    • "subtotals": [
      • {
        },
      • {
        },
      • {
        }
      ],
    • "href": "/objects/order-entry/document::Sales%20Invoice/453"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Update a document

patch/objects/order-entry/document::{documentName}/{key}

Updates an existing order entry document by setting field values. Any fields not provided remain unchanged.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the order entry document.

documentName
required
string

Document name

Request Body schema: application/json
documentNumber
string

Document number for the Order Entry document. If the transaction definition does not have a numbering sequence configured, provide a number to identify the transaction.

Example: "SI-O122"
state
string
Default: "draft"

State of the Order Entry document.

Enum: "approved" "closed" "converted" "convertedByLine" "declined" "draft" "exception" "inProgress" "partiallyApproved" "partiallyConverted" "partiallyConvertedByLine" "pending" "submitted"
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.

date
string <date>

Exchange rate date for this transaction. Can be the current date, the date the transaction was issued, or the date the transaction will be paid.

Example: "2021-01-23"
rate
string <decimal-precision-10>

Exchange rate used to calculate the base amount from the transaction amount.

Example: "1.0789"
typeId
string

Exchange rate type used to calculate the base amount from the transaction amount.

Example: "1"
typeName
string

The name of exchange rate type.

Example: "Intacct Daily Rate"
transactionDate
string <date>

Date on the Order Entry document.

Example: "2023-04-04"
dueDate
string <date>

Due date for the Order Entry document.

Example: "2023-04-04"
postingDate
string <date>

The date on which Order Entry document posts to the General Ledger.

Example: "2023-04-04"
referenceNumber
string

Reference number for the Order Entry document.

Example: "SALES-100"
notes
string

Notes about the Order Entry document.

Example: "Fast order"
memo
string

Text printed on the Order Entry document.

Example: "Lowry solutions"
contractID
string

Sales contract ID associated with the transaction.

Example: "CN100123"
contractDescription
string

Sales contract description.

Example: "Sales & Service"
invoiceDate
string <date>

Original invoice date.

Example: "2023-04-04"
customerPONumber
string

Customer PO number associated with the transaction.

Example: "ABOTT-1001"
trackingNumber
string

User-provided tracking reference number.

Example: "TK-1002"
shipByDate
string <date>

The ship-by date for the order.

Example: "2023-04-04"
shippedDate
string <date>

The date that the order was shipped.

Example: "2023-04-04"
serviceDeliveryDate
string <date>

The date on which the service is delivered.

Example: "2023-04-04"
cancelAfterDate
string <date>

Indicates the date after which the order can be canceled.

Example: "2023-04-04"
doNotShipBeforeDate
string <date>

Do not ship before this date.

Example: "2023-04-04"
doNotShipAfterDate
string <date>

Do not ship after this date.

Example: "2023-04-04"
requestedShippingDate
string <date>

The date the customer requests the goods to arrive on their premises. The default is the due date.

Example: "2023-04-04"
object

Contacts associated with the Order Entry document.

object

Primary contact

id
string

Identifier for the primary contact.

Example: "contact"
object

Ship-to contact.

id
string

Identifier for the ship-to contact.

Example: "contact"
object

Bill-to contact.

id
string

Identifier for the bill-to contact.

Example: "contact"
object

Shipping method for the order.

key
string

System-assigned key for the shipping method.

Example: "77"
id
string

Identifier for the shipping method.

Example: "Air"
href
string

URL for the shipping method.

Example: "/objects/accounts-receivable/shipping-method/77"
object

Transaction definition that is associated with this transaction.

key
string

System-assigned key for the transaction definition.

Example: "11"
id
string

Name for the Order Entry transaction definition.

Example: "Sales Invoice"
object

Parent/Source document

key
string

System-assigned key for the Order Entry document.

Example: "44"
id
string

The source transaction from which the Order Entry document was created.

Example: "Sales Order-SO0022"
object

Customer associated with the Order Entry document.

key
string

System-assigned key for the customer.

Example: "15"
id
string

Customer ID

Example: "customer"
object

Contract associated with the Order Entry document.

key
string

System-assigned key for the contract.

Example: "46"
id
string

ID of the contract.

Example: "CNRT1001"
object

Accounts Receivable (AR) term, which determines the expiration date for quotes and the due date for invoices.

key
string

System-assigned key for the AR term.

Example: "75"
id
string

The name of AR term.

Example: "10 Days"
object

The associated tax solution for the transaction. Tax solutions are available for different countries, for example Australia GST or South Africa VAT.

key
string

System-assigned key for the tax solution.

Example: "44"
id
string

ID for the tax solution.

Example: "Avalara"
taxCalculationMethod
string or null
Default: null

Calculation method used for the tax solution.

Enum: "VAT" "advancedTax" "avaTax" "noTax" null "simpleTax"
Example: "noTax"
Array of objects

Lines of the Order Entry document.

Array
object

Item associated with the document line.

object

Alternative name for the Item for a specific customer.

memo
string

Memo about the document line item.

Example: "Payment ACH"
priceCalculationMemo
string

Memo about price calculation used for the document line item.

Example: "Fair value price list"
unit
string

Unit associated with this document line item.

Example: "Each"
unitQuantity
string <decimal-precision-10>

Unit quantity associated with this document line item.

Example: "10.10"
unitPrice
string <decimal-precision-10>

Unit price associated with this line item.

Example: "10.50"
status
string
Default: "active"

Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced.

Enum: "active" "inactive"
Example: "active"
discountPercent
string <decimal-precision-2>

Discount percentage for the document line item.

Example: "10.50"
multiplier
number

Multiplier

Example: 1
object

Parent/Source document

object

Parent/Source document line that needs to be converted.

isPriceProrated
boolean
Default: true

Indicates whether the price is prorated.

Example: true
discountMemo
string

Discount memo for any discounts taken.

Example: "Festival discount"
isBillable
boolean
Default: true

Indicates whether the line is billable.

Example: true
taxRate
string <decimal-precision-2>

Tax rate for the document line item.

Example: "10.05"
discountPercentage
string <decimal-precision-2>

Discount applied to the line item.

Example: "10.25"
enableTax
boolean
Default: false

Indicates whether the line item is taxable.

Example: false
conversionType
string
Default: "quantity"

Conversion type used for the transaction.

Enum: "price" "quantity"
Example: "quantity"
object
object

The template used for renewal schedules.

revenueRecognitionStartDate
string <date>

The date on which the either revenue recognition schedule and/or renewal schedule get started.

Example: "2023-04-04"
revenueRecognitionEndDate
string <date>

The date on which the either revenue recognition schedule and/or renewal schedule ends.

Example: "2023-04-04"
requestedShippingDate
string <date>

The date the customer requests the goods to arrive on their premises. The default is the due date.

Example: "2023-04-04"
shipByDate
string <date>

The date the goods should be shipped so they arrive when the customer needs them.

Example: "2023-04-04"
pickTicketPrintedDate
string <date>

The date on which the pick ticket is printed.

Example: "2023-04-04"
cancelAfterDate
string <date>

Indicates the date after which the order can be canceled.

Example: "2023-04-04"
doNotShipBeforeDate
string <date>

Do not ship before this date.

Example: "2023-04-04"
doNotShipAfterDate
string <date>

Do not ship after this date.

Example: "2023-04-04"
shippedDate
string <date>

The date that the order was shipped.

Example: "2023-04-04"
allowDropship
boolean
Default: false

Indicates whether dropship is allowed for the line.

Example: true
allowBuyToOrder
boolean
Default: false

Indicates whether buy-to-order is allowed for the line.

Example: true
object

Contacts for delivering the buy-to-order.

Array of objects

List of warehouse inventory details including serial number, aisle, bin, and row per item.

object

Header lever details for the document line items.

Array of objects

Lines of the Order Entry document subtotal.

Array
description
string

Description about the subtotal.

Example: "Tax"
percentValue
string <decimal-precision-2>

Percentage value that is calculated on the total of all line items of the document.

Example: "10.50"
txnAbsoluteValue
string <decimal-precision-2>

Non negative transaction amount calculated across all other lines of the document.

Example: "44.78"
object
Array of objects

Lines of the Order Entry document history.

Array
Responses
200

OK

400

Bad Request

Request samples
application/json
{
  • "referenceNumber": "1012",
  • "lines": [
    • {
      • "dimensions": {
        },
      • "item": {
        },
      • "unit": "10 Pack"
      },
    • {
      • "key": "22",
      • "unitQuantity": "9",
      • "price": "750"
      },
    • {
      • "key": "59",
      • "ia::operation": "delete"
      }
    ]
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "52",
    • "id": "Sales Invoice-SUBINV#0182#doc",
    • "documentType": "Sales Invoice",
    • "href": "/objects/order-entry/document::Sales%20Invoice/52"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Delete a document

delete/objects/order-entry/document::{documentName}/{key}

Deletes an order entry document.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the order entry document.

documentName
required
string

Document name

Responses
204

No Content

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::error": {
    • "code": "invalidRequest",
    • "message": "Malformed URL",
    • "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
    • "details": [
      • {
        }
      ]
    }
}

Query documents

post/services/core/query

Queries an object for filtered data.

SecurityOAuth2
Request
Request Body schema: application/json
object
string

Object type to query, in the form <application-name>/<object name>. For custom objects use platform-apps/nsp::<object-name>.

Example: "order-entry/document"
fields
Array of strings

List of fields to include in the response. Can be any combination of these:

  • The name of a field in the object that you are querying, such as id.

  • The name of a field in a related object, using the form relatedObjectName.fieldName, such as vendor.id.

  • The result of an aggregate function run against the values in the returned objects. Use the form function:fieldName, such as min:startDate to return the earliest starting date. Valid function names are:

    • count
    • avg
    • sum
    • min
    • max
  • The result of an aggregate function run against the values in related objects, using the form function:relatedObjectName.fieldName, such as max:vendor.creditLimit. The same functions are supported as for object fields.

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 {"$eq":{"status":"active"}} to select objects in which status is equal to "active".

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 asOfDate in filterParameters, if set:

  • today
  • currentWeek
  • currentMonth
  • currentQuarter
  • currentYear
  • yesterday
  • lastWeek
  • priorMonth
  • priorQuarter
  • priorYear

These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the asOfDate each time to retrieve the same data set for different time periods.

For example, {"eq":{"postingDate":"priorYear"}}.

object

The field name and value to be compared with object values.

Example: {"status":"active"}
filterExpression
string
Default: "and"

Logical operators to apply when there are multiple filter conditions. The conditions in the filters array are implicitly numbered starting at 1. Supports and, or, and grouping with parentheses.

Shortcuts:

  • and by itself means that all conditions must be true.
  • or by itself means that at least one condition must be true.
Example: "(1 and 2) or 3"
object

Pre-defined filter options.

asOfDate
string <date>

The "as of" date to use with any relative date comparisons in filters. For example, if asOfDate is set to "2022-04-01" then priorMonth will be "03".

The current date is used if asOfDate is not set.

Example: "2022-04-01"
includeHierarchyFields
boolean
Default: false

Set to true to include hierarchical structure information with each object in the response.

Example: false
caseSensitiveComparison
boolean
Default: true

Queries are case-sensitive by default. Set to false to ignore case in a query.

Example: true
includePrivate
boolean
Default: false

By default, in a multi-entity company, queries from the top-level entity do not access data in private entities. Set includePrivate to true if you want to query data in private entities.

Example: false
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
property name*
additional property
string
Enum: "asc" "desc"
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
Responses
200

OK

400

Bad Request

Request samples
application/json
{
  • "object": "accounts-payable/vendor",
  • "fields": [
    • "id",
    • "name",
    • "status",
    • "href"
    ],
  • "filters": [
    • {
      • "$eq": {
        }
      },
    • {
      • "$eq": {
        }
      }
    ],
  • "filterExpression": "1 and 2",
  • "orderBy": [
    • {
      • "id": "asc"
      }
    ]
}
Response samples
application/json
{
  • "ia::result": [
    • {
      • "id": "Vend-00002",
      • "name": "Test vendor",
      • "status": "active",
      • "href": "/objects/accounts-payable/vendor/85"
      },
    • {
      • "id": "VEND-00010",
      • "name": "Design Works",
      • "status": "active",
      • "href": "/objects/accounts-payable/vendor/111"
      }
    ],
  • "ia::meta": {
    • "totalCount": 2,
    • "start": 1,
    • "pageSize": 100,
    • "next": null,
    • "previous": null
    }
}