Account API
Access your account information, including account hierarchies, billing and shipping addresses, contacts and other key customer attributes. The Account API lets you update jobsite contacts, so key team members receive pertinent delivery updates.
The Search Accounts endpoint returns sold-to, bill-to, and ship-to account numbers, names, status, and other key account information. With this endpoint, you can search for account details using various parameters, such as branch, account number, account name, etc. The request may also specify pagination options.
Account API
Search Accounts
POST /search/accounts
Search sold-to, bill-to, and ship-to accounts
Sandbox
Production
Authorization
OAuth 2.0 server or user token with the account.read scope.
Request
Name
Type
Description
filters
array
An array that includes all filter conditions used to search for accounts. Note that up to two filter objects can be included and joined by the “and” joinCondition.
filters[].key
string
This defines the type of filter being applied (e.g., “accountType”, “branches.number”, “name”, “address.state”, “storefront”).
To select only ABC Supply storefront accounts, please include a storefront filter object (see Example Request below).
filters[].condition
enum
The filter condition for the search (e.g. “equals”, “contains”).
filters[].values
string
The list of values for the search filter. Note that only one value is supported at this time.
filters[].joinCondition
enum
The join condition used when multiple filter objects are given (e.g., “and”). Note that only “and” is supported at this time.
pagination
object
Object containing the pagination details for the response.
pagination.itemsPerPage
integer
The number of items to return in the response.
pagination.pageNumber
integer
The page number to return in the response.
Example Request
Search Accounts request for WI state address and ABC Supply storefronts
POST /api/account/v1/search/accounts HTTP/1.1
Host: partner.abcsupply.com
Authorization: Bearer <TOKEN>
{
"filters": [
{
"key": "address.state",
"condition": "equals",
"values": ["WI"],
"joinCondition": "and"
},
{
"key": "storefront",
"condition": "equals",
"values": ["abc"]
}
],
"pagination": {
"itemsPerPage": 20,
"pageNumber": 1
}
}
Response
Example Response
Search Accounts response for for WI state address and ABC Supply storefronts
{
"pagination": {
"itemsPerPage": 1,
"pageNumber": 1,
"totalPages": 101,
"totalItems": 101
},
"soldTos": [
{
"name": "\"ER\" EASY ROOFING",
"number": "116660",
"status": "active",
"address": {
"line1": "123 MAIN ST",
"line2": "",
"line3": "",
"city": "MADISON",
"state": "WI",
"postal": "53719",
"country": "USA"
},
"branches": [
{
"number": "18",
"name": "ABC Supply test- Madison, WI",
"storefront": "abc",
"status": "active",
"type": "Branch",
"links": {
"self": "https://partners-sb.abcsupply.com/api/location/v1/branches/18"
}
}
]
}
],
"billTos": [
{
"name": "\"ER\" EASY ROOFING",
"number": "116660",
"status": "active",
"address": {
"line1": "123 MAIN ST",
"line2": "",
"line3": "",
"city": "MADISON",
"state": "WI",
"postal": "53719",
"country": "USA"
},
"billingInstructions": [
{
"code": "N",
"description": "Do not print on the invoice"
}
],
"branches": [
{
"number": "18",
"name": "ABC Supply test- Madison, WI",
"storefront": "abc",
"status": "active",
"type": "Branch",
"links": {
"self": "https://partners-sb.abcsupply.com/api/location/v1/branches/18"
}
}
],
"soldTo": {
"number": "116660",
"name": "\"ER\" EASY ROOFING",
"status": "active",
"links": {
"self": "https://partners-sb.abcsupply.com/api/accounts/v1/soldtos/116660"
}
}
}
],
"shipTos": [
{
"name": "\"ER\" EASY ROOFING",
"number": "1163698",
"status": "active",
"address": {
"line1": "123 JOB ST",
"line2": "",
"line3": "",
"city": "MADISON",
"state": "WI",
"postal": "53719",
"country": "USA"
},
"contacts": {
"links": {
"self": "https://partners.abcsupply.com/mock/account/v1/shiptos/1163698/contacts"
}
},
"paymentTerms": {
"code": "COD",
"description": "CASH ON DELIVER"
},
"tax": {
"exemptCode": "T",
"taxQualifiers": [
{
"locationTypeCode": "STATE",
"locationCode": "WI"
}
]
},
"billTo": {
"number": "116660",
"name": "\"ER\" EASY ROOFING",
"status": "active",
"links": {
"self": "https://partners-sb.abcsupply.com/api/accounts/v1/billtos/116660"
}
},
"soldTo": {
"number": "116660",
"name": "\"ER\" EASY ROOFING",
"status": "active",
"links": {
"self": "https://partners-sb.abcsupply.com/api/accounts/v1/soldtos/116660"
}
},
"branches": [
{
"number": "18",
"name": "ABC Supply test- Madison, WI",
"storefront": "abc",
"status": "active",
"type": "Branch",
"links": {
"self": "https://partners-sb.abcsupply.com/api/location/v1/branches/18"
}
}
]
}
]
}
Name
Type
Description
pagination
object
The object describing the pagination of the response.
pagination.itemsPerPage
integer
The number of items per page in the response.
pagination.pageNumber
integer
The current page number of the response.
pagination.totalPages
integer
The total number of pages in the response.
pagination.totaItems
integer
The total number of items in the response.
soldTos
array
The list of Sold-To accounts matching the search criteria.
soldTos[].name
string
The name of the Sold-to account.
soldTos[].number
string
The unique identification number for the Sold-to account.
soldTos[].status
string
The current status of the Sold-to account (e.g., “active”, “inactive”).
soldTo[].address
object
The object describing the address of the Sold-to account.
soldTo[].address.line1
string
The first line of the Sold-to account address, usually including the street number and name.
soldTo[].address.line2
string
The second line of the Sold-to account address, which may include additional information like building numbers.
soldTo[].address.line3
string
The third line of the Sold-to account address, often used for more specific location information or additional directions.
soldTo[].address.city
string
The city of the Sold-to account address.
soldTo[].address.state
string
The state of the Sold-to account address.
soldTo[].address.postal
string
The zip code of the Sold-to account address.
soldTo[].address.country
string
The country of the Sold-to account address.
soldTos[].branches
array
The list of information about the Sold-to ABC Supply branches.
soldTos[].branches[].number
string
The ABC Supply branch number.
soldTos[].branches[].name
string
The name of the branch.
soldTos[].branches[].storefront
string
The physical storefront or location of the branch (e.g., “ABC”).
soldTos[].branches[].status
string
The current operational status of the branch (e.g., “active”, “inactive”).
soldTos[].branches[].type
string
The type of the branch (e.g., “Branch”).
soldTos[].branches[].links
object
The object describing the link to the ABC Supply branch details.
soldTos[].branches[].links.self
string
The URL of the self-referencing link to the branch details.
Name
Type
Description
billTos
array
The list of Bill-To accounts matching the search criteria.
billTos[].name
string
The name of the Bill-to account.
billTos[].number
string
The unique identification number for the Bill-to account.
billTos[].status
string
The current status of the Bill-to account (e.g., “active”, “inactive”).
billTos[].address
object
The object describing the address of the Bill-to account
billTos[].address.line1
string
The first line of the Bill-to account address, usually including the street number and name.
billTos[].address.line2
string
The second line of the Bill-to account address, which may include additional information like building numbers.
billTos[].address.line3
string
The third line of the Bill-to account address, often used for more specific location information or additional directions.
billTos[].address.city
string
The city of the Bill-to account address.
billTos[].address.state
string
The state of the Bill-to account address.
billTos[].address.postal
string
The zip code of the Bill-to account address.
billTos[].address.country
string
The country of the Bill-to account address.
billTos[].billingInstruction
array
The object describing the billing instructions for the account.
billTos[].billingInstruction[].code
string
The code for the billing instruction.
billTos[].billingInstruction[].description
string
The description of the billing instruction.
billTos[].branches
array
The list of information about the Bill-to ABC Supply branches.
billTos[].branches[].number
string
The ABC Supply branch number.
billTos[].branches[].name
string
The name of the branch.
billTos[].branches[].storefront
string
The physical storefront or location of the branch (e.g., “ABC”).
billTos[].branches[].status
string
The current operational status of the branch (e.g., “active”, “inactive”).
billTos[].branches[].type
string
The type of the branch (e.g., “Branch”).
billTos[].branches[].links
object
The object describing the link to the ABC Supply branch details.
billTos[].branches[].links.self
string
The URL of the self-referencing link to the branch details.
billTos[].soldTo
object
The object describing the Sold-to account information related to the Bill-to account.
billTos[].soldTo.number
string
The unique identification number for the Sold-to account.
billTos[].soldTo.name
string
The name of the Sold-to account.
billTos[].soldTo.status
string
The current status of the Sold-to account (e.g., “active”, “inactive”).
billTos[].soldTo.links
object
The object describing the link to the Sold-to account details.
billTos[].soldTo.links.self
string
The URL of the self-referencing link to the Sold-to account details.
Name
Type
Description
shipTos
array
The list of Ship-To accounts matching the search criteria.
shipTos[].name
string
The name of the Ship-to account.
shipTos[].number
string
The unique identification number for the Ship-to account.
shipTos[].status
string
The current status of the Ship-to account (e.g., “active”, “inactive”).
shipTos[].address
object
The object describing the address of the Ship-to account.
shipTos[].address.line1
string
The first line of the Ship-to account address, usually including the street number and name.
shipTos[].address.line2
string
The second line of the Ship-to account address, which may include additional information like building numbers.
shipTos[].address.line3
string
The third line of the Ship-to account address, often used for more specific location information or additional directions.
shipTos[].address.city
string
The city of the Ship-to account address.
shipTos[].address.state
string
The state of the Ship-to account address.
shipTos[].address.postal
string
The zip code of the Ship-to account address.
shipTos[].address.country
string
The country of the Ship-to account address.
shipTos[].contacts
object
The object describing the contact information for the Ship-to account.
shipTos[].contacts.links
object
The object describing the self-referencing link to the Ship-to account contact details.
shipTos[].contacts.links.self
string
The URL of the self-referencing link to the Ship-to account contact details.
shipTos[].branches
array
The list of information about the Ship-to ABC Supply branches.
shipTos[].branches[].number
string
The ABC Supply branch number.
shipTos[].branches[].name
string
The name of the branch.
shipTos[].branches[].storefront
string
The physical storefront or location of the branch (e.g., “ABC”).
shipTos[].branches[].status
string
The current operational status of the branch (e.g., “active”, “inactive”).
shipTos[].branches[].type
string
The type of the branch (e.g., “Branch”).
shipTos[].branches[].links
object
The object describing the link to the branch details.
shipTos[].branches[].links.self
string
The URL of the self-referencing link to the branch details.
shipTos[].paymentTerms
object
The object describing the payment terms for the Ship-to account.
Payment Terms information will be available in a future release of the ABC Supply API.
shipTos[].paymentTerms.code
string
The payment term code (e.g., “COD”).
Payment Terms information will be available in a future release of the ABC Supply API.
shipTos[].paymentTerms.description
string
The full description of the payment term (e.g., “CASH ON DELIVER”).
Payment Terms information will be available in a future release of the ABC Supply API.
shipTos[].tax
object
The object describing the tax exemption and qualifications for the Ship-to account.
Tax information will be available in a future release of the ABC Supply API.
shipTos[].tax.exemptCode
string
The tax exemption code (e.g., “T”).
Tax information will be available in a future release of the ABC Supply API.
shipTos[].tax.taxQualifiers
array
The list of the tax qualifiers for the Ship-to account.
Tax information will be available in a future release of the ABC Supply API.
shipTos[].tax.taxQualifiers[].locationTypeCode
string
The location type code for the tax qualifier (e.g., “STATE”).
Tax information will be available in a future release of the ABC Supply API.
shipTos[].tax.taxQualifiers[].locationCode
string
The location code for the tax qualifier (e.g., “WV”).
Tax information will be available in a future release of the ABC Supply API.
shipTos[].billTo
object
The object describing the Bill-to account information of the Ship-to account.
shipTos[].billTo.number
string
The unique identification number for the Bill-to account.
shipTos[].billTo.name
string
The name of the Bill-to account.
shipTos[].billTo.status
string
The current status of the Bill-to account (e.g., “active”, “inactive”).
shipTos[].billTo.links
object
The object describing the link to the Bill-to account details.
shipTos[].billTo.links.self
string
The URL of the self-referencing link to the Bill-to account details.
shipTos[].soldTo
object
The object describing the Sold-to account information of the Ship-to account.
shipTos[].soldTo.number
string
The unique identification number for the Sold-to account.
shipTos[].soldTo.name
string
The name of the Sold-to account.
shipTos[].soldTo.status
string
The current status of the Sold-to account (e.g. “active”, “inactive”).
shipTos[].soldTo.links
object
The object describing the link to the Sold-to account details.
shipTos[].soldTo.links.self
string
The URL of the self-referencing link to the Sold-to account details.
HTTP Status Codes
Code
Status
Description
200
OK
The request and response were successfully sent.
400
Bad Request
Confirm the request body and parameters are formatted correctly.
403
Forbidden
The user account does not have access to view data based on provided request parameters.
500
Internal Server Error
The server was unable to process the request. Confirm request parameters are valid.
502
Bad Gateway
The server was unable to complete the request due to service errors.
Additional Examples
Example Request
Search Accounts request for Ship-To accounts and ABC Supply storefronts
POST /api/account/v1/search/accounts HTTP/1.1
Host: partners.abcsupply.com
Authorization: Bearer <TOKEN>
{
"filters": [
{
"key": "accountType",
"condition": "equals",
"values": ["Ship-to"],
"joinCondition": "and"
},
{
"key": "storefront",
"condition": "equals",
"values": ["abc"]
}
],
"pagination": {
"itemsPerPage": 20,
"pageNumber": 1
}
}
Example Request
Search Accounts request for accounts by branch and ABC Supply storefronts
POST /api/account/v1/search/accounts HTTP/1.1
Host: partners.abcsupply.com
Authorization: Bearer <TOKEN>
{
"filters": [
{
"key": "branches.number",
"condition": "equals",
"values": ["441"],
"joinCondition": "and"
},
{
"key": "storefront",
"condition": "equals",
"values": ["abc"]
}
],
"pagination": {
"itemsPerPage": 20,
"pageNumber": 1
}
}
Example Request
Search Accounts request for accounts containing “MATERIAL” and ABC Supply storefronts
POST /api/account/v1/search/accounts HTTP/1.1
Host: partners.abcsupply.com
Authorization: Bearer <TOKEN>
{
"filters": [
{
"key": "name",
"condition": "contains",
"values": ["MATERIAL"],
"joinCondition": "and"
},
{
"key": "storefront",
"condition": "equals",
"values": ["abc"]
}
],
"pagination": {
"itemsPerPage": 20,
"pageNumber": 1
}
}