Skip to main content
POST
/
orders
List all orders
curl --request POST \
  --url https://api.pocketsflow.com/orders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startDate": "2023-12-25",
  "endDate": "2023-12-25",
  "productId": "<string>",
  "page": 1,
  "pageSize": 20
}
'

Authorizations

Authorization
string
header
required

Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)

Body

application/json
startDate
string<date>

Filter orders from this date

endDate
string<date>

Filter orders until this date

productId
string

Filter orders by product ID

page
integer
default:1

Page number for pagination

pageSize
integer
default:20

Number of orders per page

Response

200

List of orders with pagination info