Vendor order-from addresses

Alternate addresses a vendor is ordered from.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
vendoridintegerReference to vendors, by id. Write either this or vendor.
vendorstring(30)Code for the referenced vendor, instead of the id.
companynamestring(100)Company name on this Order From address.
contactnamestring(100)Ordering contact at this address.
addressstring(100)Address. Stored as text, no practical length limit.
address2string(100)Second address line.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phonestring(20)Phone number of the ordering contact.
faxstring(20)Fax number purchase orders are sent to.
emailstring(50)Email address.
mailstopstring(20)Mail stop line printed with the address.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
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.
externalidstring(100)Your own key. Scoped to your company.

Endpoints#

POST/vendororderfroms/batch 207

Create many.

Requires scope vendors:write.

Parameters
NameInTypeNotes
Body array
FieldTypeDescription
idread-onlyintegerNolaPro id.
vendoridintegerReference to vendors, by id. Write either this or vendor.
vendorstring(30)Code for the referenced vendor, instead of the id.
companynamestring(100)Company name on this Order From address.
contactnamestring(100)Ordering contact at this address.
addressstring(100)Address. Stored as text, no practical length limit.
address2string(100)Second address line.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phonestring(20)Phone number of the ordering contact.
faxstring(20)Fax number purchase orders are sent to.
emailstring(50)Email address.
mailstopstring(20)Mail stop line printed with the address.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
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.
externalidstring(100)Your own key. Scoped to your company.
curl -X POST \
  'https://acme.nolapro.com/!/api/v2/vendororderfroms/batch' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '[
    {
        "vendorid": 104,
        "vendor": "Example vendor",
        "companyname": "Example companyname",
        "contactname": "Example contactname",
        "address": "Example address",
        "address2": "Example address2"
    }
]'
GET/vendororderfroms 200403

List vendor order-from addresses.

Requires scope vendors:read.

Parameters
NameInTypeNotes
vendoridquerystringRestrict to one vendorid.
cancelquerystringDefaults to false. Pass true or any.
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/vendororderfroms' \
  -H 'Authorization: Bearer $NP_TOKEN'
POST/vendororderfroms 201400

Create.

Requires scope vendors:write.

Parameters
NameInTypeNotes
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
vendoridintegerReference to vendors, by id. Write either this or vendor.
vendorstring(30)Code for the referenced vendor, instead of the id.
companynamestring(100)Company name on this Order From address.
contactnamestring(100)Ordering contact at this address.
addressstring(100)Address. Stored as text, no practical length limit.
address2string(100)Second address line.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phonestring(20)Phone number of the ordering contact.
faxstring(20)Fax number purchase orders are sent to.
emailstring(50)Email address.
mailstopstring(20)Mail stop line printed with the address.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
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.
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/vendororderfroms' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "vendorid": 104,
    "vendor": "Example vendor",
    "companyname": "Example companyname",
    "contactname": "Example contactname",
    "address": "Example address",
    "address2": "Example address2"
}'
Response 201
{
    "vendorid": 104,
    "vendor": "Example vendor",
    "companyname": "Example companyname",
    "contactname": "Example contactname",
    "address": "Example address",
    "address2": "Example address2"
}
GET/vendororderfroms/{id} 200404

Retrieve one record.

Requires scope vendors: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/vendororderfroms/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "vendorid": 104,
    "vendor": "Example vendor",
    "companyname": "Example companyname",
    "contactname": "Example contactname",
    "address": "Example address",
    "address2": "Example address2"
}
PATCH/vendororderfroms/{id} 200404

Update.

Requires scope vendors:write.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
Body
FieldTypeDescription
idread-onlyintegerNolaPro id.
vendoridintegerReference to vendors, by id. Write either this or vendor.
vendorstring(30)Code for the referenced vendor, instead of the id.
companynamestring(100)Company name on this Order From address.
contactnamestring(100)Ordering contact at this address.
addressstring(100)Address. Stored as text, no practical length limit.
address2string(100)Second address line.
citystring(50)City of the address.
statestring(20)State of the address.
zipstring(15)Postal code.
countrystring(20)Country of the address.
phonestring(20)Phone number of the ordering contact.
faxstring(20)Fax number purchase orders are sent to.
emailstring(50)Email address.
mailstopstring(20)Mail stop line printed with the address.
entrydateread-onlystringWhen the record was created.
cancelbooleanCancelled. NolaPro cancels rather than deletes, so a cancelled row is still readable.
lastchangedateread-onlystringLast modification. Drives modifiedsince.
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.
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/vendororderfroms/104' \
  -H 'Authorization: Bearer $NP_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: your-unique-key' \
  -d '{
    "vendorid": 104,
    "vendor": "Example vendor",
    "companyname": "Example companyname",
    "contactname": "Example contactname",
    "address": "Example address",
    "address2": "Example address2"
}'
Response 200
{
    "vendorid": 104,
    "vendor": "Example vendor",
    "companyname": "Example companyname",
    "contactname": "Example contactname",
    "address": "Example address",
    "address2": "Example address2"
}
DELETE/vendororderfroms/{id} 200404

Cancel.

Requires scope vendors: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/vendororderfroms/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "vendorid": 104,
    "vendor": "Example vendor",
    "companyname": "Example companyname",
    "contactname": "Example contactname",
    "address": "Example address",
    "address2": "Example address2"
}