Auto check-in rules¶
This feature requires the bundled pretix.plugins.autocheckin plugin to be active for the event in order to work properly.
Resource description¶
Auto check-in rules specify that tickets should under specific conditions automatically be considered checked in after they have been purchased.
Field |
Type |
Description |
|---|---|---|
id |
integer |
Internal ID of the rule |
list |
integer |
ID of the check-in list to check the ticket in on. If
|
mode |
string |
|
all_sales_channels |
boolean |
If |
limit_sales_channels |
list of strings |
List of sales channel identifiers the rule should apply to
if |
all_products |
boolean |
If |
limit_products |
list of integers |
List of item IDs, if |
limit_variations |
list of integers |
List of product variation IDs, if |
all_payment_methods |
boolean |
If |
limit_payment_methods |
list of strings |
List of payment method identifiers the rule should apply to
if |
Added in version 2024.7.
Endpoints¶
- GET /api/v1/organizers/(organizer)/events/(event)/auto_checkin_rules/¶
Returns a list of all rules configured for an event.
Example request:
GET /api/v1/organizers/bigevents/events/sampleconf/auto_checkin_rules/ HTTP/1.1 Host: pretix.eu Accept: application/json, text/javascript
Example response:
HTTP/1.1 200 OK Vary: Accept Content-Type: application/json { "count": 1, "next": null, "previous": null, "results": [ { "id": 1, "list": 12345, "mode": "placed", "all_sales_channels": false, "limit_sales_channels": ["web"], "all_products": false, "limit_products": [2, 3], "limit_variations": [456], "all_payment_methods": true, "limit_payment_methods": [] } ] }
- Query Parameters:
page – The page number in case of a multi-page result set, default is 1
- Parameters:
organizer – The
slugfield of a valid organizerevent – The
slugfield of the event to fetch
- Status Codes:
200 OK – no error
401 Unauthorized – Authentication failure
403 Forbidden – The requested organizer does not exist or you have no permission to view it.
- GET /api/v1/organizers/(organizer)/events/(event)/auto_checkin_rules/(id)/¶
Returns information on one rule, identified by its ID.
Example request:
GET /api/v1/organizers/bigevents/events/sampleconf/auto_checkin_rules/1/ HTTP/1.1 Host: pretix.eu Accept: application/json, text/javascript
Example response:
HTTP/1.1 200 OK Vary: Accept Content-Type: application/json { "id": 1, "list": 12345, "mode": "placed", "all_sales_channels": false, "limit_sales_channels": ["web"], "all_products": false, "limit_products": [2, 3], "limit_variations": [456], "all_payment_methods": true, "limit_payment_methods": [] }
- Parameters:
organizer – The
slugfield of the organizer to fetchevent – The
slugfield of the event to fetchid – The
idfield of the rule to fetch
- Status Codes:
200 OK – no error
401 Unauthorized – Authentication failure
403 Forbidden – The requested organizer/event/rule does not exist or you have no permission to view it.
- POST /api/v1/organizers/(organizer)/events/(event)/auto_checkin_rules/¶
Create a new rule.
Example request:
POST /api/v1/organizers/bigevents/events/sampleconf/auto_checkin_rules/ HTTP/1.1 Host: pretix.eu Accept: application/json, text/javascript Content-Type: application/json Content-Length: 166 { "list": 12345, "mode": "placed", "all_sales_channels": false, "limit_sales_channels": ["web"], "all_products": false, "limit_products": [2, 3], "limit_variations": [456], "all_payment_methods": true, "limit_payment_methods": [] }
Example response:
HTTP/1.1 201 Created Vary: Accept Content-Type: application/json { "id": 1, "list": 12345, "mode": "placed", "all_sales_channels": false, "limit_sales_channels": ["web"], "all_products": false, "limit_products": [2, 3], "limit_variations": [456], "all_payment_methods": true, "limit_payment_methods": [] }
- Parameters:
organizer – The
slugfield of the organizer to create a rule forevent – The
slugfield of the event to create a rule for
- Status Codes:
201 Created – no error
400 Bad Request – The rule could not be created due to invalid submitted data.
401 Unauthorized – Authentication failure
403 Forbidden – The requested organizer/event does not exist or you have no permission to create rules.
- PATCH /api/v1/organizers/(organizer)/events/(event)/auto_checkin_rules/(id)/¶
Update a rule. You can also use
PUTinstead ofPATCH. WithPUT, you have to provide all fields of the resource, other fields will be reset to default. WithPATCH, you only need to provide the fields that you want to change.Example request:
PATCH /api/v1/organizers/bigevents/events/sampleconf/auto_checkin_rules/1/ HTTP/1.1 Host: pretix.eu Accept: application/json, text/javascript Content-Type: application/json Content-Length: 34 { "mode": "paid", }
Example response:
HTTP/1.1 200 OK Vary: Accept Content-Type: text/javascript { "id": 1, "list": 12345, "mode": "placed", "all_sales_channels": false, "limit_sales_channels": ["web"], "all_products": false, "limit_products": [2, 3], "limit_variations": [456], "all_payment_methods": true, "limit_payment_methods": [] }
- Parameters:
organizer – The
slugfield of the organizer to modifyevent – The
slugfield of the event to modifyid – The
idfield of the rule to modify
- Status Codes:
200 OK – no error
400 Bad Request – The rule could not be modified due to invalid submitted data.
401 Unauthorized – Authentication failure
403 Forbidden – The requested organizer/event/rule does not exist or you have no permission to change it.
- DELETE /api/v1/organizers/(organizer)/events/(event)/auto_checkin_rules/(id)/¶
Delete a rule.
Example request:
DELETE /api/v1/organizers/bigevents/events/sampleconf/auto_checkin_rules/1/ HTTP/1.1 Host: pretix.eu Accept: application/json, text/javascript
Example response:
HTTP/1.1 204 No Content Vary: Accept
- Parameters:
organizer – The
slugfield of the organizer to modifyevent – The
slugfield of the event to modifyid – The
idfield of the rule to delete
- Status Codes:
204 No Content – no error
401 Unauthorized – Authentication failure
403 Forbidden – The requested organizer/event/rule does not exist or you have no permission to change it or this rule cannot be deleted since it is currently in use.