PPylon Developers
ApiOrganizer Events

Sell ticket with payment

Sells tickets with payment collection via MB Way or payment link.

POST
/api/organizer/v1/events/{id}/tickets/sell
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/organizer/v1/events/497f6eca-6276-4993-bfeb-53cbbbba6f08/tickets/sell" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",    "ticketTypeId": "2205b8a7-79ec-406f-ac86-a5e81fe84318",    "quantity": 1,    "recipientFirstName": "string",    "recipientLastName": "string",    "recipientEmail": "user@example.com",    "paymentMethod": "MbWayStripe",    "phoneNumber": null  }'
{
  "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
  "orderNumber": "string",
  "paymentMethod": "MbWayStripe",
  "tickets": null,
  "paymentSessionId": null,
  "paymentIntentId": null,
  "clientSecret": null
}
{
  "code": "string",
  "message": "string"
}