Ship-tos

Delivery addresses on a customer. An order or invoice ships to one of these.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
defaultshipviaintegerDefault shipping method (carrier service) for orders shipping to this address.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
address1string(100)Street address.
address2string(100)Second address line.
mailstopstring(20)Mail stop line printed with the address.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phone1string(20)Primary phone.
phone1commentstring(20)Label describing what phone1 reaches (Office, Mobile, ...).
phone2string(20)Additional phone number.
phone2commentstring(20)Label describing what phone2 reaches (Office, Mobile, ...).
phone3string(20)Additional phone number.
phone3commentstring(20)Label describing what phone3 reaches (Office, Mobile, ...).
phone4string(20)Additional phone number.
phone4commentstring(20)Label describing what phone4 reaches (Office, Mobile, ...).
email1string(255)Primary email address for this location.
email2string(255)Secondary email.
email1commentstring(20)Label describing what email1 is for.
email2commentstring(20)Label describing what email2 is for.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
shipnamestring(50)Ship To name printed on shipping documents.
entry_firstnamestring(32)First name of the receiving contact, printed as the ship-to attention line.
entry_lastnamestring(32)Last name of the receiving contact, printed as the ship-to attention line.
entry_country_idintegerNumeric country id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses country.
entry_countrystring(2)The countries_iso_code_2 of the referenced countries, instead of the id. Send this or entry_country_id, not both unless they agree.
entry_zone_idintegerNumeric state/zone id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses state.
entry_zonestring(5)The zone_code of the referenced zones, instead of the id. Send this or entry_zone_id, not both unless they agree.
taxexemptidintegerReference to taxexempts, by id. Write either this or taxexempt.
taxexemptstring(32)The exemptname of the referenced taxexempts, instead of the id. Send this or taxexemptid, not both unless they agree.
salestaxnumstring(30)Sales tax registration number.
weather_cfstring(1)C or F - the temperature unit for the weather shown for this location on scheduling screens.
weather_zipstring(20)ZIP code used to look up the weather for this location.
time_zonestring(6)UTC offset of the location, e.g. -05:00.
is_defaultinteger1 when this is the customer’s default ship-to address.
shipper_numberstring(50)Shipper Number - the customer’s carrier account that freight to this address is billed to, printed on invoices with the UPS account type.
shipname2string(50)Second Ship To name line, printed under shipname.
upstypestring(5)UPS Account Type that shipper_number refers to: SHP = shipper, REC = receiver, TP = third party, CB = consignee billed. Empty when not used.
addressverifiedread-onlystring(32)Hash of the address as it stood when it last passed the AvaTax/USPS address check; when it no longer matches the current address the address counts as unverified. Maintained by the verification flow, so it cannot be written through the API.
blindshipbooleanTrue when shipments to this address are blind shipments - shipping papers do not reveal the shipper.
countystring(50)County of the address, used for county sales tax.
countyidstring(25)Tax-system county identifier used with county to pick the county tax; may be a dotted composite code.
residentialinteger1 when the address is residential. Affects carrier rating and tax address classification.
timezoneidintegerReference to timezones, by id. Write either this or timezone.
timezonestring(64)The name of the referenced timezones, instead of the id. Send this or timezoneid, not both unless they agree.
contactnameidintegerContactnameid. Id only.
salesinventorylocationidintegerReference to inventorylocations, by id. Write either this or salesinventorylocation.
salesinventorylocationstring(20)The locationcode of the referenced inventorylocations, instead of the id. Send this or salesinventorylocationid, not both unless they agree.
unincorporatedinteger1 when the address is in an unincorporated area, so no city sales tax applies.
recordtypebooleanTrue when the row is a bill-to address record. NolaPro stores bill-to and ship-to addresses in the same table.
externalidstring(100)Your own key. Scoped to your company.

Endpoints#

POST/shiptos/batch 207

Create many.

Requires scope customers:write.

