POST /carriers.json
Body Required
-
carrierType string | null
Carrier type
Values are
australia_post
,canada_post
,deutsche_post
,dhl_germany
,dhl_ecommerce
,dhl_express
,fedex
,gls_fr
,lasership
,mondial_relay
,newgistics
,ontrac
,purolator
,ups
, orusps
. -
externalId string | null
External
-
name string | null
Name
-
Platform
Values are
shippo
ormanual
. Default value ismanual
.
POST
/carriers.json
curl \
-X POST http://api.example.com/v1/carriers.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"carrierType":"australia_post","externalId":"string","name":"string","platform":"manual"}'
Request example
{
"carrierType": "australia_post",
"externalId": "string",
"name": "string",
"platform": "manual"
}
Response examples (200)
{
"carrierType": "australia_post",
"createdAt": "2024-05-04T09:42:00+00:00",
"externalId": "string",
"id": 42,
"name": "string",
"platform": "manual",
"updatedAt": "2024-05-04T09:42:00+00:00"
}