Shipping Profiles API Routes
A shipping profile defines a type of items that are shipping in a similar manner. For example, digital products may have a digital shipping profile.
These API routes allow admin users to manage shipping profiles.
GET /admin/shipping-profiles#
List Shipping Profiles
Retrieve a list of shipping profiles. The shipping profiles can be filtered by fields such as id. The shipping profiles 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-.idstring | string[]OptionalqstringOptionaltypestringOptionalnamestringOptionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumbershipping_profilesobject[]The list of shipping profiles.
shipping_profilesobject[]400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/shipping-profiles#
Create Shipping Profile
Create a shipping profile.
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)
namestringtypestringmetadataobjectOptionalRequest examples
Responses
200 OK
shipping_profileobjectThe shipping profile's details..
shipping_profileobject400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/shipping-profiles/{id}#
Get a Shipping Profile
Retrieve a shipping profile by its ID. You can expand the shipping profile'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_profileobjectThe shipping profile's details..
shipping_profileobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/shipping-profiles/{id}#
Update a Shipping Profile
Update a shipping profile'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)
namestringOptionaltypestringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
shipping_profileobjectThe shipping profile's details..
shipping_profileobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/shipping-profiles/{id}#
Delete a Shipping Profile
Delete a shipping profile.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest examples
Responses
200 OK
idstringobjectstringDefault: "shipping_profile"
deletedboolean400, 401, 404, 409, 422, 500: an error response is returned.