put
https://api.duodeal.app/api/product-prices/
Updates an existing product price by its ID.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Product price unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
price | float | No | Price amount (excluding tax) |
tax | object | No | Associated tax: {"id": <tax_id>} or null to remove |
priceCategory | object | No | Change price category: {"id": <price_category_id>} |
product | object | No | Change product: {"id": <product_id>} |
Note: Changing priceCategory or product may fail if it creates a duplicate combination.
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Product price unique identifier |
price | float | Price amount |
priceCategory | object | Associated price category |
product | object | Associated product |
tax | object | Associated tax (if any) |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Product price successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Product price not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
