Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

supplier
object

name
string

Supplier Name

nice_name
string

Supplier Nice Name

dependence_quantity
boolean

Parameter that tells you that accepted fields or it’s values can depend on tire quantity.

Some suppliers may vary accepted fields and their values based on the tire availability. So in case this param = true we highly recommend calling fields method every time user change quantity.

dependence_fields
array

List of fields and it’s values that can be changes according to selected values

If some fields returned in this array, fields or its possible values list can be adjusted when you change the value of these fields

multiple_branch_ordering
boolean

Shows if supplier support multiple branch ordering

true - you can send tires from different branches in one order
false - you can’t send tires from different branches in one order

multiple_tires_ordering
boolean

Shows if you can send several tires in one order

true - you can send several tires in one order
false - one tire per order

has_ordering_fields
boolean

Shows if you should send some fields in order

true - fields should be send in order
false - order can be made without fields

branches
array

Array of supplier branches

branch
string

Branch id

Used for old implementations. Deprecated

branchid
string

Branch id

quantity
int

Available qty in branch

name
string

Branch name

ship_data
string

Some shipping rules provided by the supplier

address
object

Warehouse address

contact
object

Warehouse contact details

estimated_delivery_date
string

Estimated delivery date provided by the supplier

estimated_delivery_time
string

Estimated delivery time provided by the supplier

timezone
string

Timezone

distance
int

Distance from warehouse (provided by the supplier)

distance_unit
string

Distance unit

tire_id
string

Tire ID

price
int

Tire price

quantity
int

Tire available quantity

is_in_stock
boolean

Inner fields, not used for direct ordering

part_number_original
string

Supplier part number

cost
int

Tire cost

ordering_type
string

Show it branch should be used in requests

base - branch shouldn’t be used in requests
per_branch - branch should be used in requests

...

supplierName
string
path

Supplier’s name

supplier.name from /api/supplier/stock method or supplier.id from api/v2/location/:location_id:/suppliers method

required

tire_id
string
query

Tire ID

required

quantity
int
query

Tire quantity

optional if dependence_quantity = false

branch
string
query

Tire branch

optional if  ordering_type not equal to "per_branch"

Some suppliers may vary accepted fields and their values based on the selected branch.

...

Code Block
languagejson
{
    "tires": [
        {
            "tire_id": "QnJpZGdlc3RvbmV8fDAwMzE5M3x8a218fDEyNjc0fHxCUHJpbnh8fDM1MjEyNTA3MDN8fHRpcmVodWJ8fDEyNjc3fHxC",
            "branch": null"100",
            "cost": 15250.99,
            "fet": null,
            "fet_source": "tireconnect",
            "quantity": 14,
            "quantity_available": 32190,
            "stock_available": [
                {
                    "branch": "Alternate100",
                    "id": "Alternate100",
                    "quantitybranch_type": 5"primary",
                    "namequantity": "Alternate "190,
                    "ship_dataname": null "TLC 100 RALEIGH (04\/01\/2024 03:00pm)",
                    "addressship_data": null,"a. Local customer - based on next available cut-off (Please see in B2B portal). \nb. Within 200 miles, before   "contact"2:30 null,PM in a local time zone on a business day - next business  day.\nc. 300 miles,     "estimated_delivery_date": null,
                    "estimated_delivery_time": null,
                    "timezone": nullbefore 2:30 P.M  local time business day 2 business days.\ne. Everything else - 3-5 business days.\n\nFor orders made not on a business day, 1 business day is added to projected delivery. 1 day added for Freight orders on Saturdays",
                    "distanceaddress": {
   null,                     "distance_unitaddress1": null"900 AVIATION PKWY",
              },            "address2": null,
    {                     "branchpostal_code": "National27560-9224",
                        "idcity": "NationalMORRISVILLE",
                        "quantityprovince": 27"NC",
                        "namecountry": "National",null
                    "ship_data": null},
                    "addresscontact": null,{
                        "contactname": null,
                        "estimatedfirst_delivery_datename": null,
                        "estimatedlast_delivery_timename": null,
                        "timezoneemail": null"tlc100raleigh@tirehub.com",
                    "distance    "alt_email": null,
                        "distance_unitphone": null "919-674-5026",
                 }       "alt_phone": null
    ]         }     ],  },
  "cost": 152,     "quantity": 1,     "quantity_available": 32,     "stockdelivery_date_availabletime": [{
           {             "branchdate": "Alternate2024-04-01",
                        "idtime": "Alternate15:00:00",
            "quantity": 5,             "nametimezone": "Alternate -04:00",
            "ship_data": null,             "addressnotes": null,
            "contact": null,       },
     "estimated_delivery_date": null,               "cutoff": {
                        "date": "2024-04-01",
                        "time": "11:00:00",
                        "timezone": "-04:00"
                    },
                    "distance": 40,
                    "distance_unit": "ml"
                }
            ]
        }
    ],
    "cost": 50.99,
    "quantity": 4,
    "quantity_available": 190,
    "stock_available": [
        {
            "branch": "100",
            "id": "100",
            "branch_type": "primary",
            "quantity": 190,
            "name": "TLC 100 RALEIGH (04\/01\/2024 03:00pm)",
            "ship_data": "a. Local customer - based on next available cut-off (Please see in B2B portal). \nb. Within 200 miles, before 2:30 PM in a local time zone on a business day - next business day.\nc. 300 miles, before 2:30 P.M  local time business day 2 business days.\ne. Everything else - 3-5 business days.\n\nFor orders made not on a business day, 1 business day is added to projected delivery. 1 day added for Freight orders on Saturdays",
            "address": {
                "address1": "900 AVIATION PKWY",
                "address2": null,
                "postal_code": "27560-9224",
                "city": "MORRISVILLE",
                "province": "NC",
                "country": null
            },
            "contact": {
                "name": null,
                "first_name": null,
                "estimatedlast_delivery_timename": null,
                "email": "tlc100raleigh@tirehub.com",
            "timezone    "alt_email": null,
                "distancephone": null"919-674-5026",
                "distancealt_unitphone": null
            },
            "delivery_date_time": {
                "branchdate": "National2024-04-01",
                "idtime": "National15:00:00",
                "quantitytimezone": 27"-04:00",
                "namenotes": "National",null
            "ship_data": null},
            "addresscutoff": null,{
                "contactdate": null,"2024-04-01",
                "estimated_delivery_datetime": null,"11:00:00",
             "estimated_delivery_time   "timezone": null,"-04:00"
            "timezone": null},
            "distance": null40,
            "distance_unit": null"ml"
        }
    ],
    "total_cost": 152203.96,
    "total_fet": 0,
    "shipping_cost": null,
    "vendor_total_order": 152214,
    "deliverytotal_date_timeorder": {
  203.96,
     "date": "2023-06-25",
        "delivery_date_time": "16:45:00",
        "timezone": "+02:00"
  }null
}

