PPylon Developers
ApiTicket Administration

Refund ticket

Refunds a ticket. The ticket must be in Valid status and not yet checked in.

POST
/api/v1/tickets/{id}/refund
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/tickets/497f6eca-6276-4993-bfeb-53cbbbba6f08/refund" \  -H "Content-Type: application/json" \  -d '{    "initiatedBy": "7c3ed0e2-d24e-40a1-b1fe-f6a01ac857c6"  }'
{
  "ticketId": "e3e3e8ea-b02a-4536-85a2-a9c90f4ee74f",
  "refundAmount": 0.1,
  "currency": "string"
}
{
  "code": "string",
  "message": "string"
}