v1

latestOpenAPI 3.0.12026-07-267912192.3 MB
Unapproved Invoices

Executes the Add action for the Unapproved Invoices data object.

Adds an Unapproved Invoice

post/direct/subscribers/{subscriber_code}/vista/ap/2/data/unapproved_invoices/actions/add

Path parameters

subscriber_codestring required

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

Headers

X-Application-Keystring required

Used to authorize access to the Direct API.

Request body

APCointeger required

Company. Key to ap/unapproved_invoices(APCo, UIMth, UISeq). UI Seq is defaulted.

UIMthstring date required

Key to ap/unapproved_invoices(APCo, UIMth, UISeq). UI Seq is defaulted. Format: YYYY-MM-01.

Vendorinteger required

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

APRefstring nullable

Invoice number/reference.

Descriptionstring nullable

Optional. If omitted, null will be defaulted.

InvDatestring date nullable

Optional. If omitted, null will be defaulted. Format: YYYY-MM-DD.

DiscDatestring date nullable

Optional. If omitted, null will be defaulted. Format: YYYY-MM-DD.

DueDatestring date nullable

Optional. If omitted it will be defaulted based on Vista defaulting behavior. Format: YYYY-MM-DD.

InvTotalstring

Optional. If omitted, it will be calculated based on line items.

Notesstring nullable

Optional. If omitted, null will be defaulted.

ReviewerGroupstring nullable

Optional. If omitted, null will be defaulted.

InvStatus0 | 1

Options: 0-Not Ready, 1-Ready. If omitted, 0 will be defaulted.

__custom_fieldsobject

Add a property for each user defined values that should be set on the header form as part of this action.

Response

Success

idstring
operationstring
statusstring