XM
Powered By GitBook
Retrieve Order-Level Attributes
Path:
1
GET https://{baseurl}/api-configuration/attribute/getAll/order-attributes
Copied!
Enables you to get all the available attributes for an order.

Headers

Content-Type : application/json
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }

Parameters []

Sample Request

Path:
1
GET https://{baseurl}/api-configuration/attribute/getAll/order-attributes
Copied!

Response

Success Code: 200
Message: OK
Description: You'll see this message when all of the order attributes are retrieved.
1
{
2
"attributes": [
3
{
4
"_id": "60b12fc3a12cde00081b4f7f",
5
"price": "15",
6
"name": "Complete Order Gift Warp Large",
7
"type": "bool"
8
},
9
{
10
"_id": "60b12fdda12cde00081b4f80",
11
"price": "5",
12
"name": "Complete Order Gift Warp Small",
13
"type": "bool"
14
},
15
{
16
"_id": "60b13013a12cde00081b4f81",
17
"price": "0",
18
"name": "Order Level Messaging",
19
"type": "string"
20
}
21
]
22
}
Copied!
Error Code: 404
Message: Not found
Description: You will see this error when no order-level attributes are found.
1
{
2
"code": "ATTRIBUTE_NOT_FOUND_ERROR",
3
"message": "Attributes Not Found"
4
}
Copied!
Error Code: 500
Message: Internal Server Error
Description: You will see this error when the account number is incorrect in the x-site-context (for a multi-tenent client).

Change Log

    June - 2021 First updated
Last modified 17d ago
Copy link
Contents
Change Log