API Reference
Every endpoint and webhook of the Briqpay API v3, with its fields and examples, and a way to try it against the playground. For how the pieces fit together, start with the Documentation.
For AI tools: this page as Markdown, llms.txt (every page as Markdown) and the OpenAPI spec.
Base URLs and authentication
- Playground
https://playground-api.briqpay.com - Production
https://api.briqpay.com
Every request uses HTTP Basic authentication, with your merchant ID as the username and your secret as the password: Authorization: Basic <base64(merchantId:secret)>.
Sections
- Authentication
Every request uses HTTP Basic authentication, with your merchant ID as the username and your secret as the password. To give access to something you trust less than your own backend, generate a secret that expires after a set time, only works for one session, or only allows the operations you list.
- Session Management
Briqpay's API allows you to create and manage sessions that are used throughout the payment/signup flow. Our solution is built using an iframe, which enables Briqpay to collect all the necessary customer information and provide your integration with all the relevant data post-purchase. The first step in integrating with Briqpay is to create a session using our API.
- Order Management
Handle an order after the purchase: capture it when you ship, refund a capture, cancel an authorized order you won't ship, release what's left after a partial capture, or update the cart and references. Which of these an order supports depends on its payment provider.
- Hosted Page
Send the customer to a payment page Briqpay hosts, instead of embedding the checkout on your own site. Create a session first, then create a hosted page for it with the session's ID.
- Tokenized Payment Methods
Charge a customer's saved payment method (a token) without them going through the checkout again. A charge uses the same endpoint as Create session, with the
payment_charge_tokenintent, and the order that comes back is managed like any other. You can also read, update and deactivate a token. - Outgoing Webhooks
These are not API endpoints you call. They describe the POST payloads that Briqpay sends to your configured webhook URLs when events occur. Configure webhook subscriptions using the
hooksarray when creating a session. See the Webhooks Guide for HMAC signature verification and additional details.