+1-954-671-0160
Hablamos Español

SalvageReseller Mobile API v2

URL: http://www.salvagereseller.com/mobile_v2

Methods:

API v2 Changes

1. get_vehicles

Params:

limitint
offsetint
order_field [lot, year, make, model, location, sale_date, title, odometer, damage, bid]
order_dir [asc, desc]

Filters:

type [autos, motos, industrial, boats, rec-vehicles, trucks, snowmobiles, jet-skies, suvs]
from_year int 1900 - 2012
from_year int 1900 - 2012
make string 50
model string 50
state state code (string 2)
title_type [clean_title, salvage_title, certificate_of_destruction]
quick_pick [no_damage, vehicles_for_parts, clean_title, run_and_drives, flood_damage, burn_engine, vandalism, classic_cars, selling_today, no_bids_yet]
auction string 50 (NC - CHINA GROVE for example)
sale_date date (2012-09-01 for example)
keywords any string
search_type [all, any]

Result example:

stdClass Object
(
    [list] => Array
    (
    [0] => stdClass Object
        (
            [id] => 2929075
            [auction] => FL - FT. PIERCE
            [number] => 11224992
            [type] => V
            [title] => FL RB
            [damage] => SIDE
            [secondary_damage] => REAR END
            [cond_code] =>
            [year] => 2010
            [odometer] => 7082 A
            [make] => BMW
            [model] => 650I
            [vin] => WBAEB5C55AC226083
            [city] => FORT PIERCE
            [state] => FL
            [sale_status] => On Minimum Bid
            [sale_date] => 2012-12-13
            [sale_time] => 12:00:00
            [image] => images.copart.com/website/data/pix/20120117/11224992_1.JPG
            [bid] => 0
            [buy_now_price] => 0
        )
    )
    [count] => 32
)
    

2. get_vehicle

Params:

number int

Result example:

stdClass Object (
    [id] => 2944821
    [auction] => AL - BIRMINGHAM
    [auction_number] => 136
    [auction_title] => AL - BIRMINGHAM
    [number] => 10972782
    [item_number] => 0
    [cond_code] =>
    [type] => V
    [title_state] => AL
    [title_type] => ST
    [damage] => FRONT END
    [secondary_damage] => SIDE
    [engine] => 3.4L 6
    [drive] => Four by Four
    [cylinders] => 6
    [fuel] => GAS
    [keys] => YES
    [runs_drives] => Vehicle can be Driven
    [vin] => JT3HN87R3Y0262909
    [sale_status] => Pure Sale
    [time_zone] => CDT
    [year] => 2000
    [make] => TOYOTA
    [model_group] => 4RUNNER
    [model] => 4RUNNER LT
    [body_style] => 4DR SPOR
    [city] => HUEYTOWN
    [state] => AL
    [zip] => 35023
    [country] => USA
    [sale_date] => 2012-12-13
    [sale_time] => 12:00:00
    [odometer] => 169705
    [odometer_brand] => A
    [color] => WHITE
    [price] => 7300.00
    [bid] => 0
    [buy_now_price] => 0
    [repair_cost] => 6500.00
    [special_note] => CATALYTIC CONVERTER MISSING
    [created] => 2012-03-06
    [title] => AL SALVAGE TITLE
    [bid_inc] => 1
    [auction_fee] => 20
    [transaction_fee] => 0
    [images] => stdClass Object (
        [preview] => Array (
            [0] => http://images.copart.com/website/data/pix/20120112/10972782_1.JPG
            ...
            [9] => http://images.copart.com/website/data/pix/20120112/10972782_A.JPG
        )
        [full] => Array (
            [0] => http://images.copart.com/website/data/pix/20120112/10972782_1X.JPG
            ...
            [9] => http://images.copart.com/website/data/pix/20120112/10972782_AX.JPG
        )
    )
)
    

Error example:

stdClass Object (
    [success] => 0
    [message] => Entity not fount
)
    

3. get_makes

Params:
type [C, E, M, R, S, J, suvs, trucks]
from_year int 1900 - 2012
from_year int 1900 - 2012

Result example:

Array (
    [0] => stdClass Object (
        [make] => ANDE
    )
)
    

4. get_models

Params:

make string
type [C, E, M, R, S, J, suvs, trucks]
from_year int 1900 - 2012
from_year int 1900 - 2012

Result example:

