Class: orders

orders(domainOrOptionsopt)

new orders(domainOrOptionsopt)

Parameters:
Name Type Attributes Description
domainOrOptions string | object <optional>
The project domain or options object. If object, see the object's optional properties.
Properties
Name Type Attributes Description
domain string <optional>
The project domain
token object <optional>
auth token - object with value property and optional headerOrQueryName and isQuery properties
Source:

Methods

get(orderId, xShopperId, xMarketId)

Retrieve details for specified order
Parameters:
Name Type Description
orderId string Order id whose details are to be retrieved
xShopperId string Shopper ID to be operated on, if different from JWT
Reseller subaccounts are not supported
xMarketId string Unique identifier of the Market in which the request is happening
Source:

list(periodStart, periodEnd, domain, productGroupId, paymentProfileId, parentOrderId, offset, limit, sort, xShopperId, xMarketId)

Retrieve a list of orders for the authenticated shopper. Only one filter may be used at a time
Parameters:
Name Type Description
periodStart string Start of range indicating what time-frame should be returned. Inclusive
periodEnd string End of range indicating what time-frame should be returned. Inclusive
domain string Domain name to use as the filter of results
productGroupId integer Product group id to use as the filter of results
paymentProfileId integer Payment profile id to use as the filter of results
parentOrderId string Parent order id to use as the filter of results
offset integer Number of results to skip for pagination
limit integer Maximum number of items to return
sort string Property name that will be used to sort results. '-' indicates descending
xShopperId string Shopper ID to be operated on, if different from JWT
Reseller subaccounts are not supported
xMarketId string Unique identifier of the Market in which the request is happening
Source:

setToken(value, headerOrQueryName, isQuery)

Set Token
Parameters:
Name Type Description
value string token's value
headerOrQueryName string the header or query name to send the token at
isQuery boolean true if send the token as query param, otherwise, send as header param
Source: