v1

latestOpenAPI 3.0.12026-07-267912192.3 MB
Materials

Executes the Add Additional Unit of Measure action for the Materials data object.

Adds Additional Unit of Measure

post/direct/subscribers/{subscriber_code}/vista/hq/2/data/materials/actions/add_addlum

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

HQCointeger required
Materialstring required

Key (MatlGroup, Material). MatlGroup will be established based on the HQCo provided.

UMstring required

Key to the AdditionalUMs array property

Conversionstring

If omitted, 0 will be defaulted.

Coststring

If omitted, Vista defalting logic will be used.

CostECM'E' | 'C' | 'M'

If omitted, will be defaulted to the standard UM CostECM

Pricestring

If omitted, Vista defalting logic will be used.

PriceECM'E' | 'C' | 'M'

If omitted, will be defaulted to the standard UM PriceECM

PayDiscRatestring

If omitted, 0 will be defaulted. Input is ignored if material is marked as 'No Discount'.

__custom_fieldsobject

Add Properties in this object as needed to set User Defined Properties on this object as defined in Vista.

Response

Success

idstring
operationstring
statusstring