Professional Documents
Culture Documents
V1.0
Dragon
Duan Audit
Prepa Chunbo Approva
ratio l
n
1
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
V32 third-party
interface
documentation
2016-9-18
1 / 46
2
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
Directory
Access Guide............................................................................ 5
Common parameters.................................................................. 7
Return value............................................................................ 7
API list.......................................................................................... 7
3. Ordering Interface..............................................................19
1) (order/hourly)............................................................................... 19
4) (order/prepaid_new)....................................................................23
5) (order/prepaid_recharge)............................................................ 24
6) Booking (order/reserve)................................................................ 25
7) (order/monthly_new)................................................................... 25
4. Event Subscription..............................................................31
(PrepaidNewEvent)............................................................................. 32
15) CreditPaymentEventResponseParameters....................................................................39
16) ExportQuotationEventResponseParameters.................................................................. 39
Remark:1.0Theexitquotationeventisviadepartureevent(departuretypetype=124)
Pushpush................................................................................................ 40
2 / 46
5
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
5. Electronic invoice..............................................................40
Certificate type.................................................................. 42
City List................................................................................ 42
Error code.............................................................................. 42
Access Guide
1. Access to APPKey and APPSecret
To contact customer service, register third party information, and obtain
exclusive APPKey and AppSecret, of the
2 / 46
6
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
APPKey and AppSecret are unique as third party callers, please keep them
properly
2. V32 interface only supports UTF-8 encoding, if the customer is in another encoding
format, please convert to UTF-8 request
3. V32 interface currently provides only HTTP REST API calls
4. V32 interface currently only supports json response formats
1. Call flow:
API the full url=base_url/v1/method ;base_url of the interface for Big Hand url;v1
represents the interface version; method is the method name provided in the list below,
such as (garage/find)
3. Signature method:
4. Examples:
6 / 46
8
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
abcdefg)
aa7993bc142470c7b711193637c 45903 results
iv. http://~garage/find? of HTTP call parameters generated appkey=123456&
timeappkey=1473958283& latappkey=118.123511& lngappkey=24.473719&
radiusappkey=1000& signappkey=45903 aa7993bc142470c7b711193637c &
Common parameters
Calling parameters that must be passed in by any API is currently supported by:
Name of Parameter Type Whether or not Parameter Description
parameter
appkey string Yes APPKey allocated to
applications
sign string Yes Results of Signature
Algorithm
time long Yes Time stamp for
submission of request
Return value
The return values for all API in V32 open interface are in the following json format
{
"status":0 successful; non-zero failure indicates error code
"result": success result or
error description" detail":
error details time":
timestamp returned by result
}
The return values in the following API list are only described result, Please apply
the full return results.
API list
7 / 46
9
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
Remarks:
The parameters listed in the following list are
business parameters only, please add open parameters
when calling; if there is no special description, all
the time units in the interface are seconds and the
unit of amount is minutes.
7 / 46
10
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
8 / 46
11
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
lng Float First entrance }-
longitude 1:{ gid ":12300001"
"city":
0"description":
"sdfa""lotsinfo":
"dsfa""imid":
"distance":
113.046005"lat":
118.123512"lng":
24.473729
8 / 46
12
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
2) Method of obtaining yard static
information (garage/info):
GET ,POST
Request parameters:
Parameters Type Whether or not Note
lng:float longitude
image:string Picture
Road
Diameter
order:int access
row
Order No.
9 / 46
13
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface
}
9 / 46
14
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Request parameters:
Parameters Type Whether or not Note
11 / 46
17
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
validity int Effectiveness 0 Effective {status":0}
No 2 coupons 0:{
8 Expiration "coupon":"
"validity":0
"msg":" effective"
email string No
1 "gid":100000
2 Reserves "serial":1
4 packs "type":0
12 / 46
18
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
spaces available
monthly
desc string Fees, access "lots":[2]
control,
In midfield, 0:{
time, etc
Note id:1
12 / 46
19
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
{ }1
Name of id:int id :
name:string parking {
spaces id:2
} name:" Solid Position 2"
"desc":""
}
7) Method of obtaining staggered parking space
details (garage/shared_lots): GET ,POST
Request parameters:
Parameters Type Whether or not Note
email string No
email string No
Take
rent int No 1 Access parking space is leased
information 0 not obtained, default
Not available
strat_time long No Start time for query sharing
"now_page" current
page
"page_limit" per page
"page_count" total
number of pages
"all_count" records
Quantity
sid:int//
corresponding sharing
notes
Records
start_time:string lease
Start time
end_time:string lease
Closing time
Note: At least
one license
number must be
filled in
Time
code:string coupon
string
}
16 / 46
23
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
plate string Yes License plate
Note: At least
one license
number must be
filled in
16 / 46
24
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
"sum":100,
"lotid":0,
"charge_time":148644154
},
"time":1486437556
}
3) Monthly Rent Date New Charge
(charge/monthly_new) Method: GET ,POST
Request parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
17 / 46
25
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Ignore int No Permitted wrong
handle monthly
rent
0 Not allowed
Response results: result are
structural response parameters
consisting of the following
parameters:
Parameters Type Note Remarks Return sample
17 / 46
26
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
monthly_serial int Monthly Rent "plate":" Sue E1234S",
Type Serial
Number "ticket":
"charge_time":1475251503,
},
"time":1478962314
Note: At least
one license
number must be
filled in
18 / 46
27
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
extended_time long End of time "monthly_serial":0,
after extension
"start_time":1486101838,
sum int Amount Subdivision
"end_time":1488521038,
charge_time long Billing time
"extended_time":1488636298,
"sum":560,
"charge_time":1486431710
},
"time":1486431710
18 / 46
28
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
5) Wrong parking billing
(charge/rent) method: POST
Request parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
sid:int sharing id
start_time:long
end_time:long
} 0,"lotname":
},
"time":1486438105
19 / 46
29
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
3. Ordering Interface
19 / 46
30
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
Return value of
fee interface
sum int Yes Amount paid
128 Alipay
payment
130 UnionPay
Online
132 Parking
Wallet
phone string No Owner's mobile
number
owner string No Name of owner
ignore the
presence of the
vehicle, ignore
the presence of
if the parking
yard is not
order
successfully.
0 Not ignored
1 Ignorance
Default is
ignored
business_order string No Third party
business order
number
Response results: result are
structural response parameters
consisting
Parameters of the
Type following Note Remarks Return sample
20 / 46
32
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
paid_list object groups Paid list Type of payment: "paid_list":[],
{ 128 Alipay "coupon_list":[],
payment
time:long// "enter_image":"",
129 WeChat Pay
Time of payment "present_type":
130 UnionPay
sum:int// "","leaving_duration":15
Interface
amount paid Payment
},
type:int// 131 Bailian
"time":1486397793
Interface
payment type Payment }
}
160 Cash
payments
163 Internal
memory card
payments
time:long// use
time
Gold Value
in value:int// Age
type:int 0
generation
Gold Generation
1
code:
coupon
character
String
}
2) Purchase of parking tickets
(order/coupon_buy) method:
POST
Request parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
21 / 46
33
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
serial int Yes Number of
coupons
count int Yes Number of
purchases
sum int Yes Total amount
128 Alipay
payment
130 UnionPay
Online
phone string Yes Owner's mobile
number
email string No
21 / 46
34
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Response parameters:
Parameters Type Note Remarks Return sample
"business":"",
"sum":400,
"coupon_list":[
"[G20130000][B20161213165216][E2017
0213165218][K1][S360][C275][V00041]"
},
"time":1486427952
Note: At least
one license
number must be
filled in
22 / 46
36
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
orderno string Order No. "ticket":"",
0213165218][K1][S120][C274][V28145]",
"phone":"",
"owner":""
},
"time":1486364628
Note: At least
one license
number must be
filled in
Must be stored
start_time long Yes Storage
effective start
time
end_time long Yes Storage
effective end
time
sum int Yes Value of stored
value
phone string Yes Owner's mobile
number
owner string No Owner
WeChat ,130
UnionPay online
lotid int Yes Parking space
number
business_order string No Third party
business order
number
23 / 46
37
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Response results: result are
structural response parameters
consisting
Parameters of the
Type following Note Remarks Return sample
parameters:
orderno string Order No. {
23 / 46
38
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
monthly_serial int Monthly Rent "ticket":"",
Type Serial
Number
start_time long Storage "ticket_type":0,
effective start
time "orderno":"4310000100003",
"time":1484010043
5) Storage recharge
(order/prepaid_recharge) method:
POST
Request parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
for UnionPay
online
business_order string No Third party
business order
number
Response results: result are
24 / 46
Parameters Type Note Remarks Return sample
24 / 46
40
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
"balance":42000
},
"time":1484016623
6) Scheduled
(order/reserve)
methodology:
GET ,POST
Note: The order must be confirmed within 5 minutes after
the order is ordered, otherwise the order will automatically
cancel the request parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
WeChat ,130
UnionPay online
lotid int No Parking space
number
business_order string No Third party
business order
number
Response results: result are
structural response parameters
consisting of the following
parameters:
Parameters Type Note Remarks Return sample
Remarks: License
plate and card
number
25 / 46
42
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
At least one
must be filled in
Date Type
start_time long Yes Start time
for UnionPay
online
business_order string No Third party
business order
number
easy int No Turn off 1 Turn
on Simplified
mode; Simplified
mode: No need to
bind parking
Required Monthly
Rent Type
Response results: result are
structural response parameters
consisting of the following
parameters:
Parameters Type Note Remarks Return sample
26 / 46
43
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
owner string Owner "monthly_serial":0,
"owner":"",
"lotname":"#6"
},
"time":1486433298
}
26 / 46
44
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Method:
POST
request
parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
for UnionPay
online
business_order string No Third party
business order
number
Response results: result are
structural response parameters
consisting of the following
parameters:
Parameters Type Note Remarks Return sample
"extended_time":1486865280,
27 / 46
45
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
"sum":560
},
"time":1486433520
9) Parking (order/rent)
method: POST
Request parameters:
Parameters Type Whether or not Note
Note: At least
one license
number must be
filled in
27 / 46
46
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
(the same below)
WeChat ,130
UnionPay online
time_slots Object[] Yes List of selected
slots
{
sid:int
corresponding
sharing
id start_time:
long end_time:
long
}
business_order string No Third party
business order
number
Response results: result are
structural response parameters
consisting of the following
parameters:
Parameters Type Note Remarks Return sample
{ selected or
sid:int conflicting
corresponding
sharing periods
id start_time:
long end_time:
long
}
10) Set Share Time (order/share_lot)
Method: POST
Request parameters:
Parameters Type Whether or not Note
28 / 46
47
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
plate string Yes License plate
Note: At least
one license
number must be
filled in
28 / 46
48
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
lotid int Yes Parking space
number
phone string Yes Owner's mobile
number
share_list Object[] Yes Share slots list
sid:int
corresponding
sharing
id start_time:
long end_time:
long
duration:long
duration type:int 0
separable 1
}
Response results: result are
structural response parameters
consisting of the following
parameters:
Parameters Type Note Remarks Return sample
"gid":300001,
"lotid":3000
},
"time":1486370131
}
11) Order Confirmation
(order/confirm) Method:
GET ,POST
Request parameters:
Parameters Type Whether or not Note
29 / 46
49
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Parameters Type Whether or Note
not
gid int Yes Yard No.
in.
ticket string No Certificate No.
29 / 46
50
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
1APP opening 4 manual
opening 5
in.
ticket string No Certificate No.
charged separately)
1 (over quota)
only difference
received)
owner string No Owner
30 / 46
51
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
orderno string Order No.
30 / 46
52
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
orderno string Yes Order No.
4. Event Subscription
1) Event Subscription
(event/subscribe) Method:
GET ,POST
Request parameters:
Parameters Type Whether or not Note
url, null
indicates
unsubscribe
verify string No V32 the system
processing, when
is sent to the
caller as is,
event
combination
Legal nature
events string No Subscribe
events id,
multiple events
separated by
31 / 46
53
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
commas (null or
non-passed for
default
subscription
events)
2,3,5)
Response results:
When an event occurs, the server POST data in the specified format to the
pushurl, caller to determine the type of event based on the value of the
event in the accepted parameter. After receiving the push, the receiver must
respond HTTP Code 200, otherwise, the push will be considered a failure, and
then pushed again every 30 minutes for 24 hours
31 / 46
54
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
event Even
ts
1 Heartbeat events (HeartBeat)
2 Entry Events (InEvent)
3 Appearance Events (OutEvent)
4 Booking Fee Event (ReserveEvent)
5 Event on Time Rent Fee (HourlyPayEvent)
6 Date and Month Rent New Event
(MonthlyNewEvent)
7 Date Monthly Rent Extension
(MonthlyExtendEvent)
8 (PrepaidNewEvent)
9 Storage recharge event
(PrepaidRechargeEvent)
10 Event on using parking tickets
(CouponUseEvent)
11 Accidental parking (ShareParkEvent)
12 APP vehicle locked event (LockEvent)
13 APP vehicle unlocked (UnlockEvent)
14 Credit Payment Events (CreditPayEvent)
32 / 46
55
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
site_status Object groups site_status":[.
32 / 46
56
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Line
system is offline
Remarks :120 s heartbeat interval
3) Approach event (InEvent) response parameters:
Parameters Type Note
64 Ticket
collection
65 Rent to enter
for card
collection
66 License
the market 4
packs monthly
market 2
monthly rent
193 privileges
194 Manual
approach
imageurl string Entry Picture
33 / 46
58
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
64 Rent to leave
while reading
65 Rent to leave
while reading
card
66 Renting off
4 packs monthly
2 monthly rental
departures
192
abnormal
departure
193
privilege
departure
194 manual
release
imageurl string Leave the scene
34 / 46
59
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
34 / 46
60
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
chargrule string Billing type
name
start_time string Scheduled start
time
duration long Duration of
reservation
sum long Amount paid (per
unit)
orderno string Order No.
35 / 46
61
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
type int Type of payment
35 / 46
62
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
end_time string Closing time
36 / 46
63
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
number
36 / 46
64
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
start_time string Storage
effective start
time
end_time string Storage
effective end
time
blance int Savings balance
(sub)
actuallysum int Amount received
(units)
shouldsum int Amount due
(unit)
orderno string Order No.
37 / 46
65
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
opcode int Operator Number
37 / 46
66
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
0 generation
gold 1 generation
value int Generations
38 / 46
67
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
gid int Yard No.
38 / 46
68
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
plate string License plate
0 Absolute ,1
offset
orderno string Order No.
39 / 46
69
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
free_monthly_lots int Monthly rental
of remaining
parking spaces
free_hourly_lost int Rental of
remaining parking
spaces
lots_group int Location Number
39 / 46
70
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Remarks :1.0 The exit quotation event of the depot is pushed through the departure event
(departure type type=124)
5. Electronic invoice
base64 string
40 / 46
71
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
6. Unlicensed car
40 / 46
72
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
ticket_type int No Certificate type
41 / 46
73
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
sum int Amount
coupon_durat
ion
41 / 46
74
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Certificate type
0 No
vouche
r
1
Traffi
c card
2
UnionP
ay
Card
51
Intern
al
cards
102
Ticket
s
128 QR
Code
City List
City Number City Name
0 Shanghai
1 Xiamen
42 / 46
75
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Error code
42 / 46
76
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
43 / 46
78
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
Revised LOG:
10:24:13,29 November 2016
1. settings share time interface remove (share_list) return value
22 May 2017
1. add credit authorization operation (order/credit_give)
21 June 2017
1. add electronic invoice class interface
28 September 2017
1. add heartbeat events
12 October 2017
1.(order/hourly) interface adds ignore_in parameters, whether to ignore the presence of the vehicle, ignore
the presence of the vehicle, even if the yard is not present, the order can be issued successfully. Often used
to order retry
44 / 46
79
Xiamen Dashou Technology Ltd. V1.0 V32 third-party
Technology Limited interface documentation
21 November 2017
1. event subscription interface, add events parameters
1 February 2018
Number of parameters added 1. business_order rental order interface
2. monthly rental date, monthly rental storage value, monthly rent extension, monthly
rent recharge, booking, wrong order interface are increased
business_order
parameters 14
September 2018
Add 4 manual gate and 5 manual gate 1. control interface to realize remote and
unconditional gate control
45 / 46