Create single carrier service

POST https://api.ecartapi.com/api/v2/services/carriers

Request that creates a shipping carrier service.

Carrier service create properties.

AttributesMeaning
name(String)Name that will represent your service on the seller store.
url(String)URL where you will receive the live quotation requests.
settings(Object)Settings that modify the response the ecommerce will receive. See table A for more information.

TABLE A

Attributes inside the settings object

AttributesMeaning
hideDeliveryDate (String/Boolean)Default is false. Choose if the delivery expected dates will appear on the check out page.

Request Body

{"carrier"=>{"name"=>"Envia", "url"=>"envia.com", "settings"=>{"hideDeliveryDate"=>"false"}}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"success":true,"carrier":{"id":30273306698,"name":"Envia.com","active":true,"service_discovery":true,"carrier_service_type":"api","format":"json","callback_url":"https://envia.com/"}}