Skip to main content

registerCarrierService

Registers a new carrier service.

Arguments:

NameTypeRequiredDescription
carrier_idIDYesID of the carrier
nameStringYesName of the carrier service
descriptionStringNoDescription of the carrier service
statusStatusEnumNoStatus of the carrier service (default is ACTIVE)

Returns the newly created carrier service.

Possible errors:

ErrorDescription
NotFoundErrorIf the carrier is not found
ValidationErrorIf the service name length is less than 3 characters
ValidationErrorIf the service already exists for the carrier
ValidationErrorIf the carrier does not belong to the brand

Return type: Types::Base::CarrierServiceType

registerCarrierService(
input: RegisterCarrierServiceInput!
): CarrierService!

Arguments

registerCarrierService.input ● RegisterCarrierServiceInput! non-null input

Parameters for RegisterCarrierService

Type

CarrierService object

This type represents a carrier service. A carrier service is a service offered by a carrier to ship orders.