post
https://api.duodeal.app/api/price-categories
Creates a new price category.
Price categories allow you to define different pricing tiers for your products, such as retail, wholesale, regional pricing, or customer-specific pricing.
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Category name (e.g., "Retail", "Wholesale", "VIP") |
byDefault | boolean | No | Set as default price category (default: false) |
tax | object | No | Associated tax: {"id": <tax_id>} |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Newly created price category unique identifier |
name | string | Category name |
byDefault | boolean | Whether this is the default price category |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
201 Created: Price category successfully created400 Bad Request: Invalid request body or validation error401 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
