curl --request GET \
--url https://api-dev.narrative.io/attributes{
"records": [
{
"id": 123456789,
"name": "price",
"description": "The price of an order, product, or a price component. Currency field accepts ISO 4217 currency codes",
"display_name": "Price",
"type": "object",
"properties": {
"value": {
"type": "double",
"validations": [
"$this.value >= 0.0"
]
},
"iso_4217_currency": {
"type": "string",
"enum": [
"USD",
"GBP",
"JPY"
]
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"tags": [
"ecommerce",
"transaction"
],
"required": [
"value",
"iso_4217_currency"
]
}
]
}Return all attributes.
curl --request GET \
--url https://api-dev.narrative.io/attributes{
"records": [
{
"id": 123456789,
"name": "price",
"description": "The price of an order, product, or a price component. Currency field accepts ISO 4217 currency codes",
"display_name": "Price",
"type": "object",
"properties": {
"value": {
"type": "double",
"validations": [
"$this.value >= 0.0"
]
},
"iso_4217_currency": {
"type": "string",
"enum": [
"USD",
"GBP",
"JPY"
]
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"tags": [
"ecommerce",
"transaction"
],
"required": [
"value",
"iso_4217_currency"
]
}
]
}resolve attribute(s) which is true by default.
OK
The response is of type string.
{
"records": [
{
"id": 123456789,
"name": "price",
"description": "The price of an order, product, or a price component. Currency field accepts ISO 4217 currency codes",
"display_name": "Price",
"type": "object",
"properties": {
"value": {
"type": "double",
"validations": ["$this.value >= 0.0"]
},
"iso_4217_currency": {
"type": "string",
"enum": ["USD", "GBP", "JPY"]
},
"tags": {
"type": "array",
"items": { "type": "string" }
}
},
"tags": ["ecommerce", "transaction"],
"required": ["value", "iso_4217_currency"]
}
]
}