Skip to main content

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

FieldValueNote
Base Urlhttps://adapt.flowlyze.comadapter URL
Resource Path/api/adp/shopify/egress/orders-metafields-to-shopifyadapter path for order metafield addition flow
Headers :: x-api-key**********API key for endpoint interaction verification
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/Shopify shop URL to connect to
Headers :: x-shopify-access-tokenshpat_CODICEALFANUMERICOsecret of the custom app created for integration