curl --request PUT \
--url https://api.hyperline.co/v1/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Product name",
"description": "Product internal description",
"public_description": "Product public description",
"translations": {},
"is_available_on_demand": true,
"is_available_on_subscription": true,
"properties": {},
"custom_properties": {},
"accounting": {}
}
'{
"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,
"price_configurations": [
{
"id": "<string>",
"price_book_id": "<string>",
"status": "active",
"currency": "EUR",
"country": "FR",
"plan_id": "<string>",
"billing_interval": {
"period": "once"
},
"commitment_interval": {
"period": "all"
},
"updated_at": "2023-12-25",
"archived_at": "2023-12-25",
"type": "fee",
"prices": [
{
"type": "fee",
"amount": 123,
"id": "<string>"
}
]
}
]
}Update the details of an existing product.
curl --request PUT \
--url https://api.hyperline.co/v1/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Product name",
"description": "Product internal description",
"public_description": "Product public description",
"translations": {},
"is_available_on_demand": true,
"is_available_on_subscription": true,
"properties": {},
"custom_properties": {},
"accounting": {}
}
'{
"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,
"price_configurations": [
{
"id": "<string>",
"price_book_id": "<string>",
"status": "active",
"currency": "EUR",
"country": "FR",
"plan_id": "<string>",
"billing_interval": {
"period": "once"
},
"commitment_interval": {
"period": "all"
},
"updated_at": "2023-12-25",
"archived_at": "2023-12-25",
"type": "fee",
"prices": [
{
"type": "fee",
"amount": 123,
"id": "<string>"
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Update product payload
Product name.
"Product name"
Product description.
"Product internal description"
Public description of the product.
"Product public description"
Product name and description translations.
Show child attributes
Show child attributes
A list of key value with the slug of the custom property as the key and the custom property value as value.
Show child attributes
Mapping invoicing entity ID/accounting settings.
Show child attributes
The newly created product
Product ID.
"itm_3kXODDF42QXtnL"
Product name.
"Product name"
Product status.
active: The product is active and can be used in new quotes/subscriptions/invoices.archived: The product is archived and can't be used anymore.active, archived "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.
Show child attributes
Key/value pairs to store any metadata useful in your context.
Show child attributes
null
A list of key value with the slug of the custom property as the key and the custom property value as value.
Show child attributes
Mapping invoicing entity ID/accounting settings.
Show child attributes
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.
true
Show child attributes
Was this page helpful?