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
|
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 |
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 |
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 |