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 Name | Field Desc | Data Type | Required | Notes |
---|---|---|---|---|
OrgID | Organization ID | string (50) | N | Optional field for grouping by things like ownership groups. Will be blank if not passed in |
ShopID | Dealer/Store/Shop ID | string(25) | Y | Shop that made the sale |
InvoiceNumber | Sale Invoice Number | string(25) | Y | Invoice number for the sale |
SaleDate | Date Sold | datetime | Y | Date of the sale |
TireCount | Count of Tires Covered | int | Y | Number of tires sold |
TireBrand | Tire Make/Brand | string(25) | Y | for all tire sales with and without an attached TPP |
TireModel | Tire Model | string(25) | Y | |
TireSize | Tire Size | string(25) | Y | |
TirePrice | Tire Retail Price | money | Y | what customer pays |
TireCost | Tire Wholesale Price | money | Y | what 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
}]}