Shipping Option Types API Routes
Shipping option types define a group of shipping options with shared shipping characterstics. For example, you may have "Standard" and "Express" shipping option types. These API routes allow admins to manage shipping option types.
GET /admin/shipping-option-types#
List Shipping Option Types
Retrieve a list of shipping option types. The shipping option types can be filtered by fields such as id. The shipping option types can also be sorted or paginated.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields.
without prefix it will replace the entire default fields.offsetnumberOptionallimitnumberOptionalorderstringOptional-.with_deletedbooleanOptionalqstringOptionalidstring | string[]Optionallabelstring | string[]Optionalcodestring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptional$andobject[]Optional$orobject[]Optionaldescriptionstring | string[]OptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberestimate_countnumberOptionalshipping_option_typesobject[]The list of shipping option types.
shipping_option_typesobject[]400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/shipping-option-types#
Create Shipping Option Type
Create a shipping option type.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields.
without prefix it will replace the entire default fields.Request body (application/json)
labelstringdescriptionstringOptionalcodestringRequest examples
Responses
200 OK
shipping_option_typeobjectThe shipping option's details.
shipping_option_typeobject400, 401, 404, 409, 422, 500: an error response is returned.
Emitted events
shipping-option-type.created: Emitted when shipping option types are created.
GET /admin/shipping-option-types/{id}#
Get a Shipping Option Type
Retrieve a shipping option type by its ID. You can expand the shipping option type's relations or select the fields that should be returned.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields.
without prefix it will replace the entire default fields.Request examples
Responses
200 OK
shipping_option_typeobjectThe shipping option's details.
shipping_option_typeobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/shipping-option-types/{id}#
Update a Shipping Option Type
Update a shipping option type's details.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields.
without prefix it will replace the entire default fields.Request body (application/json)
codestringOptionaldescriptionstringOptionallabelstringOptionalRequest examples
Responses
200 OK
shipping_option_typeobjectThe shipping option's details.
shipping_option_typeobject400, 401, 404, 409, 422, 500: an error response is returned.
Emitted events
shipping-option-type.updated: Emitted when shipping option types are updated.
DELETE /admin/shipping-option-types/{id}#
Delete a Shipping Option Type
Delete a shipping option type.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest examples
Responses
200 OK
idstringobjectstringDefault: "shipping_option_type"
deletedboolean400, 401, 404, 409, 422, 500: an error response is returned.
Emitted events
shipping-option-type.deleted: Emitted when shipping option types are deleted.