Skip to content

Searches for orders using predefined parameters

Request

Searches for orders using predefined parameters

Security
knox-authorizer
Path
tenantIdstringrequired

The id of the tenant being accessed.

Query
exclusiveStartKeystring

The start key for the search, for paging support

fieldsToReturnstring

The fields that you want to retrieve; if omitted, the entire object is returned

Bodyapplication/jsonrequired

The order that you would like to be saved.

amount_paidArray of numbers, (float), = 2 items(Amount Paid)
balance_dueArray of numbers, (float), = 2 items(Balance Due)
bill_to_contact_idstring(Bill To Contact)
bill_to_organization_idstring(Bill To Organization)
bill_to_typestring(Bill To Type)
Enum:"contact""organization"
dateArray of strings, = 2 items(Date)
discountsArray of numbers, (float), = 2 items(Discounts)
idArray of strings(ID)
numberArray of numbers, (float), = 2 items(Number)
purchase_order_numberArray of strings(Purchase Order Number)
ship_to_contact_idstring(Ship To Contact)
ship_to_organization_idstring(Ship To Organization)
ship_to_typestring(Ship To Type)
Enum:"contact""organization"
shipping_method_nameArray of strings(Shipping Method Name)
statusArray of strings(Status)
totalArray of numbers, (float), = 2 items(Total)
total_weightArray of numbers, (float), = 2 items(Total Weight)
typeArray of strings(Type)
curl -i -X POST \
  'https://docs.api.rhythmsoftware.com/_mock/apis/commerce/commerce-v1/orders/{tenantId}/search?exclusiveStartKey=string&fieldsToReturn=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount_paid": [
      0.1,
      0.1
    ],
    "balance_due": [
      0.1,
      0.1
    ],
    "bill_to_contact_id": "string",
    "bill_to_organization_id": "string",
    "bill_to_type": "contact",
    "date": [
      "string",
      "string"
    ],
    "discounts": [
      0.1,
      0.1
    ],
    "id": [
      "string"
    ],
    "number": [
      0.1,
      0.1
    ],
    "purchase_order_number": [
      "string"
    ],
    "ship_to_contact_id": "string",
    "ship_to_organization_id": "string",
    "ship_to_type": "contact",
    "shipping_method_name": [
      "string"
    ],
    "status": [
      "string"
    ],
    "total": [
      0.1,
      0.1
    ],
    "total_weight": [
      0.1,
      0.1
    ],
    "type": [
      "string"
    ]
  }'

Responses

The order search was saved successfully.

Headers
Access-Control-Allow-Headersstring
Access-Control-Allow-Methodsstring
Access-Control-Allow-Originstring
Bodyapplication/json
ItemsArray of objects(OrderSearchResults)
LastEvaluatedKeystring
Response
{ "Items": [ { … } ], "LastEvaluatedKey": "string" }