Create a product
Changed onCreate a product
ℹ️ This endpoint requires the following scope: products:all
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/products
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: products:all
Headers
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Request body
Example request
{
"label": "Product 1",
"description": "This is product 1",
"external_reference": "0e67fc3c-c632-4feb-ad34-e18ed5fbf66a",
"price_before_tax": "100.00",
"vat_rate": "FR_200",
"unit": "piece",
"reference": "REF-123",
"ledger_account_id": 42,
"custom_fields": [
{
"name": "color"
}
]
}Response
The created product
Example response
{
"id": 1,
"label": "Product 1",
"description": "This is product 1",
"external_reference": "0e67fc3c-c632-4feb-ad34-e18ed5fbf66a",
"price_before_tax": "12.5",
"vat_rate": "FR_200",
"price": "13.6",
"unit": "piece",
"reference": "REF-123",
"archived_at": "2023-09-30T10:08:08.146343Z",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z",
"custom_fields": [
{
"name": "color"
}
]
}Changes
- breaking
removed the enum value
mixedof the request property - warning
added the new
DE_intracom_exempt_BU0233enum value to theresponse property for the response status - warning
added the new
ES_intracom_sales_goodsenum value to theresponse property for the response status - warning
added the new
ES_intracom_sales_servicesenum value to theresponse property for the response status - warning
added the new
ES_isp_purchases_100enum value to theresponse property for the response status - warning
added the new
ES_isp_purchases_210enum value to theresponse property for the response status - warning
added the new
ES_isp_salesenum value to theresponse property for the response status - warning
added the new
ES_suplidoenum value to theresponse property for the response status - warning
added the new
VESenum value to theresponse property for the response status - info
added the new optional
headerrequest parameterX-Company-Id - info
added the new optional request property
- info
added the new optional request property
- info
added the new
DE_intracom_exempt_BU0233enum value to the request property - info
added the new
ES_intracom_sales_goodsenum value to the request property - info
added the new
ES_intracom_sales_servicesenum value to the request property - info
added the new
ES_isp_purchases_100enum value to the request property - info
added the new
ES_isp_purchases_210enum value to the request property - info
added the new
ES_isp_salesenum value to the request property - info
added the new
ES_suplidoenum value to the request property - info
added the new
VESenum value to the request property - info
removed the
mixedenum value from theresponse property for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking