Skip to main content
POST
/
v1
/
shipping_rates
Create
curl --request POST \
  --url https://{defaultHost}/v1/shipping_rates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "shipping_rate": {
    "amount": 650,
    "rate_type": "amount",
    "shipping_zone_id": "a27ddd45-378a-409d-8fd2-c697792418cd",
    "shipping_method_id": "00f4639d-2d10-4c18-a70b-f8245cb711fe",
    "min_amount": 0,
    "max_amount": 5000
  }
}
'
{
  "id": "51193a62-b47a-4225-9e36-40d71df06002",
  "object": "shipping_rate",
  "amount": 650,
  "currency": "usd",
  "max_amount": 5000,
  "min_amount": 0,
  "max_weight": null,
  "min_weight": 0,
  "rate_type": "amount",
  "weight_unit": "lb",
  "shipping_method": "00f4639d-2d10-4c18-a70b-f8245cb711fe",
  "shipping_zone": "a27ddd45-378a-409d-8fd2-c697792418cd",
  "created_at": 1776176582,
  "updated_at": 1776176582
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
shipping_rate
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

amount
integer

The amount in cents to be charged, represented as a whole integer. For example 9900 is equivalent to $99.

rate_type
string

The calculation strategy for this shipping rate – one of amount, flat, or weight. If amount, this shipping rate will be applicable to checkouts that have a subtotal_amount within the min/max amount range. If flat, this rate will be applicable to all line items. If weight, this rate will be applicable to line items that have a combined weight within the min/max weight range.

min_amount
integer

The minimum subtotal_amount of a checkout for this rate to apply.

max_amount
integer | null

The maximum subtotal_amount of a checkout for this rate to apply.

min_weight
number

The minimum combined weight of a line item for this rate to apply.

max_weight
number | null

The maximum combined weight of a line item for this rate to apply.

weight_unit
string

The weight unit for this shipping rate – one of lb, oz, kg, g.

metadata
object

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.

currency
string

Three-letter ISO currency code, in lowercase. This value will match the Account currency.

shipping_zone

Expandable – The associated shipping zone ID.

shipping_method

Expandable – The associated shipping method ID.