Response parameters

tire_id
string

Tire ID

branch
string

Branch ID

cost
int

Tire Cost

fet
int

FET

quantity
int

Selected tire quantity

quantity_available
int

Available quantity for this tire

stock_available
array

List of branches with quantities where this tire currently available

branch
string

Branch ID. Deprecated

id
string

Branch ID

quantity
int

Quantity available in this branch

name
string

Branch name

ship_data
string

Some shipping rules provided by the supplier

address
object

Warehouse address

contact
object

Warehouse contact details

estimated_delivery_date
string

Estimated delivery date provided by the supplier

estimated_delivery_time
string

Estimated delivery date & time provided by the supplier

timezonecutoff
string

TimezoneCutoff

distance
int

Distance from warehouse (provided by the supplier)

distance_unit
string

Distance unit

cost
int

Tire cost

quantity
int

Selected quantity

quantity_available
int

Available quantity

total_cost
int

Total cost of tires in order

total_fet
int

Total FET

shipping_cost
int

Total shipping cost

vendor_total_order
int

Total order counted by vendor. Can be null in case vendor don’t provide this information

total_order
int

Total order counted by TireConnect

delivery_date_time
object

Estimated delivery date & time provided by the supplier

...

Code Block
languagejson
{
    "tires": [
        {
            "cost": 90.39,
            "tire_id": "QnJpZGdlc3RvbmV8fDAwMzE5M3x8a218fDEyNjc0fHxCTmV4ZW58fDE1MTQ4TlhLfHxhdGRudGR8fDEyNjcxfHxC",
            "branch": null,
            "costfet": 1520,
            "fet_source": null"vendor",
            "quantity": 12,
            "quantity_available": 326,
            "stock_available": [
                {
                    "branch": "Alternatelocal",
                    "id": "Alternatelocal",
                    "quantitybranch_type": 5"primary",
                    "namequantity": "Alternate "6,
                    "ship_data": nullname": "Local - Same-day delivery (if ordered before cut off time)",
                    "addressship_data": null,
                    "contactaddress": null,
                    "estimated_delivery_datecontact": null,
                    "estimateddelivery_deliverydate_time": null,{
                        "timezonedate": null,"2024-04-04",
                        "distancetime": null,
                    "distance_unit    "timezone": null,
                         },"notes": null
                    {},
                    "branchcutoff": "National",{
                        "iddate": "National2024-04-03",
                        "quantitytime": 27"22:30",
                        "nametimezone": "National-05:00",
                    "ship_data": null},
                    "addressdistance": null,
                    "contactdistance_unit": null,
                }
   "estimated_delivery_date": null,        ],
            "estimateddelivery_deliverydate_time": null,
   {
                "timezonedate": null,
   "2024-04-04",
                "distancetime": null,
                    "distance_unit"timezone": null
            }
   }     },
       ] {
       },         {"cost": 58.39,
            "tire_id": "QnJpZGdlc3RvbmV8fDAwNjA3MHx8a218fDEyNjc0fHxCSXJvbm1hbnx8OTg0Njl8fGF0ZG50ZHx8MTI2NzF8fEI=",
            "branch": null,
            "costfet": 1540,
            "fet_source": null"vendor",
            "quantity": 12,
            "quantity_available": 5569,
            "stock_available": [
                {
                    "branch": "Alternatelocal",
                    "id": "Alternatelocal",
                    "quantitybranch_type": 5"primary",
                    "namequantity": "Alternate69,
",                     "ship_data": null"name": "Local - Same-day delivery (if ordered before cut off time)",
                    "addressship_data": null,
                    "contactaddress": null,
                    "estimated_delivery_datecontact": null,
                    "estimateddelivery_deliverydate_time": {
   null,                     "timezonedate": null"2024-04-04",
                        "distancetime": null,
                        "distance_unittimezone": null,
                },        "notes": null
       {             },
       "branch": "National",            "cutoff": {
       "id": "National",                "date": "2024-04-03",
   "quantity": 50,                     "nametime": "National22:30",
                        "ship_datatimezone": null,"-05:00"
                    "address": null},
                    "contactdistance": null,
                    "estimateddistance_delivery_dateunit": null,
                }
   "estimated_delivery_time": null,        ],
            "timezonedelivery_date_time": null,{
                    "distancedate": null,
 "2024-04-04",
                  "distance_unittime": null,
                "timezone": }null
            ]}
        }
    ],
    "cost": 15290.39,
    "quantity": 12,
    "quantity_available": 326,
    "stock_available": [
        {
            "branch": "Alternatelocal",
            "id": "Alternatelocal",
            "quantitybranch_type": 5"primary",
            "namequantity": "Alternate "6,
            "ship_dataname": null,"Local - Same-day delivery (if ordered before cut      "address": nulloff time)",
            "contactship_data": null,
            "estimated_delivery_dateaddress": null,
            "estimated_delivery_timecontact": null,
            "timezonedelivery_date_time": null,
       {
    "distance": null,             "distance_unitdate": null
        }"2024-04-04",
        {        "time": null,
   "branch": "National",             "idtimezone": "National"null,
            "quantity": 27,             "namenotes": "National",null
            "ship_data": null},
            "addresscutoff": {
   null,             "contactdate": null"2024-04-03",
            "estimated_delivery_date    "time": null,"22:30",
                "estimated_delivery_timetimezone": null,"-05:00"
            "timezone": null},
            "distance": null,
            "distance_unit": null
        }
    ],
    "total_cost": 306297.56,
    "total_fet": 0,
    "shipping_cost": null,
    "total_order": 306297.56,
    "delivery_date_time": {
        "date": "20232024-0604-2504",
        "time": "16:45:00"null,
        "timezone": "+02:00" null
    }
}

