User
Tickets
-
Buying tickets
- this is an authenticated call
- you can purchase multiple tickets at once
- keep your ticket numbers somewhere safe
POSTPOSTSample request/tickets
/tickets
content-type: application/json accept: application/json content-length: 32
{ "competitionId": 4, "quantity": 3 }
curl -X POST -H "content-type: application/json" -H "accept: application/json" -H "content-length: 32" -d '{"competitionId":4,"quantity":3}' "http://my-api.com/tickets"
Response 201 Createdcontent-type: application/json
{ "eventName": "Australian Open", "tickets": [ "ticket1", "ticket2", "ticket3" ] }
-
Cancelling a ticket
- this is an authenticated call
- your account will be re-credited with the amount
DELDELETESample request/tickets/:id
/tickets/123
accept: application/json
curl -X DELETE -H "accept: application/json" "http://my-api.com/tickets/123"
Response 204 No Content -
Some sports events require proof of ID for purchase. Before purchasing a ticket, you will need to upload your ID for automated verification.
POSTPOSTSample request/account/verify
/account/verify
accept: application/json content-type: multipart/form-data; boundary=xsqvs7sodhokot245twruvzhb4pfy13n
curl -X POST -H "accept: application/json" -H "content-type: multipart/form-data; boundary=xsqvs7sodhokot245twruvzhb4pfy13n" -T "license.jpg" "http://my-api.com/account/verify"
Response 200 OK{ "verificationStatus": "pending" }