Update Carrier Service

Allows users to update the details of an existing carrier service.

🔒

Requires write_product access scope. More access scope

The Update CarrierService API allows users to update the details of an existing carrier service. This enables modifying specific attributes such as the carrier's active status, callback URL, and other properties.

This API is especially useful for:

  1. Updating carrier service configurations when details change.
  2. Modifying carrier service status (e.g., enabling or disabling).
  3. Maintaining up-to-date third-party integrations.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
carrier_service_idstringYesThe unique identifier of the carrier service to updatecs_123456

Body Parameters

ParameterTypeRequiredDescriptionExample
carrier_service.callback_urlstringYesThe endpoint URL Shoplazza calls to calculate shipping rateshttps://api.carrier.com/rates
carrier_service.activebooleanYesIndicates whether the carrier service is active. true enables the servicetrue

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!