Parameters
NameInTypeNotes
Body array
FieldTypeDescription
idread-onlyintegerNolaPro id.
defaultshipviaintegerDefault shipping method (carrier service) for orders shipping to this address.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
address1string(100)Street address.
address2string(100)Second address line.
mailstopstring(20)Mail stop line printed with the address.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phone1string(20)Primary phone.
phone1commentstring(20)Label describing what phone1 reaches (Office, Mobile, ...).
phone2string(20)Additional phone number.
phone2commentstring(20)Label describing what phone2 reaches (Office, Mobile, ...).
phone3string(20)Additional phone number.
phone3commentstring(20)Label describing what phone3 reaches (Office, Mobile, ...).
phone4string(20)Additional phone number.
phone4commentstring(20)Label describing what phone4 reaches (Office, Mobile, ...).
email1string(255)Primary email address for this location.
email2string(255)Secondary email.
email1commentstring(20)Label describing what email1 is for.
email2commentstring(20)Label describing what email2 is for.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
shipnamestring(50)Ship To name printed on shipping documents.
entry_firstnamestring(32)First name of the receiving contact, printed as the ship-to attention line.
entry_lastnamestring(32)Last name of the receiving contact, printed as the ship-to attention line.
entry_country_idintegerNumeric country id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses country.
entry_countrystring(2)The countries_iso_code_2 of the referenced countries, instead of the id. Send this or entry_country_id, not both unless they agree.
entry_zone_idintegerNumeric state/zone id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses state.
entry_zonestring(5)The zone_code of the referenced zones, instead of the id. Send this or entry_zone_id, not both unless they agree.
taxexemptidintegerReference to taxexempts, by id. Write either this or taxexempt.
taxexemptstring(32)The exemptname of the referenced taxexempts, instead of the id. Send this or taxexemptid, not both unless they agree.
salestaxnumstring(30)Sales tax registration number.
weather_cfstring(1)C or F - the temperature unit for the weather shown for this location on scheduling screens.
weather_zipstring(20)ZIP code used to look up the weather for this location.
time_zonestring(6)UTC offset of the location, e.g. -05:00.
is_defaultinteger1 when this is the customer’s default ship-to address.
shipper_numberstring(50)Shipper Number - the customer’s carrier account that freight to this address is billed to, printed on invoices with the UPS account type.
shipname2string(50)Second Ship To name line, printed under shipname.
upstypestring(5)UPS Account Type that shipper_number refers to: SHP = shipper, REC = receiver, TP = third party, CB = consignee billed. Empty when not used.
addressverifiedread-onlystring(32)Hash of the address as it stood when it last passed the AvaTax/USPS address check; when it no longer matches the current address the address counts as unverified. Maintained by the verification flow, so it cannot be written through the API.
blindshipbooleanTrue when shipments to this address are blind shipments - shipping papers do not reveal the shipper.
countystring(50)County of the address, used for county sales tax.
countyidstring(25)Tax-system county identifier used with county to pick the county tax; may be a dotted composite code.
residentialinteger1 when the address is residential. Affects carrier rating and tax address classification.
timezoneidintegerReference to timezones, by id. Write either this or timezone.
timezonestring(64)The name of the referenced timezones, instead of the id. Send this or timezoneid, not both unless they agree.
contactnameidintegerContactnameid. Id only.
salesinventorylocationidintegerReference to inventorylocations, by id. Write either this or salesinventorylocation.
salesinventorylocationstring(20)The locationcode of the referenced inventorylocations, instead of the id. Send this or salesinventorylocationid, not both unless they agree.
unincorporatedinteger1 when the address is in an unincorporated area, so no city sales tax applies.
recordtypebooleanTrue when the row is a bill-to address record. NolaPro stores bill-to and ship-to addresses in the same table.
externalidstring(100)Your own key. Scoped to your company.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/shiptos/batch' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '[
    {
        "defaultshipvia": 1,
        "address1": "Example address1",
        "address2": "Example address2",
        "mailstop": "Example mailstop",
        "city": "Example city",
        "state": "Example state"
    }
]'
GET/shiptos 200403

List ship-tos.

Requires scope customers:read.

Parameters
NameInTypeNotes
customeridquerystringRestrict to one customerid.
cancelquerystringDefaults to false. Pass true or any.
modifiedsincequerystringRFC 3339 UTC timestamp. Returns only records changed since then, including cancelled ones - so cancel defaults to any rather than false when this is used. The response carries _meta.synced_through; store it and send it back next time.
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/shiptos' \
  -H 'Authorization: Bearer $NP_TOKEN'
POST/shiptos 201400

Create.

Requires scope customers:write.

