Aller au contenu

GET /v1/products

GET
/v1/products
curl --request GET \
--url https://api.asap.cool/v1/products
limit
integer | null format: int32

Page size, 1..=100 (defaults to 50).

cursor
string | null

Opaque cursor from a previous page’s meta.next_cursor.

q
string | null

Free-text search over name / description (case-insensitive).

Page of products (newest first).

Media type application/json
Array<object>

Public projection of a [Product].

object
created_at
required

RFC3339 creation timestamp.

string
description

Optional description.

string | null
id
required

Stable identifier.

string format: uuid
name
required

Name.

string
unit

Unit label (e.g. hour, day, piece).

string | null
unit_price_cents
required

Unit price excluding VAT, in integer centimes.

integer format: int64
updated_at
required

RFC3339 last-update timestamp.

string
vat_rate
required

VAT rate as a percentage string (e.g. "20.00").

string
Example generated
[
{
"created_at": "example",
"description": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"unit": "example",
"unit_price_cents": 1,
"updated_at": "example",
"vat_rate": "example"
}
]

No active org.

Media type application/json

Generic error body returned by API handlers when they fail. code is a stable machine-readable token; message is human-friendly and meant for surfacing to end users.

object
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string
Example generated
{
"code": "example",
"field": "example",
"message": "example"
}

Missing invoice:read scope.

Media type application/json

Generic error body returned by API handlers when they fail. code is a stable machine-readable token; message is human-friendly and meant for surfacing to end users.

object
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string
Example generated
{
"code": "example",
"field": "example",
"message": "example"
}

Invalid limit or cursor.

Media type application/json

Generic error body returned by API handlers when they fail. code is a stable machine-readable token; message is human-friendly and meant for surfacing to end users.

object
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string
Example generated
{
"code": "example",
"field": "example",
"message": "example"
}