Order create method

POST /api/supplier/order/create

...

Code Block
languagejson
{
   "order_id":16170,
   "invoice":"999999999",
   "shipping_cost":null,
   "vendor_total_order": 312,
   "total_order": null,
   "tires":[
      {
         "id":"QnJpZGdlc3RvbmV8fDAwMzE5M3x8a218fDEyNjc0fHxC",
         "part_number":"003193",
         "quantity_demand":4,
         "quantity_ordered":4,
         "price":152,
         "price_ordered":152,
         "status":"Successful",
         "message":"Order was placed successfully",
         "delivery_date_time":{
            "date":"2023-06-25",
            "time":"16:45:00",
            "timezone":"+02:00"
         }
      }
   ],
   "status":"Successful",
   "message":"The order successfully submitted.",
   "delivery_date_time":{
      "date":"2023-06-25",
      "time":"16:45:00",
      "timezone":"+02:00"
   }
}

...

order_id
int

Order ID in TireConnect system

invoice
string

Invoice ID returned by supplier

shipping_cost
int

Shipping cost of order

vendor_total_order
int

Total order counted by vendor. Can be null in case vendor don’t provide this information

total_order
int

Total order counted by TireConnect

tires
array

Array of tires

id
string

Tire ID

part_number
string

Tire part number

quantity_demand
int

Requested tire quantity

quantity_ordered
int

Ordered tire quantity

price
int

Requested tire price

price_ordered
int

Ordered tire price

status
string

Tire status in order

message
string

Message returned by supplier for each tire

status
string

Order status

message
string

Message returned by supplier for whole order

delivery_date_time
object

Estimated Delivery Date & Time provided by the supplier

...