v1

latestOpenAPI 3.0.12026-07-267912192.3 MB
Batch Entries

Executes the Add Contract Invoice V2 action for the Batch Entries data object.

Adds a Contract based Invoice V2

post/direct/subscribers/{subscriber_code}/vista/ar/2/data/batch_entries/actions/add_contract_inv_v2

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

Cointeger required

Key to ar/batches(Co, Mth, BatchId).

Mthstring date required

Key to ar/batches(Co, Mth, BatchId). Format: YYYY-MM-01.

BatchIdinteger required

Key to ar/batches(Co, Mth, BatchId).

CustGroupinteger required

Key to ar/customers(CustGroup, Customer).

Customerinteger required

Key to ar/customers(CustGroup, Customer).

RecTypeinteger

Receivable Type. Optional. If omitted, Vista defaulting logic will be used..

JCCointeger required

Key to jc/contracts(JCCo, Contract).

Contractstring required

Key to jc/contracts(JCCo, Contract).

CustRefstring nullable

Customer Reference.

Invoicestring

Invoice Number. If omitted, Vista defaulting logic will be used.

Descriptionstring nullable
TransDatestring date required

Invoice Date. Format: YYYY-MM-DD.

DueDatestring date

Due Date. Format: YYYY-MM-DD.

DiscDatestring date

Discount Date. Format: YYYY-MM-DD.

ReasonCodestring nullable

Key to hq/reason_codes(ReasonCode)

Notesstring nullable

Optional.

__custom_fieldsobject

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

Response

Success

idstring
operationstring
statusstring