List Purchase Orders
List Purchase Orders — vendor REST API endpoint.
/vendor/purchase-ordersVendor bearer token requiredList Purchase Orders
List purchase orders issued to your vendor with cursor-based pagination.
Returns a paginated slice of your purchase orders as summary rows — order header plus money totals, priced at your vendor cost instead of customer retail. Address panels and line items are on Get Purchase Order. Use first/after (or last/before) cursors from pageInfo to navigate.
When to use this
- Reconciling what the marketplace owes you against your own accounting system.
- Listing open purchase orders before fetching the ones you need in full.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| first | integer | No | Number of purchase orders to return (default 24, max 100). |
| after | string | No | Opaque cursor — pass pageInfo.endCursor from the previous page for the next page. |
| before | string | No | Opaque cursor for backward pagination (use with last). |
| last | integer | No | Number of purchase orders when paginating backward (max 100). |
Request example
curl -X GET 'https://api.next.gcommerce.glass/api/v1/vendor/purchase-orders'Response examples
{
"purchaseOrders": [{
"id": "550e8400-e29b-41d4-a716-446655440030",
"orderNumber": "ORD-2026-0042-V1",
"status": "SHIPPED",
"placedAt": "2026-06-10T16:45:00.000Z",
"poNumber": "PO-7788",
"subtotal": 39.98,
"shipping": 0,
"tax": 0,
"discount": 0,
"total": 39.98,
"currency": "USD"
}],
"pageInfo": {
"startCursor": "MjAyNi0wMS0xNVQxMjowMDowMC4wMDBafDU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAwMA==",
"endCursor": "MjAyNS0xMi0wMVQxMDowMDowMC4wMDBafDU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAxMA==",
"hasNextPage": true,
"hasPreviousPage": false
},
"estimatedTotalCount": 128
}Status codes
OK
Request succeeded.
Unauthorized
Missing or invalid bearer token.
Forbidden
Insufficient permissions for this action.
Bad Request
Validation failed or invalid parameters.
Not Found
Resource not found.
Too Many Requests
Global rate limit exceeded (10,000 requests per 10 minutes per IP).
Internal Server Error
Unexpected server error.
Forbidden
No vendor membership, or insufficient vendor role (requires OWNER, ADMIN, or EDITOR for write operations).
Try it
Uses your saved session from login. Edit values and send a live request, or copy the cURL command.