Retrieves a custom attribute associated with an order.
GET
/v2/orders/{order_id}/custom-attributes/{custom_attribute_key}
Retrieves a custom attribute associated with an order.
You can use the with_definition
query parameter to also retrieve the custom attribute definition in the same call.
To retrieve a custom attribute owned by another application, the visibility
setting must be VISIBILITY_READ_ONLY
or VISIBILITY_READ_WRITE_VALUES
. Note that seller-defined custom attributes also known as custom fields) are always set to VISIBILITY_READ_WRITE_VALUES
.
The ID of the target order.
To enable optimistic concurrency control, include this optional field and specify the current version of the custom attribute.
Indicates whether to return the custom attribute definition in the definition
field of each custom attribute. Set this parameter to true
to get the name and description of each custom attribute, information about the data type, or other definition details. The default value is false
.