cURL
curl --request GET \ --url https://api.hyperline.co/v1/products \ --header 'Authorization: Bearer <token>'
{ "meta": { "total": 1, "taken": 1, "skipped": 0, "approximateCount": false }, "data": [ { "id": "itm_3kXODDF42QXtnL", "name": "Product name", "status": "active", "description": "Product internal description", "description_display_interval_dates": true, "public_description": "Product public description", "translations": {}, "properties": null, "custom_properties": {}, "accounting": {}, "type": "flat_fee", "is_available_on_demand": true, "is_available_on_subscription": true } ] }
Retrieve existing products.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
0 <= x <= 100
x >= 0
all
active
archived
Show child attributes
Total of existing items.
1
Number of items returned.
Number of items skipped.
0
Whether the total count is approximate.
false
List of Product.
Product ID.
"itm_3kXODDF42QXtnL"
Product name.
"Product name"
Product status.
"active"
Product description.
"Product internal description"
Indicates if the dates of the interval should be automatically added in the product description on the invoices.
Public description of the product.
"Product public description"
Product name and description translations.
Key/value pairs to store any metadata useful in your context.
null
A list of key value with the slug of the custom property as the key and the custom property value as value.
Mapping invoicing entity ID/accounting settings.
Custom tax rate ID.
"taxr_YfiSnLIYORD9VN"
Code used to reconcile the product with the external accounting tool. Usually, it corresponds to the product ID in the accounting software.
"PROD-23"
Code used to assign related invoices line items to a General Ledger account in your external accounting tool.
"GL-001"
Product type.
flat_fee
Enable the product to be billed at any time as a one-time payment.
true
Enable the product to be added as part of a subscription.
Was this page helpful?