Skip to main content

Sales

danger

This version of the API has been deprecated and is no longer supported.

Sales made on tires including registered and unregistered sales.

Field NameField DescData TypeRequiredNotes
OrgIDOrganization IDstring (50)NOptional field for grouping by things like ownership groups. Will be blank if not passed in
ShopIDDealer/Store/Shop IDstring(25)YShop that made the sale
InvoiceNumberSale Invoice Numberstring(25)YInvoice number for the sale
SaleDateDate SolddatetimeYDate of the sale
TireCountCount of Tires CoveredintYNumber of tires sold
TireBrandTire Make/Brandstring(25)Yfor all tire sales with and without an attached TPP
TireModelTire Modelstring(25)Y
TireSizeTire Sizestring(25)Y
TirePriceTire Retail PricemoneyYwhat customer pays
TireCostTire Wholesale PricemoneyYwhat shop pays

Get Sales

GET https://data.absintegrations.com/v2/partners/{company_name}?rec=sales

Use this endpoint to retrieve one or more Sales.

Example

curl --location --request GET https://data.absintegrations.com/v2/partners/{company_name}?rec=sales&partnerid={partnerid}&ShopID={shop_id}&InvoiceNumber={invoice_number} \
--header 'content-type: application/json' \
--header 'Authorization: Bearer {JWT}'

The above returns JSON structured like this

{
"PartnerID": 1001,
"OrgID":,
"ShopID": "005058",
"InvoiceNumber": "354404",
"SaleDate": "2020-01-27T00:00:00Z",
"TireCount": 1,
"TireBrand":,
"TireModel":,
"TireSize":,
"TirePrice": 99.99,
"TireCost": 78.16
}

Create Sales

POST https://data.absintegrations.com/v2/partners/{company_name}

Use this endpoint to create one or more new sales with ABS.

Example

curl --request POST \
--url https://data.absintegrations.com/v2/partners/{company_name} \
--header 'authorization: Bearer eyJhb...SQj6A' \
--header 'content-type: application/json' \
--data {
"Sales": [
{
"ShopID": "005054568",
"InvoiceNumber": "354365667",
"SaleDate": "2020-01-27",
"TireCount": 4,
"TireBrand": "SUM",
"TireModel": "235/60R18/XL 107V HTR A/S P02 BLK",
"TireSize": "2356018",
"TirePrice": 225.09,
"TireCost": 195.09
}]}