set Metafield Values for orders
POST https://api.ecartapi.com/api/v2/metafields/orders/5501113860265
When setting a value for your metafield, keep in mind that you will need to send a JSON string or JSON.
Request Body
{"metafield"=>{"namespace"=>"offer", "key"=>"offer", "value"=>"true"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"metafield":[{"id":"25455017361577","key":"offer","value":"true","ownerType":"ORDER","namespace":"offer","type":"boolean"}]}