post
https://api.duodeal.app/api/product-prices
Creates a new product price entry.
Product prices link a product to a price category with a specific price amount. Each product can have different prices for different price categories (e.g., retail, wholesale, VIP).
Note: A product can only have one price per price category. Attempting to create a duplicate will result in an error.
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
priceCategory | object | Yes | Price category: {"id": <price_category_id>} |
product | object | Yes | Product: {"id": <product_id>} |
price | float | Yes | Price amount (excluding tax) |
tax | object | No | Associated tax: {"id": <tax_id>} |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Newly created 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
201 Created: Product price successfully created400 Bad Request: Invalid request body, validation error, or duplicate price category/product combination401 Unauthorized: Invalid or missing API key
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201Resource created
400Bad request
401Unauthorized
