Skip to main content

API Customer Login

This is a plugin for pretix.

Short description

API endpoints

In addition to customer login and payment helpers, the plugin provides an endpoint for refunding an order to a newly issued gift card. This is the API equivalent of the backend workflow “Refund to new gift card”. Since pretix 2026.10 the core refund API rejects provider: "giftcard" (CVE-2026-101273), so this plugin endpoint is the supported way to trigger this workflow from an API client.

POST /api/v1/organizers/{organizer}/events/{event}/giftcard_refunds/create/

Requires the event.orders:write event permission. Parameters:

  • order_code (required): code of an order of the given event.

  • amount (optional): amount to refund. Must be positive and must not exceed the still refundable amount of the order. If omitted, the full refundable amount is used.

  • comment (optional): refund reason, also stored on the gift card transaction.

  • expires (optional): expiry date in YYYY-MM-DD format. If omitted, the organizer’s default gift card expiry is used. Pass null for no expiry.

  • conditions (optional): special terms and conditions for the new gift card.

The response contains the created refund (already in state done) and the giftcard including its secret code. The order row is locked while the refund is processed, so concurrent refunds cannot over-refund the order.

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository.

  3. Activate the virtual environment you use for pretix development.

  4. Execute python setup.py develop within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

This plugin has CI set up to enforce a few code style rules. To check locally, you need these packages installed:

pip install flake8 isort black

To check your plugin for rule violations, run:

black --check .
isort -c .
flake8 .

You can auto-fix some of these issues by running:

isort .
black .

To automatically check for these issues before you commit, you can run .install-hooks.

License

Copyright 2026 XenonCloud

Released under the terms of the Apache License 2.0

Metadata

Release files for pretix-apicustomerlogin 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretix-apicustomerlogin 1.0.4
File Size Uploaded Provenance Actions
pretix_apicustomerlogin-1.0.4.tar.gz 10.0 kB Without provenance Details for pretix_apicustomerlogin-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pretix-apicustomerlogin 1.0.4
File Interpreter ABI Platform Actions
pretix_apicustomerlogin-1.0.4-py3-none-any.whl Python 3 none any Details for pretix_apicustomerlogin-1.0.4-py3-none-any.whl

Total release size: 19.9 kB

Release files / pretix_apicustomerlogin-1.0.4.tar.gz

Download URL pretix_apicustomerlogin-1.0.4.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
008ede2b56be2a1e06ebb0c0b2e6f5c57258c50d28911d8164a21dfc5b964d06
BLAKE2b-256 checksum
How to use checksums
e55b75361c4695c46bb1e227ac1278437aa9baf18ea64e4186e1fe6bb2b23d90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / pretix_apicustomerlogin-1.0.4-py3-none-any.whl

Download URL pretix_apicustomerlogin-1.0.4-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f364a6119ad4c8d805bc0bfc78523ba7431647a280cb3cc5e439019be28b6a3c
BLAKE2b-256 checksum
How to use checksums
73fd2dcc3cca684b8f7df0c27b14de24c3d113d16e708dbfe23f032bb51cafae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for pretix-apicustomerlogin 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page