Available Shipping Lines

Retrieves available shipping options for the specified order and address.

This Available Shipping Lines API endpoint will retrieves available shipping options for the specified order and address.

This API is especially useful for:

  1. calculate shipping costs
  2. get available delivery methods during checkout or order management.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
order_idstringYesUnique identifier for the order"123123123"
country_codestringYesISO 3166-1 alpha-2 country code"US"
province_codestringNoProvince or state code"CA"
zipstringNoZIP or postal code"90001"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeDescriptionExample
codestringError code"success"
messagestringError message"Operation successful"
dataobjectResponse data container-
data.shipping_linesarray of objectsList of available shipping lines-
Shipping Line Object Structure

Parameter

Type

Description

Example

delivery_method

int32

Delivery method type (1: express delivery, 2: local delivery)

1

desc

string

Description of the shipping line

"Standard shipping 3-5 business days"

id

string

Unique identifier for the shipping line

"shp_123456789"

location_id

string

Location identifier

""

name

string

Name of the shipping line

"Standard Shipping"

plan_code

string

Plan code

"standard_plan"

shipping_price

string

Shipping price (as string to preserve precision)

"9.99"

support_cod

int32

Whether cash on delivery is supported (0 or 1)

1

invalid_products

array of strings

List of invalid product identifiers

["prod_123", "prod_456"]

message

string

Reason for third-party billing failure

"Service unavailable in this area"

state

string

Business state code:
Business state code: success (successful), empty_plan (no matching plan for country/province), empty_shipping_plan (matching conditions not met), invalid_product (product removed)

"success"

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!