Product API

Search the ABC Supply product catalog and view product information. Get product availability and key product attributes across several product hierarchies.

The Add Favorite Item endpoint adds an item to the list of “Favorite” items in the myABCSupply portal. The endpoint response provides the item number and the date the item was added to the Favorite items list.

Product API

Add Favorite Item

PUT /items/{billToNumber}/favorites/{itemNumber}

Add a favorite item for a Bill-To account

Authorization

For Individuals and Businesses, use OAuth 2.0 server or user token with the product.read scope.

For Third-Party Aggregators, use OAuth 2.0 user token with the product.read scope.

Request

URI Parameters

Name

Type

Description

billToNumber

string

The Bill-To account number related to the Favorite items list

itemNumber

string

The ABC item number for the item to add to the Favorite items list

Example Request

Add Favorite Item request

PUT/api/product/v1/items/2015825-1/favorites/04IKHA12EC HTTP/1.1
Host: partners.abcsupply.com
Authorization: Bearer <TOKEN>
Expand

Response

Example Response

Add Favorite Item response payload

{
    "favoritedDate": "2023-03-03T22:28:49.22",
    "itemNumber": "04IKHA12EC"
}
Expand

Name

Type

Description

favoritedDate

string

The datetime the item was added to the Favorite items list.

itemNumber

string

The ABC Supply item number of the item added to the Favorite items list.

HTTP Status Codes

Code

Status

Description

200

OK

The request and response were sent successfully.

400

Bad Request

Ensure the query parameters and values provided are valid.

401

Unauthorized

The provided account does not have access to the requested date. Ensure the provided account is a valid Bill-To account for the user.

500

Internal Server Error

The server was unable to process the request.