This endpoint returns all custom price discounts
Endpoint
GET /products/custom-pricesAuthentication
Required: Authorization header with valid token
Query Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
attachToProductId | string (UUID v4) | No | Return only custom prices not yet attached to any specific product | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
Response
Success
[
{
"id": "string (UUID)",
"name": "string",
"authorId": "string (UUID)",
"organizationId": "string (UUID)",
"defaultDiscount": 0.0,
"discountCalculation": "PRICE",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
}
]Response Field Descriptions:
id- Unique identifier of the custom pricename- Name of the custom price (unique per organization)authorId- ID of the user who created the custom priceorganizationId- Organization the custom price belongs todefaultDiscount- Default discount value (default:0.0)discountCalculation- Discount calculation type (PRICEorPERCENTAGE)createdAt- Timestamp when the custom price was createdupdatedAt- Timestamp when the custom price was last updated
Example Usage
curl -X GET "https://integration-api.ram.syniotec.com/master-data/v1/product-management/products/custom-price?attachToProductId=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
-H "Authorization: Bearer YOUR_TOKEN"