Create Carrier Service

Enables users to create a new carrier service for calculating shipping rates.

🔒

Requires write_product access scope. More access scope

The Create CarrierService API enables users to create a new carrier service for calculating shipping rates. It sends a request to the internal service layer to manage and register a new carrier service within Shoplazza's system.

This API is especially useful for:

  1. Registering custom carrier services for store-specific shipping requirements.
  2. Managing third-party integrations for shipping rate calculations.
  3. Simplifying the carrier service lifecycle management with internal tools.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
carrier_serviceobjectYesThe carrier service configuration object{...}
carrier_service. namestringYesCarrier Service Name (used as both English and Chinese names internally)DHL Express
carrier_service. callback_urlstringYesThe endpoint URL Shoplazza calls to calculate shipping rateshttps://api. carrier.com/rates
carrier_service. carrier_codestringYesUnique code representing the carrier service (e.g., "dhl")dhl
carrier_service. activebooleanNoIndicates whether the carrier service is active. true enables the servicetrue
carrier_service. logostringNoURL of the carrier service's logohttps://example.com /dhl-logo.png
carrier_service. short_descstringNoBrief description of the carrier serviceFast international shipping

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring200Error code (200 indicates success)
messagestringSuccessError message
dataobject{...}Contains the carrier services data
data.carrier_serviceobjectcarrier service object

Carrier Service Object Structure

ParameterTypeExampleDescription
idstringcs_123456Unique identifier for the carrier service
namestringFedEx ExpressName of the carrier service
activebooleantrueWhether the carrier service is active
callback_urlstringhttps://carrier.example.com/callbackURL for carrier service callbacks
scopesstringread_writePermissions scope for the carrier service
carrier_service_codestringfedex_expressCode identifier for the carrier service
logostringhttps://example.com/logo.pngURL to the carrier service logo
short_descstringFast domestic shippingBrief description of the carrier service
created_atstring2023-01-15T10:00:00ZTimestamp when the carrier service was created
updated_atstring2023-06-20T15:30:00ZTimestamp when the carrier service was last updated

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!