Getting product attributes lists
You can download a complete list of product attributes from your account. The list will only show attributes you’ve already set up in Settings > Orders > Product attributes.
Want to learn more about setting up attributes? Check out our Product attributes guide.
GET method
Use the GET method to retrieve all your product attributes and their properties.
Endpoint
The endpoint for GET requests is: https://api.ecdp.app/productattributes
Request parameters
Parameter | Required | Type | Used in | Description |
x-api-key | yes | string | header | Your API key, which you can find in Settings > API. |
What data will be included in the response?
The response to a correctly submitted query contains the following data:
Parameter | Type | Description |
id | Integer($int32) | The attribute’s ID number – the same one you see in Settings > Orders > Product attributes. |
name | string | ProThe attribute name you assigned in Settings > Orders > Product attributes. |
type | string | The attribute type you chose: String, Text, Number, Money, Date, DateTime, SingleSelect, Boolean, or Url. |
Response codes
200: Success
Your request worked, and the server sent back your data.
Sample response:
{
"status": 0,
"data": [
{
"id": 0,
"name": "string",
"type": "string"
}
]
}
401: Unauthorized
Something went wrong with your request – either you forgot to include your API key, or you’re trying to access information you don’t have permission to see.
Sample response:
{
"type": "string",
"title": "string",
"status": 0,
"substatus": "CustomerInvalidModelState",
"detail": "string",
"instance": "string"
}