Ticket API
Create ticket and MTB
Create a ticket and an MTB. The temporal parameter startOfValidity=<isoTimestamp>
must match the time of startOfValidity
previously used in the POST /product request. If that time is already in the past, the temporal parameter may be set to the time-of-request.
Endpoint: POST /api/v2/ticket
Create dormant ticket
Create a dormant ticket. No MTB can be created.
Endpoint: POST /api/v2/ticket
Create ticket bundle
Endpoint: POST /api/v2/ticketbundle
Retrieve ticket bundle
Endpoint: GET /api/v2/ticketbundle/cba51f8f-3f13-410d-96f1-2c478dd3029f
Get active status
Endpoint: GET /api/v2/ticket/0dd7705b-da69-418e-89e7-6acc944e4aa6/active
Set active status
Freeze or thaw ticket with specified ticket identifier.
Endpoint: PUT /api/v2/ticket/0dd7705b-da69-418e-89e7-6acc944e4aa6/active
Get refundable status
Endpoint: GET /api/v2/ticket/0dd7705b-da69-418e-89e7-6acc944e4aa6/refundableStatus
Get refund status
Endpoint: GET /api/v2/ticket/0dd7705b-da69-418e-89e7-6acc944e4aa6/refundStatus
Revoke ticket
Endpoint: PUT /api/v2/ticket/0dd7705b-da69-418e-89e7-6acc944e4aa6/revoke
If successful revoke then the ticket will become not active and will be blacklisted.
Refund ticket
Endpoint: PUT /api/v2/ticket/0dd7705b-da69-418e-89e7-6acc944e4aa6/refundStatus
Possible to refund if refundableStatus.refundable is true.
If successful refund then refund status is set to true, ticket is set to not active, ticket is added to blacklist and ticket is updated with the refund amount.