Orders – get a list of product attributes
This GET method retrieves a complete list of product attributes configured in your business unit in Settings > Orders > Product attributes.
Endpoint
The endpoint for GET requests is: https://api.ecdp.app/productattributes
Request parameters
| Parameter | Location | Type | Required | Description | Allowed values / Notes |
| x-api-key | header | string | yes | Your ECDP API key for authentication | Located in Settings > API |
This endpoint does not require any query parameters or request body. The response returns all product attributes configured in your account.
Response
| Parameter | Type | Description |
| status | integer | Response status code. Returns 0 for successful requests. |
| data | array | Array of product attribute data. Empty array if no attributes are configured. See Order attributes structure below. |
Product attributes
Each product attribute data in the data array represents a single product attribute with the following para,eters:
| Parameter | Type | Description |
| id | integer (int32) | Unique identifier for the product attribute. Corresponds to the ID shown in Settings > Orders > Product attributes. |
| name | string | The display name assigned to the attribute when it was created. Max 256 characters. |
| type | string | The data type of the attribute. Determines what values can be stored and how they are validated. See data types table |
Data types
The type field contains one of the following values:
| Type | Description |
| String | Short text value, typically up to 255 characters |
| Text | Long-form text content |
| Number | Numeric value (integer or decimal) |
| Money | Currency value with decimal precision |
| Date | Date value without time component (YYYY-MM-DD) |
| DateTime | Date and time value in ISO-8601 format |
| SingleSelect | Single selection from a predefined list of options |
| Boolean | True/false value |
| Url | Valid URL string |
Response codes#
| Code | Status | Description |
| 200 | Success | Request processed successfully. Response body contains attribute data. |
| 401 | Unauthorized | API key is missing, invalid, or lacks permission for this resource. |
| 500 | Internal Server Error | An unexpected error occurred on the server. |
Example requests and responses
Get all product attributes
Request:
GET /productattributes
Response (200 OK):
{
"status": 0,
"data": [
{
"id": 1,
"name": "Manufacturer",
"type": "String"
},
{
"id": 2,
"name": "Seasonal product",
"type": "Boolean"
},
{
"id": 3,
"name": "Launch date",
"type": "Date"
},
{
"id": 4,
"name": "Wholesalep rice",
"type": "Money"
}
]
}Response when no attributes are configured
Response (200 OK):
{
"status": 0,
"data": []
}Validation and behavior rules
- This endpoint returns all product attributes configured in the current business unit in Settings > Orders > Product attributes.
- Attribute IDs are stable and do not change after creation.
- An empty data array indicates no product attributes have been configured.
Reference documentation
Swagger – Product attributes