Executes the Add Inventory action for the Work Order Completed data object.

Adds a 4-Inventory type Work Completed record.

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
1 to 255

Key to sm/wo_work_completeds(SMCo, WorkOrder, WorkCompleted). Key to sm/work_order(SMCo, WorkOrder).

integer
required

Key to sm/wo_work_completeds(SMCo, WorkOrder, WorkCompleted). Key to sm/work_order(SMCo, WorkOrder).

integer
required

Key to Scopes array in sm/work_order(SMCo, WorkOrder).

date
^([0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|2[0-9]|1[0-9]|0[1-9])$

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

date
^([0-9]{4})-(1[0-2]|0[1-9])-01$

Optional. If omitted, it will be defaulted based on the $.Date value. Format YYYY-MM-01.

string
enum

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

Allowed:
string
enum

Optional. If omitted, N will be defaulted.

Allowed:
string | null
integer | null
string | null
enum
Allowed:
string | null

Optional. If omitted, null will be defaulted.

string | null

Key value in SM Technicians application. Optional. If omitted, null will be defaulted.

string | null

Optional. If omitted, null will be defaulted.

integer | null

Optional. If omitted, null will be defaulted.

integer | null
string | null
string
required
length ≤ 20

Key to hq/materials(MatlGroup, Material). The MatlGroup will be selected based on the HQ company_parameters for the SMCo company.

string | null
string | null
string | null
string | null
^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$

Deprecated by Vista in favor of CostQuantity and PriceQuantity.

CostAmounts
object

Optional. If omitted all properties will default as specified.

BillableAmounts
object

Optional. If omitted all properties will default as specified. This property is ignored if $.NonBillable = Y.

Accounts
object

Optional. If omitted all properties will default as specified.

string | null
__custom_fields
object

Add a property to this object for each user defined field to be set. Property name set to the user defined field name.

string
required
^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$

Cost quantity. Required field.

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