GetEquipmentAvailability
"equipment-pricing availability" endpoint for mobile apps
get
https://{yourdomain}.zaui.net
/zapi/
zapi_GetEquipmentAvailability
This api request uses:
    required: methodName: must be 'zapi_GetEquipmentAvailability'
    required: activityId - the integer ID of the tour or activity
    required: startDate - date the activity starts on in yyyy-mm-dd format
    required: startTime - the time in hh:mm:ss format when the activity begins
    required:
      EITHER:
        endDate (YYYY-MM-DD)
        endTime (HH:MM:SS)
      OR duration (hh:mm:ss)
    optional:
      EITHER
        equipmentId - ID for a specific item of equipment
      OR
        equipmentCategoryId - ID for a category of equipment - ie: an ID of '1' for 'Adult Bikes'
      OR
        a comma-delimited list of equipemtCategoryId's ie: a list of ID's like: '1,45' for 'Adult Bikes and Tandem Bikes'
      OR
        no equipment or category Id's - in this case the API call will query the activity for a list of all equipment categories used by the activity.
Request
1
<request>
2
<zapiToken>your_api_token</zapiToken>
3
<zapiUserId>your_userid</zapiUserId>
4
<zapiAccountId>your_accountid</zapiAccountId>
5
<zapiMethod>
6
<methodName>zapi_GetEquipmentAvailability</methodName>
7
<activityId>####</activityId>
8
<startDate>YYYY-MM-DD</startDate>
9
<startTime>HH:MM:SS</startTime>
10
<endDate>YYYY-MM-DD</endDate>
11
<endTime>HH:MM:SS</endTime>
12
<duration>HH:MM:SS</duration>
13
<equipmentId>###</equipmentId>
14
<equipmentCategoryId>'###,###'</equipmentCategoryId>
15
<equipmentQuantity>##</equipmentQuantity>
16
</zapiMethod>
17
</request>
Copied!
Last modified 2mo ago
Copy link