Parameters
NameInTypeNotes
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
defaultshipviaintegerDefault shipping method (carrier service) for orders shipping to this address.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
address1string(100)Street address.
address2string(100)Second address line.
mailstopstring(20)Mail stop line printed with the address.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phone1string(20)Primary phone.
phone1commentstring(20)Label describing what phone1 reaches (Office, Mobile, ...).
phone2string(20)Additional phone number.
phone2commentstring(20)Label describing what phone2 reaches (Office, Mobile, ...).
phone3string(20)Additional phone number.
phone3commentstring(20)Label describing what phone3 reaches (Office, Mobile, ...).
phone4string(20)Additional phone number.
phone4commentstring(20)Label describing what phone4 reaches (Office, Mobile, ...).
email1string(255)Primary email address for this location.
email2string(255)Secondary email.
email1commentstring(20)Label describing what email1 is for.
email2commentstring(20)Label describing what email2 is for.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
shipnamestring(50)Ship To name printed on shipping documents.
entry_firstnamestring(32)First name of the receiving contact, printed as the ship-to attention line.
entry_lastnamestring(32)Last name of the receiving contact, printed as the ship-to attention line.
entry_country_idintegerNumeric country id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses country.
entry_countrystring(2)The countries_iso_code_2 of the referenced countries, instead of the id. Send this or entry_country_id, not both unless they agree.
entry_zone_idintegerNumeric state/zone id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses state.
entry_zonestring(5)The zone_code of the referenced zones, instead of the id. Send this or entry_zone_id, not both unless they agree.
taxexemptidintegerReference to taxexempts, by id. Write either this or taxexempt.
taxexemptstring(32)The exemptname of the referenced taxexempts, instead of the id. Send this or taxexemptid, not both unless they agree.
salestaxnumstring(30)Sales tax registration number.
weather_cfstring(1)C or F - the temperature unit for the weather shown for this location on scheduling screens.
weather_zipstring(20)ZIP code used to look up the weather for this location.
time_zonestring(6)UTC offset of the location, e.g. -05:00.
is_defaultinteger1 when this is the customer’s default ship-to address.
shipper_numberstring(50)Shipper Number - the customer’s carrier account that freight to this address is billed to, printed on invoices with the UPS account type.
shipname2string(50)Second Ship To name line, printed under shipname.
upstypestring(5)UPS Account Type that shipper_number refers to: SHP = shipper, REC = receiver, TP = third party, CB = consignee billed. Empty when not used.
addressverifiedread-onlystring(32)Hash of the address as it stood when it last passed the AvaTax/USPS address check; when it no longer matches the current address the address counts as unverified. Maintained by the verification flow, so it cannot be written through the API.
blindshipbooleanTrue when shipments to this address are blind shipments - shipping papers do not reveal the shipper.
countystring(50)County of the address, used for county sales tax.
countyidstring(25)Tax-system county identifier used with county to pick the county tax; may be a dotted composite code.
residentialinteger1 when the address is residential. Affects carrier rating and tax address classification.
timezoneidintegerReference to timezones, by id. Write either this or timezone.
timezonestring(64)The name of the referenced timezones, instead of the id. Send this or timezoneid, not both unless they agree.
contactnameidintegerContactnameid. Id only.
salesinventorylocationidintegerReference to inventorylocations, by id. Write either this or salesinventorylocation.
salesinventorylocationstring(20)The locationcode of the referenced inventorylocations, instead of the id. Send this or salesinventorylocationid, not both unless they agree.
unincorporatedinteger1 when the address is in an unincorporated area, so no city sales tax applies.
recordtypebooleanTrue when the row is a bill-to address record. NolaPro stores bill-to and ship-to addresses in the same table.
externalidstring(100)Your own key. Scoped to your company.
When it fails
StatusCodeMeaning
400invalid_requestA required field was missing.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/shiptos' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "defaultshipvia": 1,
    "address1": "Example address1",
    "address2": "Example address2",
    "mailstop": "Example mailstop",
    "city": "Example city",
    "state": "Example state"
}'
Response 201
{
    "defaultshipvia": 1,
    "address1": "Example address1",
    "address2": "Example address2",
    "mailstop": "Example mailstop",
    "city": "Example city",
    "state": "Example state"
}
GET/shiptos/{id} 200404

Retrieve one record.

Requires scope customers: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/shiptos/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "defaultshipvia": 1,
    "address1": "Example address1",
    "address2": "Example address2",
    "mailstop": "Example mailstop",
    "city": "Example city",
    "state": "Example state"
}
PATCH/shiptos/{id} 200404

Update.

