Shipping methods
Update a shipping method
Updates a shipping method. Send only the fields you want to change inside shipping_method; an empty body is a no-op. Rates can be added, changed, or removed in the same request through shipping_method_rates_attributes (include a rate id to change it and _destroy to remove it). rate_type must be price or weight. Requires a company admin Bearer token with orders update permission. Returns the updated shipping method, 404 when it does not exist in the company, or 422 when validation fails.
PATCH
/
api
/
v2025-06
/
shipping_methods
/
{id}
Update a shipping method
curl --request PATCH \
--url https://api.fluid.app/api/v2025-06/shipping_methods/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shipping_method": {
"delivery_time_estimate": "2-4 business days",
"priority": 1
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/shipping_methods/{id}"
payload = { "shipping_method": {
"delivery_time_estimate": "2-4 business days",
"priority": 1
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({shipping_method: {delivery_time_estimate: '2-4 business days', priority: 1}})
};
fetch('https://api.fluid.app/api/v2025-06/shipping_methods/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v2025-06/shipping_methods/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'shipping_method' => [
'delivery_time_estimate' => '2-4 business days',
'priority' => 1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v2025-06/shipping_methods/{id}"
payload := strings.NewReader("{\n \"shipping_method\": {\n \"delivery_time_estimate\": \"2-4 business days\",\n \"priority\": 1\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluid.app/api/v2025-06/shipping_methods/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"shipping_method\": {\n \"delivery_time_estimate\": \"2-4 business days\",\n \"priority\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/shipping_methods/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"shipping_method\": {\n \"delivery_time_estimate\": \"2-4 business days\",\n \"priority\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 612,
"name": "Standard Shipping",
"delivery_time_estimate": "2-4 business days",
"rate_type": "price",
"rate_type_unit": "USD",
"currency_code": "USD",
"status": "active",
"priority": 1,
"all_countries": false,
"country_sort_positions": {
"US": 1,
"CA": 2
},
"created_at": "2026-09-02T16:11:40.198Z",
"updated_at": "2026-09-15T14:32:08.302Z",
"warehouse_id": 3107,
"shipping_method_rates": [
{
"id": 4410,
"rate_type_min": "0.0",
"rate_type_max": "49.99",
"price": "9.99",
"country": "US",
"region": null,
"created_at": "2026-09-02T16:11:40.218Z",
"updated_at": "2026-09-02T16:11:40.218Z"
},
{
"id": 4411,
"rate_type_min": "50.0",
"rate_type_max": "999999.0",
"price": "0.0",
"country": "US",
"region": null,
"created_at": "2026-09-02T16:11:40.218Z",
"updated_at": "2026-09-02T16:11:40.218Z"
}
],
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-15T14:32:08Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Show child attributes
Show child attributes
Response
Success
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Update a shipping method
curl --request PATCH \
--url https://api.fluid.app/api/v2025-06/shipping_methods/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shipping_method": {
"delivery_time_estimate": "2-4 business days",
"priority": 1
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/shipping_methods/{id}"
payload = { "shipping_method": {
"delivery_time_estimate": "2-4 business days",
"priority": 1
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({shipping_method: {delivery_time_estimate: '2-4 business days', priority: 1}})
};
fetch('https://api.fluid.app/api/v2025-06/shipping_methods/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v2025-06/shipping_methods/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'shipping_method' => [
'delivery_time_estimate' => '2-4 business days',
'priority' => 1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v2025-06/shipping_methods/{id}"
payload := strings.NewReader("{\n \"shipping_method\": {\n \"delivery_time_estimate\": \"2-4 business days\",\n \"priority\": 1\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluid.app/api/v2025-06/shipping_methods/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"shipping_method\": {\n \"delivery_time_estimate\": \"2-4 business days\",\n \"priority\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/shipping_methods/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"shipping_method\": {\n \"delivery_time_estimate\": \"2-4 business days\",\n \"priority\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 612,
"name": "Standard Shipping",
"delivery_time_estimate": "2-4 business days",
"rate_type": "price",
"rate_type_unit": "USD",
"currency_code": "USD",
"status": "active",
"priority": 1,
"all_countries": false,
"country_sort_positions": {
"US": 1,
"CA": 2
},
"created_at": "2026-09-02T16:11:40.198Z",
"updated_at": "2026-09-15T14:32:08.302Z",
"warehouse_id": 3107,
"shipping_method_rates": [
{
"id": 4410,
"rate_type_min": "0.0",
"rate_type_max": "49.99",
"price": "9.99",
"country": "US",
"region": null,
"created_at": "2026-09-02T16:11:40.218Z",
"updated_at": "2026-09-02T16:11:40.218Z"
},
{
"id": 4411,
"rate_type_min": "50.0",
"rate_type_max": "999999.0",
"price": "0.0",
"country": "US",
"region": null,
"created_at": "2026-09-02T16:11:40.218Z",
"updated_at": "2026-09-02T16:11:40.218Z"
}
],
"meta": {
"request_id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f8a0b3e17",
"timestamp": "2026-09-15T14:32:08Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}