Create Shipping Carrier
POST/store/shipping-carrier
The "Create Shipping Carrier" API allows adding a new shipping carrier.
Request
- application/json
- Body
- Example (auto)
Bodyrequired
altIdstringrequired
Location Id or Agency Id
altTypestringrequired
Available options
locationnamestringrequired
Name of the shipping carrier
callbackUrlstringrequired
The URL endpoint that CRM needs to retrieve shipping rates. This must be a public URL.
servicesobject[]
An array of available shipping carrier services
allowsMultipleServiceSelectionboolean
The seller can choose multiple services while creating shipping rates if this is true.
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"name": "FedEx",
"callbackUrl": "https://example.com/get-shipping-rates",
"services": [
{
"name": "Priority Mail Express International",
"value": "PriorityMailExpressInternational"
}
],
"allowsMultipleServiceSelection": true
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
statusbooleanrequired
Status of api action
messagestring
Success message
dataobjectrequired
Shipping carrier data
{
"status": true,
"message": "Successfully created",
"data": {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"name": "FedEx",
"callbackUrl": "https://example.com/get-shipping-rates",
"services": [
{
"name": "Priority Mail Express International",
"value": "PriorityMailExpressInternational"
}
],
"allowsMultipleServiceSelection": true,
"_id": "655b33a82209e60b6adb87a5",
"marketplaceAppId": "655b33a82209e60b6adb87a5",
"createdAt": "2023-12-12T09:27:42.355Z",
"updatedAt": "2023-12-12T09:27:42.355Z"
}
}