Products
Get a product by ID
Get a single product by its ID.
This endpoint requires the product:read scope for the given product.
path Parameters
administrationIdThe ID of the administration.
productIdThe ID of the product.
Get a product by ID › Responses
OK
idThe ID of the product.
nameThe name of the product.
shortDescriptionA short description of the product.
The unit price of the product, excluding VAT.
typeThe type of the product.
generalLedgerAccountIdThe ID of the general ledger account that revenue from this product is booked to.
createdAtThe timestamp at which the product was created.
lastUpdatedAtThe timestamp at which the product was last updated.
isInUseWhether the product is currently in use (for example, referenced by an invoice).
Update a product
Update an existing product. The product will be completely replaced with the provided product object.
This endpoint requires the product:write scope for the given product and the gla:read scope for the general ledger account of the product.
path Parameters
administrationIdThe ID of the administration.
productIdThe ID of the product.
Update a product › Request Body
nameThe name of the product.
shortDescriptionA short description of the product.
The unit price of the product, excluding VAT.
typeThe type of the product.
generalLedgerAccountIdThe ID of the general ledger account that revenue from this product is booked to.
Update a product › Responses
OK
idThe ID of the product.
nameThe name of the product.
shortDescriptionA short description of the product.
The unit price of the product, excluding VAT.
typeThe type of the product.
generalLedgerAccountIdThe ID of the general ledger account that revenue from this product is booked to.
createdAtThe timestamp at which the product was created.
lastUpdatedAtThe timestamp at which the product was last updated.
isInUseWhether the product is currently in use (for example, referenced by an invoice).
Get all products
Get a paginated list of all accessible products in the given administration.
This endpoint requires the product:read scope.
path Parameters
administrationIdThe ID of the administration.
query Parameters
pageThe one-based index of the page to return.
per_pageThe number of products to return per page. Clamped to the maximum page size of 100.
Get all products › Responses
OK
An array containing the elements of the page.
Create a product
Create a new product in the given administration.
This endpoint requires the product:write scope for the given administration and the gla:read scope for the general ledger account of the product.
path Parameters
administrationIdThe ID of the administration.
Create a product › Request Body
nameThe name of the product.
shortDescriptionA short description of the product.
The unit price of the product, excluding VAT.
typeThe type of the product.
generalLedgerAccountIdThe ID of the general ledger account that revenue from this product is booked to.
Create a product › Responses
Created
idThe ID of the product.
nameThe name of the product.
shortDescriptionA short description of the product.
The unit price of the product, excluding VAT.
typeThe type of the product.
generalLedgerAccountIdThe ID of the general ledger account that revenue from this product is booked to.
createdAtThe timestamp at which the product was created.
lastUpdatedAtThe timestamp at which the product was last updated.
isInUseWhether the product is currently in use (for example, referenced by an invoice).