Cost+ Docs
Search

Search orders

Search across orders using free-form criteria.

POST
/search/orders

Authorization

basicAuth
AuthorizationBasic <token>

Use your API key as the username and leave the password empty. Encode as Base64: {api_key}: (note the trailing colon).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.costplus.online/v1/search/orders" \  -H "Content-Type: application/json" \  -d '{}'
{
  "hits": 0,
  "orders": [
    {
      "amount": 0,
      "description": "string",
      "currency": "string"
    }
  ]
}
{
  "error": {
    "status": 400,
    "type": "string",
    "value": "string",
    "property_path": "string",
    "property_description": "string"
  }
}
{
  "error": {
    "status": 400,
    "type": "string",
    "value": "string",
    "property_path": "string",
    "property_description": "string"
  }
}