Requires scope customers:write.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
defaultshipviaintegerDefault shipping method (carrier service) for orders shipping to this address.
cancelbooleanCancelled. Always a boolean on the wire, whatever integer width the column uses (D23).
entrydateread-onlystringWhen the record was created.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
address1string(100)Street address.
address2string(100)Second address line.
mailstopstring(20)Mail stop line printed with the address.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phone1string(20)Primary phone.
phone1commentstring(20)Label describing what phone1 reaches (Office, Mobile, ...).
phone2string(20)Additional phone number.
phone2commentstring(20)Label describing what phone2 reaches (Office, Mobile, ...).
phone3string(20)Additional phone number.
phone3commentstring(20)Label describing what phone3 reaches (Office, Mobile, ...).
phone4string(20)Additional phone number.
phone4commentstring(20)Label describing what phone4 reaches (Office, Mobile, ...).
email1string(255)Primary email address for this location.
email2string(255)Secondary email.
email1commentstring(20)Label describing what email1 is for.
email2commentstring(20)Label describing what email2 is for.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
shipnamestring(50)Ship To name printed on shipping documents.
entry_firstnamestring(32)First name of the receiving contact, printed as the ship-to attention line.
entry_lastnamestring(32)Last name of the receiving contact, printed as the ship-to attention line.
entry_country_idintegerNumeric country id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses country.
entry_countrystring(2)The countries_iso_code_2 of the referenced countries, instead of the id. Send this or entry_country_id, not both unless they agree.
entry_zone_idintegerNumeric state/zone id in the osCommerce-style cart tables. Kept for shopping-cart integrations; the address itself uses state.
entry_zonestring(5)The zone_code of the referenced zones, instead of the id. Send this or entry_zone_id, not both unless they agree.
taxexemptidintegerReference to taxexempts, by id. Write either this or taxexempt.
taxexemptstring(32)The exemptname of the referenced taxexempts, instead of the id. Send this or taxexemptid, not both unless they agree.
salestaxnumstring(30)Sales tax registration number.
weather_cfstring(1)C or F - the temperature unit for the weather shown for this location on scheduling screens.
weather_zipstring(20)ZIP code used to look up the weather for this location.
time_zonestring(6)UTC offset of the location, e.g. -05:00.
is_defaultinteger1 when this is the customer’s default ship-to address.
shipper_numberstring(50)Shipper Number - the customer’s carrier account that freight to this address is billed to, printed on invoices with the UPS account type.
shipname2string(50)Second Ship To name line, printed under shipname.
upstypestring(5)UPS Account Type that shipper_number refers to: SHP = shipper, REC = receiver, TP = third party, CB = consignee billed. Empty when not used.
addressverifiedread-onlystring(32)Hash of the address as it stood when it last passed the AvaTax/USPS address check; when it no longer matches the current address the address counts as unverified. Maintained by the verification flow, so it cannot be written through the API.
blindshipbooleanTrue when shipments to this address are blind shipments - shipping papers do not reveal the shipper.
countystring(50)County of the address, used for county sales tax.
countyidstring(25)Tax-system county identifier used with county to pick the county tax; may be a dotted composite code.
residentialinteger1 when the address is residential. Affects carrier rating and tax address classification.
timezoneidintegerReference to timezones, by id. Write either this or timezone.
timezonestring(64)The name of the referenced timezones, instead of the id. Send this or timezoneid, not both unless they agree.
contactnameidintegerContactnameid. Id only.
salesinventorylocationidintegerReference to inventorylocations, by id. Write either this or salesinventorylocation.
salesinventorylocationstring(20)The locationcode of the referenced inventorylocations, instead of the id. Send this or salesinventorylocationid, not both unless they agree.
unincorporatedinteger1 when the address is in an unincorporated area, so no city sales tax applies.
recordtypebooleanTrue when the row is a bill-to address record. NolaPro stores bill-to and ship-to addresses in the same table.
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/shiptos/104' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "defaultshipvia": 1,
    "address1": "Example address1",
    "address2": "Example address2",
    "mailstop": "Example mailstop",
    "city": "Example city",
    "state": "Example state"
}'
Response 200
{
    "defaultshipvia": 1,
    "address1": "Example address1",
    "address2": "Example address2",
    "mailstop": "Example mailstop",
    "city": "Example city",
    "state": "Example state"
}
DELETE/shiptos/{id} 200404

Cancel.

Requires scope customers:cancel.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl -X DELETE \
  'https://acme.nolapro.com/!/api/v2/shiptos/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "defaultshipvia": 1,
    "address1": "Example address1",
    "address2": "Example address2",
    "mailstop": "Example mailstop",
    "city": "Example city",
    "state": "Example state"
}