Create or Replace Fallback Shipping Method
Creates or replaces a fallback shipping method by handle.
Create-or-replace by handle. A handle in the body, if present, must match the path handle (renames are delete + create). label, price and currency are required.
The shipping method handle
The name of the shipping method.
Description of the shipping method.
The price of the shipping method in cents.
The currency of the shipping method.
The handle or external ID to use when utilizing this method.
Whether the price is calculated per the entire order or per item.
The created or replaced fallback shipping method.
The name of the shipping method.
Description of the shipping method.
The price of the shipping method in cents.
The currency of the shipping method.
The handle or external ID to use when utilizing this method.
Whether the price is calculated per the entire order or per item.
PUT /v1/merchants/{merchant_id}/shipping-methods/{handle} HTTP/1.1
Host: sandbox-api.violet.io
X-Violet-Token: text
X-Violet-App-Secret: text
X-Violet-App-Id: 1
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"label": "Standard",
"price": 500,
"currency": "USD",
"calculation_type": "PER_ORDER"
}The created or replaced fallback shipping method.
{
"label": "Standard",
"description": "5-7 business days",
"price": 500,
"currency": "USD",
"handle": "standard",
"calculation_type": "PER_ORDER"
}Last updated
Was this helpful?