Products API
Use the Products API to manage the Products
Last updated
Use the Products API to manage the Products
Last updated
POST
/v1/organizations/{{id}}/ledgers/{{id}}/products
Use this endpoint to create a Product.
Headers
Name | Value |
---|---|
Response codes
GET
/v1/organizations/{{id}}/ledgers/{{id}}/products
Use this endpoint to retrieve the information of all Products to which a user has access.
If a product has been deleted, the information of the product will be displayed, including the date when the deletion occurred in the deletedAt
field.
Headers
Query parameters
Response codes
GET
/v1/organizations/{{id}}/ledgers/{{id}}/products/{{id}}
Use this endpoint to retrieve the information of a specific Product using the identifier (id
).
If the product has been deleted, the information of the product will be displayed, including the date when the deletion occurred in the deletedAt
field.
Headers
Response codes
PATCH
/v1/organizations/{{id}}/ledgers/{{id}}/products/{{id}}
Use this endpoint to edit and update the information of a specific Product. When you update a Product, the following fields can be edited:
name
status
metadata
When updating the metadata
object, all previous key-value pairs must be included in the update, or they will be removed.
Headers
Response codes
DELETE
/v1/organizations/{{id}}/ledgers/{{id}}/products/{{id}}
Use this endpoint to deactivate a specific Product.
Headers
Response codes
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Name | Value |
---|---|
Name | Value |
---|---|
Content-Type
application/json
Authorization
Bearer <token>
Authorization
Bearer <token>
status
Array
An object containing information about the product status.
ledgerId
String (UUID)
Ledger's identification code.
Authorization
Bearer <token>
Content-Type
application/json
Authorization
Bearer <token>
Content-Type
application/json
Authorization
Bearer <token>