跳转到内容

OrderTags

此内容尚不支持你的语言。

OrderTags is an API you use to get, add or remove tags to an order.

Use the GET method to obtain list of tags for an order.

Use the POST method to append list of tags to an order. The existing tags on the order will not be affected. For example, if order A has tag “t1”, and you add tags [“t2”, “t3”], order will end up with 3 tags: [“t1”, “t2”, “t3”]

Use the DELETE method to remove list of tags to an order, other tags on the order will remain.

Any tag name mentioned on the API request must exists. Adding a tag to an order that already has said tag will be silently ignored. Deleting a tag from an order that does not have such tag will also be silently ignored. For example, if order A has tag [ “t1”, “t2”, “t3” ], removing tag [“t0”, “t1”] will give success response and result in order A having tags [“t2”, “t3”].

https://api.teapplix.com/api2/OrderTags Explorer

GET Request

Query parameters

PropertyTypeDescriptionConstraints
TxnId string TxnId of order. Use this parameter to download only one order.

GET Response - 200

Order Tags

'APIToken' header should be included in each request

PropertyTypeDescriptionConstraints
Orders Order Tags Of One Order[] Array of orders

Order Tags Of One Order

PropertyTypeDescriptionConstraints
TxnId string Unique id for each entry RequiredMax-Length: 40Pattern: [\s\S]
TagList string[] Order’s tags list Required

GET Response - 400

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 401

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 500

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description
Test Request