registerCarrierService
Registers a new carrier service.
Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
carrier_id | ID | Yes | ID of the carrier |
name | String | Yes | Name of the carrier service |
description | String | No | Description of the carrier service |
status | StatusEnum | No | Status of the carrier service (default is ACTIVE) |
Returns the newly created carrier service.
Possible errors:
| Error | Description |
|---|---|
NotFoundError | If the carrier is not found |
ValidationError | If the service name length is less than 3 characters |
ValidationError | If the service already exists for the carrier |
ValidationError | If 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.