PUT
/
merchants
/
{merchant_id}
/
configuration
/
orders_config
curl --request PUT \
  --url https://sandbox-api.violet.io/v1/merchants/{merchant_id}/configuration/orders_config \
  --header 'Content-Type: application/json' \
  --data '{
  "custom_tags": [
    "tag1",
    "tag2"
  ]
}'
{
  "global_feature_flags": {
    "sync_metadata": false,
    "sync_collections": true
  },
  "platform_feature_flags": {
    "filter_by_collections": false,
    "use_custom_shipping_rates": true
  },
  "orders_config": {
    "custom_tags": [
      "tag1",
      "tag2"
    ]
  }
}

Modifies the merchants order configuration based on a given merchant_id.

You must be connected to a merchant to modify their configuration.

Merchant Configuration is currently in beta.

Available Order Configurations

Custom Tags - custom_tags
This configuration allows you to provide a set of tags that will be included with any orders submitted for this merchant.

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

merchant_id
integer
required

Body

application/json
custom_tags
string[]

Custom tags to be added to a merchants orders upon submission.

Response

default - application/json
global_feature_flags
object

Feature flags that apply to a merchant globally, regardless of their commerce platform.

platform_feature_flags
object

Feature flags that apply to a merchant depending on their commerce platform.

orders_config
object

Configurations for the merchants order behaviors.