PUT
/
shipping-methods
/
{shippingMethodId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-fabric-tenant-id
string
required

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

x-fabric-channel-id
string
required

x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.

x-fabric-request-id
string

Unique request ID

Path Parameters

shippingMethodId
string
required

24-character ID generated in the response of Get shipping method endpoint - POST /shipping-methods

Body

application/json

Details to update shipping method

code
string
required

Shipping method code such as Same Day Delivery (SDD), Standard Shipping (STH), etc.

name
string
required

Shipping method name

addressType
enum<string>

Address type. For example - APO: Army Post Office or MPO: Military Post Office

Available options:
APO,
MPO,
PO,
Business,
Residence
attributes
object

User defined custom attributes. This is a placeholder for addition info (in key: value pairs)

carrier
string

Shipping carrier name

cartValue
object

Minimum and maximum values (weight, cost, etc.)

cost
number

Shipping cost given by merchant

createdBy
string

User (ID or name) who created the shipping method

currency
string
default: USD

Three-letter currency code as defined by ISO-4217

cutoffTime
integer

Time at which the current 'order day' is over. Note: If an order is delivered after the cutoff time, it's considered as delivered the next working day. For example, if the cutoff time is set to 5:00 PM, any orders delivered after this time will be considered to have been delivered the following business day.

description
string

Brief description of shipping method

dimension
object

Minimum and maximum dimensions

isDeleted
boolean

true: Shipping method is deleted. false: Shipping method isn't deleted.

maximumDays
integer

Maximum duration required to deliver an order starting from the time it's placed

minimumDays
integer

Minimum duration required to deliver an order starting from the time it's placed

region
string

State or region of delivery

taxCode
string

Tax code associated with a shipping method. Depends on the applicable tax laws and regulations in each jurisdiction.

updatedBy
string

User (ID or name) who update the shipping method

weight
object

Minimum and maximum values (weight, cost, etc.)

Response

200 - application/json

Shipping method response model

code
string
required

Shipping method code such as Same Day Delivery (SDD), Standard Shipping (STH), etc.

name
string
required

Shipping method name

addressType
enum<string>

Address type. For example - APO: Army Post Office or MPO: Military Post Office

Available options:
APO,
MPO,
PO,
Business,
Residence
attributes
object

User defined custom attributes. This is a placeholder for addition info (in key: value pairs)

carrier
string

Shipping carrier name

cartValue
object

Minimum and maximum values (weight, cost, etc.)

channelId
string

Channel ID

configuredBy
string

User (ID or name) who configured the shipping method

cost
number

Shipping cost given by merchant

createdAt
string

Time of shipping method creation (UTC)

createdBy
string

User (ID or name) who created the shipping method

currency
string
default: USD

Three-letter currency code as defined by ISO-4217

cutoffTime
integer

Time at which the current 'order day' is over. Note: If an order is delivered after the cutoff time, it's considered as delivered the next working day. For example, if the cutoff time is set to 5:00 PM, any orders delivered after this time will be considered to have been delivered the following business day.

description
string

Brief description of shipping method

dimension
object

Minimum and maximum dimensions

isDeleted
boolean

true: Shipping method is deleted. false: Shipping method isn't deleted.

maximumDays
integer

Maximum duration required to deliver an order starting from the time it's placed

minimumDays
integer

Minimum duration required to deliver an order starting from the time it's placed

region
string

State or region of delivery

shippingMethodId
string

Shipping method ID

taxCode
string

Tax code associated with a shipping method. Depends on the applicable tax laws and regulations in each jurisdiction.

updatedAt
string

Time of last update to shipping method (UTC)

updatedBy
string

User (ID or name) who update the shipping method

weight
object

Minimum and maximum values (weight, cost, etc.)