Carrier services

Service levels offered by a carrier.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
carrieridintegerReference to carriers, by id. Write either this or carrier.
carrierstring(100)Code for the referenced carrier, instead of the id.
descriptionstring(50)Name of the shipping method shown on documents and pickers.
abbreviationstring(50)Short abbreviation of the shipping method.
sortorderintegerDisplay order. Lower sorts first.
not_on_b2binteger1 hides the shipping method from the B2B portal.
onquoteinteger1 hides the shipping method from quote entry (the screen option is named Do Not Show On Quote Entry).
box1_chargemoneystring(5dp)Stored as decimal(19,5).
box_addlmoneystring(5dp)Stored as decimal(19,5).
require_shippernuminteger1 requires the customer’s shipper (carrier account) number when this method is chosen.
showvalueinteger1 prints the order value on the order ticket for this method.
codestring(10)Carrier’s own service code, used when rating and labeling through the carrier API.
methodmarkupflatmoneystring(4dp)Stored as decimal(12,4).
saturdaydeliverystring(1)Y when the service delivers on Saturday.
allowonpointofsaleordersbooleanTrue offers the shipping method on Point of Sale orders.
externalidstring(100)Your own key. Scoped to your company.

Endpoints#

POST/carrierservices/batch 207

Create many.

Requires scope setup:write.

Parameters
NameInTypeNotes
Body array
FieldTypeDescription
descriptionstring(50)Name of the shipping method shown on documents and pickers.
abbreviationstring(50)Short abbreviation of the shipping method.
sortorderintegerDisplay order. Lower sorts first.
not_on_b2binteger1 hides the shipping method from the B2B portal.
onquoteinteger1 hides the shipping method from quote entry (the screen option is named Do Not Show On Quote Entry).
box1_chargemoneystring(5dp)Stored as decimal(19,5).
box_addlmoneystring(5dp)Stored as decimal(19,5).
require_shippernuminteger1 requires the customer’s shipper (carrier account) number when this method is chosen.
showvalueinteger1 prints the order value on the order ticket for this method.
codestring(10)Carrier’s own service code, used when rating and labeling through the carrier API.
methodmarkupflatmoneystring(4dp)Stored as decimal(12,4).
saturdaydeliverystring(1)Y when the service delivers on Saturday.
allowonpointofsaleordersbooleanTrue offers the shipping method on Point of Sale orders.
externalidstring(100)Your own key. Scoped to your company.
carrieridintegerReference to carriers, by id. Write either this or carrier.
carrierstring(100)Code for the referenced carrier, instead of the id.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/carrierservices/batch' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '[
    {
        "description": "Example description",
        "abbreviation": "Example abbreviation",
        "sortorder": 1,
        "not_on_b2b": 1,
        "onquote": 1,
        "box1_charge": "125.0000"
    }
]'
GET/carrierservices 200403

List carrier services.

Requires scope setup:read.

Parameters
NameInTypeNotes
codequerystringcode. Partial match, case-insensitive.
descriptionquerystringPartial match, case insensitive.
externalidquerystringExact match on your own key.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks read scope.
curl \
  'https://acme.nolapro.com/!/api/v2/carrierservices' \
  -H 'Authorization: Bearer $NP_TOKEN'
POST/carrierservices 201400

Create.

Requires scope setup:write.

Parameters
NameInTypeNotes
Body
FieldTypeDescription
descriptionstring(50)Name of the shipping method shown on documents and pickers.
abbreviationstring(50)Short abbreviation of the shipping method.
sortorderintegerDisplay order. Lower sorts first.
not_on_b2binteger1 hides the shipping method from the B2B portal.
onquoteinteger1 hides the shipping method from quote entry (the screen option is named Do Not Show On Quote Entry).
box1_chargemoneystring(5dp)Stored as decimal(19,5).
box_addlmoneystring(5dp)Stored as decimal(19,5).
require_shippernuminteger1 requires the customer’s shipper (carrier account) number when this method is chosen.
showvalueinteger1 prints the order value on the order ticket for this method.
codestring(10)Carrier’s own service code, used when rating and labeling through the carrier API.
methodmarkupflatmoneystring(4dp)Stored as decimal(12,4).
saturdaydeliverystring(1)Y when the service delivers on Saturday.
allowonpointofsaleordersbooleanTrue offers the shipping method on Point of Sale orders.
externalidstring(100)Your own key. Scoped to your company.
carrieridintegerReference to carriers, by id. Write either this or carrier.
carrierstring(100)Code for the referenced carrier, instead of the id.
When it fails
StatusCodeMeaning
400invalid_requestA required field was missing.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/carrierservices' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "description": "Example description",
    "abbreviation": "Example abbreviation",
    "sortorder": 1,
    "not_on_b2b": 1,
    "onquote": 1,
    "box1_charge": "125.0000"
}'
Response 201
{
    "carrierid": 104,
    "carrier": "Example carrier",
    "description": "Example description",
    "abbreviation": "Example abbreviation",
    "sortorder": 1,
    "not_on_b2b": 1
}
GET/carrierservices/{id} 200404

Retrieve one record.

Requires scope setup:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/carrierservices/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "carrierid": 104,
    "carrier": "Example carrier",
    "description": "Example description",
    "abbreviation": "Example abbreviation",
    "sortorder": 1,
    "not_on_b2b": 1
}
PATCH/carrierservices/{id} 200404

Update.

Requires scope setup:write.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
carrieridintegerReference to carriers, by id. Write either this or carrier.
carrierstring(100)Code for the referenced carrier, instead of the id.
descriptionstring(50)Name of the shipping method shown on documents and pickers.
abbreviationstring(50)Short abbreviation of the shipping method.
sortorderintegerDisplay order. Lower sorts first.
not_on_b2binteger1 hides the shipping method from the B2B portal.
onquoteinteger1 hides the shipping method from quote entry (the screen option is named Do Not Show On Quote Entry).
box1_chargemoneystring(5dp)Stored as decimal(19,5).
box_addlmoneystring(5dp)Stored as decimal(19,5).
require_shippernuminteger1 requires the customer’s shipper (carrier account) number when this method is chosen.
showvalueinteger1 prints the order value on the order ticket for this method.
codestring(10)Carrier’s own service code, used when rating and labeling through the carrier API.
methodmarkupflatmoneystring(4dp)Stored as decimal(12,4).
saturdaydeliverystring(1)Y when the service delivers on Saturday.
allowonpointofsaleordersbooleanTrue offers the shipping method on Point of Sale orders.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X PATCH \
  'https://acme.nolapro.com/!/api/v2/carrierservices/104' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "carrierid": 104,
    "carrier": "Example carrier",
    "description": "Example description",
    "abbreviation": "Example abbreviation",
    "sortorder": 1,
    "not_on_b2b": 1
}'
Response 200
{
    "carrierid": 104,
    "carrier": "Example carrier",
    "description": "Example description",
    "abbreviation": "Example abbreviation",
    "sortorder": 1,
    "not_on_b2b": 1
}