Skip to content

Commit

Permalink
update record api.
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfox0323 committed Mar 27, 2018
2 parents 3b11862 + 461247a commit f952827
Showing 1 changed file with 24 additions and 33 deletions.
57 changes: 24 additions & 33 deletions source/record_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,45 +21,28 @@ Parameters
+=======================+===============+=======================================+
| access_token | Yes | API Token |
+-----------------------+---------------+---------------------------------------+
| date_from | No | format like 2017-11-16 |
| days_in_stock_from | No | format like 2017-11-16 |
+-----------------------+---------------+---------------------------------------+
| date_to | No | format like 2017-11-16 |
| days_in_stock_to | No | format like 2017-11-16 |
+-----------------------+---------------+---------------------------------------+
| price_from | No | listing_price range from, like 100.00 |
| created_date_from | No | format like 2017-11-16 |
+-----------------------+---------------+---------------------------------------+
| price_to | No | listing_price range to, like 100.00 |
| created_date_to | No | format like 2017-11-16 |
+-----------------------+---------------+---------------------------------------+
| has_comment | No | whether or not have comment, |
| | | value 'YES' or 'NO' |
| store_id | No | Store ID |
+-----------------------+---------------+---------------------------------------+
| has_video | No | whether or not have video, |
| | | value 'YES' or 'NO' |
+-----------------------+---------------+---------------------------------------+
| has_price | No | whether or not have listing price, |
| | | value 'YES' or 'NO' |
+-----------------------+---------------+---------------------------------------+
| has_sale_price | No | whether or not have sale price, |
| | | value 'YES' or 'NO' |
+-----------------------+---------------+---------------------------------------+
| real_photo_count | No | whether or not have photos, |
| | | value 'YES' or 'NO' |
+-----------------------+---------------+---------------------------------------+
| is_certified | No | whether or not is certified, |
| | | value 'YES' or 'NO' |
| is_staging | No | value 0 or 1 |
+-----------------------+---------------+---------------------------------------+
| has_damage | No | whether or not is deficiency, |
| | | value 'YES' or 'NO' |
| category_id | No | See Below |
+-----------------------+---------------+---------------------------------------+
| is_staging | No | value 0 or 1 |
| product_id | No | See Below |
+-----------------------+---------------+---------------------------------------+
| dms_status_id | No | dms_status_id |
| record_type_id | No | Record Type ID |
+-----------------------+---------------+---------------------------------------+
| status | No | status code: 0 - In-Progress, 1 - |
| | | Available and 2 - Archived |
+-----------------------+---------------+---------------------------------------+
| stocknumber | No | stock number of record. |
+-----------------------+---------------+---------------------------------------+
| condition_id | No | item condition id. |
| item_condition_id | No | item condition id. |
+-----------------------+---------------+---------------------------------------+
| make | No | make of automobile records. |
+-----------------------+---------------+---------------------------------------+
Expand Down Expand Up @@ -106,11 +89,13 @@ Response
| chrome_consumer_info | chrome_consumer_info |
+-----------------------+-------------------------------------------------------+
.. code-block:: python
{
"links": {
"next": "https://api.cdemo.com/v3/records?access_token=xxxxxxxxxxx",
"next": "https://api.cdemo.com/v3/records?access_token=xxxxxxxxxx&page=2&page_size=3",
"prev": null,
"total_results": 117
},
Expand All @@ -121,7 +106,7 @@ Response
"status": 1,
"staging_flag": 0,
"store": {
"id": 20114,
"id": 1,
"name": "Ride Time Certified"
},
"product": {
Expand Down Expand Up @@ -224,7 +209,7 @@ Response
"status": 1,
"staging_flag": 0,
"store": {
"id": 20114,
"id": 11,
"name": "Ride Time Certified"
},
"product": {
Expand Down Expand Up @@ -327,7 +312,7 @@ Response
"status": 1,
"staging_flag": 0,
"store": {
"id": 20114,
"id": 11,
"name": "Ride Time Certified"
},
"product": {
Expand Down Expand Up @@ -427,5 +412,11 @@ Response
]
}
.. .. note::
test
.. note::
- 1001: Automobile
- 1009: Motorcycle
- 1060: ATV/UTV
- 1064: Snowmobile
- 1061: Campers/RV

0 comments on commit f952827

Please sign in to comment.