iotoms Docs

Search carts

POST
/api/v1/transaction/cart/filter

Finds carts matching the fields in the request body (such as customerNumber, status, registerId, paymentStatus). Paginated with 0-based page (default 0) and size (default 20); set includeItems=true to include line items.

How to use it

  1. Send any combination of filter fields in the body, e.g. status, customerNumber or paymentStatus; all must match. Leave out type and registerId, which currently make the search fail.
  2. Pass page (from 0) and size (default 20) in the query to page through the results.
  3. Nothing is changed; the response is a page of matching carts with paging totals.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Query Parameters

page?integer

Page number, starting at 0. See Paging.

Formatint32
Default0
size?integer

Number of records per page.

Formatint32
Default20
includeItems?boolean

true to include each cart's line items; false (default) returns cart headers and totals only.

Defaultfalse

Request Body

application/json
  1. body
cartName?|

Return carts whose name contains this text, ignoring case.

customerNumber?|

Return carts for this exact customer number.

mobileNumber?|

Return carts with this exact mobile number.

date?|

Return carts whose stored creation timestamp equals this value exactly (same unit the client stored).

Formatint32
email?|

Return carts whose email contains this text, ignoring case.

status?|

Return carts in this state: Active, Discarded, Abandoned, Checkout, Suspended or Resumed.

Value in"Active""Discarded""Abandoned""Checkout""Suspended""Resumed"null
orderId?|

Return the cart linked to this exact order ID.

modifiedDate?|

Return carts whose stored last-change timestamp equals this value exactly (same unit the client stored).

Formatint32
source?|

Return carts whose source contains this text, ignoring case.

pin?|

Return carts with this exact PIN.

Formatint32
type?|

Intended to return carts with this cart type label. Not usable at the moment: sending it makes the search fail, so filter on other fields.

registerId?|

Intended to return carts rung up on this register (see List registers). Not usable at the moment: sending it makes the search fail, so filter on other fields.

Formatint32
paymentStatus?|

Return carts with this payment state: Paid, Unpaid or Refunded.

Value in"Paid""Unpaid""Refunded"null

Response Body

OK

*/*
  1. response
content?array<>|

The records on this page.

page?

Paging details: page size, current page number, total matching records and total pages.

Example Request
curl -X POST 'https://beta.iotoms.com/api/v1/transaction/cart/filter' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "content": [    {}  ],  "page": {    "size": 0,    "number": 0,    "totalElements": 0,    "totalPages": 0  }}