Delete CarrierService

🔒

Requires write_product access scope. More access scope

The Delete CarrierService API allows users to remove an existing carrier service. This operation can occur either when the application actively requests deletion of the carrier service or when a merchant uninstalls a shipping-related application, ensuring the associated carrier services are also deleted to prevent users from using outdated shipping configurations.

This API is especially useful for:

  1. Proactively removing carrier services that are no longer required.
  2. Ensuring accurate shipping calculations when an application is uninstalled.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

NameTypeRequiredExampleDescription
carrier_service_idstringYes"123"The unique identifier of the carrier service.

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

NameTypeExampleDescription
statusinteger0Status code indicating success or failure.
msgstring"OK"Message confirming the operation outcome.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "invalid line_item id"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

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