Upsert Order Metafield
This flow allows you to add, update or remove a metafield on a specific Shopify order.
For the operation to be successful, metafields must already be defined in the store (in Setting > Metafields and metaobjects > Orders).
It is important that the value type must match what is defined in the metafield (string, number, boolean, etc.), otherwise Shopify will return an error.
Structure
{
"orderName": "#1069",
"metafields": {
"test1": "value1",
"custom.test2": "value2",
"custom.test3": "" // To clear the metafield
}
}
Flow configurations
| Field | Value | Note |
|---|---|---|
Base Url | https://adapt.flowlyze.com | adapter URL |
Resource Path | /api/adp/shopify/egress/orders-metafields-to-shopify | adapter path for order metafield addition flow |
Headers :: x-api-key | ********** | API key for endpoint interaction verification |
Headers :: x-shopify-graphql-url | https://SHOPIFYURL.myshopify.com/ | Shopify shop URL to connect to |
Headers :: x-shopify-access-token | shpat_CODICEALFANUMERICO | secret of the custom app created for integration |