- Print
- DarkLight
- PDF
Sales → Order → Metadata
Log over orders received with metadata. Displays key and value.
Register Metadata:
To add metadata for an order, press Create. Fill in value and key. Press the "Check box" to save.
Remove by pressing the "Trash can" icon.
Metadata for the selection of Agents sent to TA for shipping service:
E-commerce needs to submit Metadata with the following information on orders for a customer's chosen agent to be sent to TA.
For instance, to correctly input the AgentID, send: "Key: location.external_id" and "Value: AgentID".
BeX will then map the AgentID from the Value in the order's Metadata to QuickID if the following is included in the JSON template:
},
"agent": {
"quickId": "{META[location.external_id]}",
"name": "{META[location.name]}",
"address1": "{META[location.address.address_lines.1]}",
"address2": "{META[location.address.address_lines.2]}",
"zipcode": "{META[location.address.postal_code]}",
"city": "{META[location.address.city]}",
"country": "{META[location.address.country]}",
"phone": "",
"email": "",
"mobile": ""
},
The Key can be set by the e-commerce, but the JSON above needs updating to reflect the key.
For example, if the Key for Agent ID is set as location.id instead of location.external_id, then the JSON needs to be updated to:
"quickId": "{META[location.id]}",
This ensures the correct value is mapped from the order's Metadata and placed into JSON, sent as QuickID to nShift.