Array (
    [0] => stdClass Object (
        [model] => A6
    )
)
    

5. get_quick_picks

Params: none

Result example:

Array (
    [0] => stdClass Object (
        [name] => no_damage
        [title] => Cars With No Damage
        [count] => 240
    )
)
    

6. login

Params:

username string (email)
password string

Result example:

stdClass Object (
    [id] => 313
    [first_name] => Pavel
    [last_name] => S
    [company] => Company
    [address] => Address
    [country_id] => US
    [city] => City
    [state] => Stat
    [zip] => 123123
    [phone] => 12312312312
    [email] => pavel@gmail.com
    [language] => russian
    [dl_number] => 123123123
    [dl_country_id] => CA
    [dl_state] => 0
    [pi_number] => 0
    [pi_country_id] =>
    [us_resident] => 1
    [deposit] => 0.00
    [dob] => 1985-05-29
)
    

Error example:

stdClass Object
(
    [success] => 0
    [message] => Entity not fount
)

stdClass Object (
    [success] => 0
    [messages] => Array (
        [0] => 'username' is required
        [1] => 'password' is required
    )
)
    

7. get_user_data

Params:

username string (email)
password string

Error example:

See login method

8. update_user_data

Params:

username string (email)
password string
first_name string(50)
last_name string(50)
company string(50)
address string(255)
city string(50)
country_id string(2) (US for example)
state string(50)
zip string(6)
phone string(20)
email string(100)
dl_number string(20)
dl_state string(50)
pi_number string(20)
pi_country_id string(2)
pi_state string(50)

Result example:

stdClass Object
(
    [success] => 1
)
    

Error example:

See login method

9. update_user_email

Params:
username string (email)
password string
email string (new email)

Result example:

stdClass Object
(
    [success] => 1
)
    
Error example: See login method

check_user_data

first_name
last_name
company
address
city
country_id
statestring
zip
phone
email
facebook_id string (Profile ID recerved after Facebook registration process. When facebook_id is not empty following fields are required only: email, first_name and last_name)

Result example:

stdClass Object
(
    [success] => 1
)
    

Error example:

See login method

10. get_purchases

Params:

username string (email)
password string

Result example:

Array (
    [0] => stdClass Object (
        [sale_id] => 293
        [bidder_id] => 313
        [lot_number] => 22408630
        [year] => 2005
        [make] => MITSUBISHI
        [model] => LANCER EVO
        [auction] => AR - LITTLE ROCK
        [title_state] => AR
        [title] => Salvage Title
        [vin] => JA3AH86D55U015596
        [date] => 2010-12-14
        [release_auth] => 1
        [payment_received] => 1
        [signed_docs] => 1
        [paid] => 0
        [canceled] => 0
        [documents] => stdClass Object (
            [bill_of_sale] => https://admin.inloher.net/documents/bill_of_sale/293/4b5e191a61d5960135491880585d7aa2
        )
    )
)
    

Error example:

See login method

11. get_payments

Params:

username string (email)
password string

Result example:

Array
(
    [0] => stdClass Object
    (
        [invoice_id] => 353
        [bidder_id] => 313
        [sale_id] => 293
        [lot_number] => 22408630
        [date] => 2010-12-14 23:09:52
        [description] => Relist Fee of 2005 MITSUBISHI LANCER EVO Copart Lot #22408630
        [total] => 400.00
        [type] => relist_fee
        [status] => paid
        [method] => credit card
        [documents] => stdClass Object (
            [invoice] => https://admin.inloher.net/documents/invoice/353/81160b4c75724f791fe5dbcb8cdfa509
        )
    )
)
    

Error example:

See login method

13. check_payment_data

cc_first_namestring
cc_last_namestring
cc_addressstring
cc_country_idstring
cc_statestring
cc_citystring
cc_zipnumber
cc_numbernumber
cc_exp_yearnumber
cc_exp_monthnumber
cc_cvv2number

Result example:

stdClass Object
(
    [success] => 1
)
    

Error example:

See login method

14. get_register_plans

Result example:

stdClass Object (
    [M] => stdClass Object (
        [period] => 1 month
        [name] => Monthly
        [price] => 20
        [deposit] => 400
    )
    [Y] => stdClass Object (
        [period] => 1 year
        [name] => Yearly
        [price] => 120
        [deposit] => 400
    )
)
    

15. get_broker_data

Result example:

