Anchor to section titled 'undefined'

carrierServiceCreate
mutation

Requires write_shipping access scope.

Creates a new carrier service.


The input fields used to create a carrier service.


Was this section helpful?

The created carrier service.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation carrierServiceCreate($input: DeliveryCarrierServiceCreateInput!) {
  carrierServiceCreate(input: $input) {
    carrierService {
      # DeliveryCarrierService fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "input": {
    "active": true,
    "callbackUrl": "https://example.myshopify.com",
    "name": "<your-name>",
    "supportsServiceDiscovery": true
  }
}
input DeliveryCarrierServiceCreateInput {
  active: Boolean!
  callbackUrl: URL!
  name: String!
  supportsServiceDiscovery: Boolean!
}