Order Metafields
Create specific metafield
To create metafield attached to specific order by metafield ID
post/orders/{order_id}/metafields
Path parameters
order_idstring required
Order ID
Request body
Response
OK
Example response
{
"id": "5ad86757e38809441400001b",
"namespace": "sales",
"key": "discount",
"field_type": "number_integer",
"field_value": 10,
"created_at": "2021-12-01T03:12:11.666+00:00",
"updated_at": "2021-12-02T09:35:12.555+00:00",
"metafield_type": "merchant",
"resource_id": "62f9f0c76f4ae6001e4b00f2",
"resource_type": "product",
"merchant_id": "66418472bcba497f92f3a168"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.