SellowGuide

API connections

Connect your own website or app to Sellow with an API key that has exactly the permissions it needs.

With the API your own website or app can retrieve data from Sellow, such as your current offering, and start orders. A key only gives access to your organisation.

The overview of API keys. The key itself has been made unreadable.
The overview of API keys. The key itself has been made unreadable.

The Documentation button leads to the technical explanation for your web developer. It is also available directly at sellowapp.com/docs/api.

Creating an API key

  1. Click New API key.
  2. Give the key a name, so you know later which integration uses it, for example "Website".
  3. Only tick the permissions the integration really needs.
  4. Fill in the restrictions if you want to.
  5. Click Create API key and pass the key on to your web developer.
A new API key with the permissions per module.
A new API key with the permissions per module.

Permissions

Without the matching permission, the API returns an error.

All permissions you can give a key, per module.
All permissions you can give a key, per module.
Module Permission What the integration can do
Access access:read Read the offering: retrieve active permits, stock, regulations and the information block.
Access access:orders:write Order permits and start a Sellow checkout.
Tickets ticketing:read Retrieve public events, ticket types and add-ons.
Tickets ticketing:orders:write Order tickets and start a Sellow checkout.
Tickets ticketing:scan Check tickets and mark them as scanned at the entrance, for example with your own scanning device or access gate.
Bookings bookings:read Retrieve the bookable offering, available time slots and closed dates.
Bookings bookings:orders:write Hold time slots and place a booking.

Restrictions

  • Allowed domains: the websites the key may be used on, for example www.myclub.com.
  • Expiry date: optional. After this date the key stops working.

Managing keys

The overview shows per key the name, the start of the key, the permissions, when it was created and when it was last used. At the far right of the table are the status and three buttons. On a smaller screen, scroll the table to the right to see them. The buttons are:

  • the satellite dish to set up webhooks;
  • the prohibition sign to turn the key off;
  • the bin to delete the key.
The status of a key and the buttons for webhooks, turning off and deleting.
The status of a key and the buttons for webhooks, turning off and deleting.

Watch out

An API key is as sensitive as a password. If a key leaks, turn it off immediately and create a new one.

Webhooks

With a webhook Sellow itself sends a message to the server of your website or app as soon as something happens to a ticket order. Your integration then doesn't have to keep asking for the status. This way you also hear about orders that weren't placed through your own integration, for example through the Sellow ticket shop.

Setting up the webhook of an API key. As long as nothing has been sent, the list of messages is empty.
Setting up the webhook of an API key. As long as nothing has been sent, the list of messages is empty.
  1. In the overview of API keys, click the satellite dish next to the key.
  2. Under Webhook URL, enter the address where your server receives the messages. The address must start with https://.
  3. Click Save.

You then get the secret your server uses to check that a message really comes from Sellow. With the test message button you can try the connection right away. To stop receiving messages, empty the field and save.

Message When Sellow sends it
ticketing.order.paid A ticket order has been paid and the tickets have been created, also for a free order with a discount code.
ticketing.order.canceled You cancelled a paid order. The tickets are no longer valid.
ticketing.order.refunded You marked an order as refunded. The tickets are no longer valid.
test You sent a test message.

You only receive messages the key has permission for. For ticket orders that is ticketing:read.

Under Recent messages you see the last 20 messages, with the status, the number of attempts and your server's last response. If delivery fails, Sellow tries again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours. After seven attempts Sellow stops with that message.

Good to know

The technical details, such as the content of a message and how to check the secret, are in the API documentation. Pass that link on to your web developer.

Updated on