v1

latestOpenAPI 3.0.12026-07-267912192.3 MB
Fuel Batch Entries

Executes the Add action for the Fuel Batch Entries data object.

Add record in vista em fuel batches

post/direct/subscribers/{subscriber_code}/vista/em/2/data/fuel_batch_entries/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

Cointeger required

Key to em/fuel_batches(Co, Mth, BatchId).

Mthstring date required

Key to em/fuel_batches(Co, Mth, BatchId). Format YYYY-MM-01.

BatchIdinteger required

Key to em/fule_batches(Co, Mth, BatchId).

Equipmentstring required

Required. Key to em/equipment(EMGroup, Equipment). EMGroup is defaulted based on the Co value. Each equipment can only be included once in all open batches.

CostCodestring

Key to em/cost_codes(EMGroup, CostCode). EMGroup is defaulted based on the Co value. Optional. If omitted, will be defaulted based on Vista defaulting logic.

EMCostTypeinteger

Key to em/cost_types(EMGroup, EMCostType). EMGroup is defaulted based on the Co value. Optional. If omitted, will be defaulted based on Vista defaulting logic.

ActualDatestring date required

Required. Format YYYY-MM-DD.

INCointeger nullable

Key to in/locations(INCo, INLocation). Optional. If omitted, will be defaulted based on Vista defaulting logic.

INLocationstring nullable

Key to in/locations(INCo, INLocation).

Materialstring

Key to hq/materials(MatlGroup, Material). MatlGroup is defaulted based on the CO value. Optional. If omitted, will be defaulted based on Vista defaulting logic.

UMstring nullable

Optional. If omitted, will be defaulted based on Vista defaulting logic.

Unitsstring nullable

Optional. If omitted, will be defaulted based on Vista defaulting logic. Only settable when UM is not LS. Input ignored if UM is provided as LS.

UnitPricestring

Optional. If omitted, will be defaulted based on Vista defaulting logic. Only settable when UM is not LS. Input ignored if UM is provided as LS.

TaxCodestring nullable

Optional. If omitted, will be defaulted based on Vista defaulting logic.

GLTransAcctstring

Key to gl/chart_of_accounts(GLCo, GLTransAcct). GLCo is defaulted based on the Co value. Optional. If omitted, will be defaulted based on Vista defaulting logic.

GLOffsetAcctstring nullable

Key to gl/chart_of_accounts(OffsetGLCo, GLOffsetAcct). OffsetGLCo is defaulted based on the Co value. Optional. If omitted, will be defaulted based on Vista defaulting logic.

CurrentOdometerstring

Optional. If omitted, will be defaulted based on Vista defaulting logic.

CurrentHourMeterstring

Optional. If omitted, will be defaulted based on Vista defaulting logic.

__custom_fieldsobject

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

Response

Success

idstring
operationstring
statusstring