stdClass Object
(
    [name] => Inloher Corp.
    [phone] => 1 (877) 274-0573
    [email] => info@salvagereseller.com
    [site] => http://www.salvagereseller.com
    [street] => 4811 Lyons Technology Parkway, Suite 9
    [city] => Coconut Creek
    [state] => Florida
    [zip] => 33073
    [fax] => 1 (954) 543-1210
)
    

16. register

Params:

first_name string(50)
last_name string(50)
company string(50)
address string(255)
citystring(50)
country_id string(2) (US for example)
statestring(50)
zipstring(6)
phone string(20)
email string(100)
support_user_id string (ID# from results get_support_users method)
facebook_id int (Profile ID recerved after Facebook registration process. When facebook_id is not empty following fields are required only: email, first_name and last_name)
how_found_us string (10) (google, bing, yahoo, copart, forum, friend or other)
cc_first_name string(50)
cc_last_name string(50)
cc_address string(255)
cc_country_id string(2)
cc_state string(25)
cc_city string(25)
cc_zip string(10)
cc_numbernumber
cc_exp_yearnumber
cc_exp_monthnumber
cc_cvv2number
register_plan (M/Y)

Result example:

stdClass Object
(
    [success] => 1
    [bidder_id] => 4058
    [bidder_number] => 234234
    [biider_password] => 1231231
    [invoice] => stdClass Object (
    [method] => credit card
    [total] => 420.00
    [status] => paid
    [description] => Registration
    [transaction] => 1558499
    [created] => 2012-11-20 14:15:03
    [items] => Array (
        [0] => stdClass Object (
            [item] => Registration fee
            [amount] => 20.00
            [type] => subscription
        )
        [1] => stdClass Object (
            [item] => Security deposit
            [amount] => 400.00
            [type] => deposit
        )
    )
)
    

Error example:

See login method

17. increase_deposit

Params:

username string (email)
password string(50)
cc_first_name string(50)
cc_last_name string(50)
cc_address string(255)
cc_country_id string(2) - Country code
cc_state string(50)
cc_city string(50)
cc_zip string(6)
cc_number string(20)
cc_exp_year string(4)
cc_exp_month string(2)
cc_cvv2 string(3)
amount numeric

Result example:

stdClass Object
(
    [success] => 1
    [bidder_id] => 313
    [invoice] => stdClass Object (
    [method] => credit card
    [total] => 100.00
    [status] => paid
    [description] => Increase Security Deposit
    [transaction] => 2179746474
    [created] => 2012-11-20 13:13:45
)
    

Error example:

See login method

18. get_subscription

Params:
username string (email)
password string

Result example:

stdClass Object
(
    [id] => S-7B203681PL953990S
    [start_date] => 2010-03-23
    [period] => monthly
    [type] => credit card
    [amount] => 20.00
    [active] => 0
)
    

Error example:

See login method

NOTE: To cancel subscription you should send email message to info@salvagereseller.com address with user info.

        Subject: Please Cancel Subscription
        Message:
        Hello
        Please Cancel {USER NAME} Subscription
        User: {USER NAME}
        User ID#: {USER ID}
        Subscription ID#: {ID}
        Subscription Type: {TYPE}
    

19. get_support_users

Result example:

stdClass Object
(
    [success] => 1
    [list] => array(
        stdClass Object (  
            [id] => 1
            [name] => 'Public User Name'
        ),
        stdClass Object (  
            [id] => 2
            [name] => 'Public User Name'
        )
    )
)
    

API v2 Changes

1. Removed API methods:

2. Added new API methods:

3. Updated API methods:

Test credit card info

number 4111-1111-1111-1111
exp. year any future year
exp. month any future month
cvv2 001
type VISA

The card can be used to increase deposit (for avassenko@issart.com user only) and for registration (any user)

Title types:

clean_title Clean Title
salvage_title Salvage Title
certificate_of_destruction Non-Repairable

Types:

C Motorcycles
E Industrial Equipment
M Boat
R Recreational Vehicles
S Snowmobiles
J Jet Skies
suvs SUVs
trucks Trucks

Quick picks

no_damage Cars With No Damage
vehicles_for_parts Vehicles for Parts
clean_title Clean Title
run_and_drives Run & Drives
flood_damage Flood Damage
burn_engine Burn Engine
vandalism Vandalism
classic_cars Classic Cars
selling_today Selling Today
no_bids_yet No Bids Yet