Executes the Add Change action for the Invoice Batch Entries data object.

Adds an existing invoice transaction to an invoice batch, in order to update it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The code of the subscriber that you are making this request for.

Body Params
integer
required

Key to ap/inv_batches(Co, Mth, BatchId).

__invoices_key
required

Provide the key of the ap/2/invoices object to edit in this batch entry.

integer

Key to ap/vendors(VendorGroup, Vendor). Note: the VendorGroup value is based on the Co value.

string
length ≤ 30

Invoice Number.

string | null
string

Format: YYYY-MM-DD.

string | null

Format: YYYY-MM-DD.

string

Format: YYYY-MM-DD.

string
^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$
PaymentOverride
object
AddressOverride
string | null
__custom_fields
object

Add properties to this object with the property name matching the user defined field name in Vista for each user defined field you need to set.

boolean | null

Disable Vista Validations

LineItems
array
length ≥ 1

Use this array to Add, Replace, Change, or Remove APLines. Specify the TransType and LineType to establish the rules for the rest of the line input. You can not use the TransType = Change to change the LineType. If you need to modify the line type and keep the same APLine value, then you must use the TransType = Replace. If you do not need to keep the same APLine, you can do a TransType = Remove, and a second __TransType = Add.

LineItems

Use this object to add or replace a line with a new 1-Job type line.

string
enum
required

Options: Add-Add new line, Replace-Replace an existing line.

Allowed:
integer

Optional. If $.__TransType = A and omitted, it will be defaulted to the next APLine number. If $.__TransType = A and provided, the APLine number must not already be in use on this invoice. If $.__TransType = R, the APLine number must already exist.

integer
enum
required

1-Job

Allowed:
string | null

Optional. If omitted, null will be defaulted.

integer
required

Key to jc/jobs(JCCo, Job). Optional. If not provided, it will be defaulted based on ap/company_parameters. Omitting this value will force a Vista user to supply this value before posting.

string
required
length ≤ 10

Key to jc/jobs(JCCo, Job). Optional. If not provided, it will be defaulted to empty string. Omitting this value will force a Vista user to supply this value before posting.

string
required
length ≤ 20

Key to jc/job_phases(JCCo, Job, PhaseGroup, Phase) The PhaseGroup will be selected based on the JCCo value. Optional. If not provided, it will be defaulted to null. Omitting this value will force a Vista user to supply this value before posting.

integer | null

Key to CostTypes array in jc/job_phases(JCCo, Job, PhaseGroup, Phase) Optional. If not provided, it will be defaulted to null.

string
length ≤ 20

Key to gl/chart_of_accounts(GLCo, GLAcct). The GLCo will be selected based on HQ company_parameters for the JCCo company. Optional, If omitted this value will be defaulted based Vista defaulting behavior.

string | null

Key to hq/materials(MatlGroup, Material). Optional for this line type. The MatlGroup will be selected based on the HQ company_parameters for the JCCo company.

integer | null

Optional. If omitted Vista defaulted based on Vista defaulting behavior. In some configurations, overrides are not allowed. Providing this property when overrides are not allowed will result in an error.

integer

Optional. If omitted, it will be defaulted from the ap/company_parameters configuration. In some configurations, overrides are not allowed. Providing this property when overrides are not allowed will result in an error. In all cases if PayCategory is provided or defaulted this value must be in the PayCategory or in no PayCategory

Amount
object
required
string
^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$
string
^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$

Optional. If omitted, it will default based on the PayTerms of the Vendor.

Tax
object

Optional. If omitted each property will be be defaulted based on Vista defaulting behavior.

integer | null

Key to ap/vendors(VendorGroup, Supplier) for supplier for this line. VendorGroup is defaulted based on Co.

string | null
__custom_fields
object

Add properties to this object with the property name matching the user defined field name in Vista for each user defined field you need to set.

Headers
string
required

Used to authorize access to the Direct API.

Responses

401

You have not provided a proper X-Application-Key in the header of this request.

403

The X-Application-Key provided is valid but the key does not have access to this resource.

404

The object with the given ID was not found OR a subscriber with the given URL was not found.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json