...
URL | https://api.softnetsport.com/v2/booked-events/ | |
---|---|---|
XSD | ||
Method | POST | |
Description | Creates reservations for event for user from token and product. | |
Authorization required | Yes |
...
Name | Data type | Description |
---|---|---|
event_id | xsd:int | REQUIRED. The requested event identifier |
product | xsd:string | REQUIRED. The requested product name identifier
|
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
Output elements
.data | |
---|---|
message | Response info message. |
status | Response code. |
Possible output statuses
status | message |
---|---|
200 | Successfully reserved event |
400 | You can order/refuse only events with the status Not started |
400 | Booking already Exist |
403 | Invalid credentials. Either the username, password or token you provided is incorrect |
Sample curl call
Request | Parameters |
---|---|
curl -XPOST 'https://api.softnetsport.com/v2/booked-events?token={token}&event_id={event_id}&product={product}' | token, event_id, product |