One integration for every payment method.
Guides, concepts and the full API reference for building with Briqpay.
Create a session
curl -X POST 'https://playground-api.briqpay.com/v3/session' \
-H 'Authorization: Basic <base64(merchantId:secret)>' \
-H 'Content-Type: application/json' \
-d '{
"product": {
"type": "payment",
"intent": "payment_one_time"
},
"customerType": "consumer",
"country": "SE",
"locale": "sv-se",
"urls": {
"terms": "https://example.com/terms",
"redirect": "https://example.com/redirect"
},
"hooks": [
{
"eventType": "order_status",
"statuses": [
"order_pending",
"order_rejected",
"order_cancelled",
"order_approved_not_captured"
],
"method": "POST",
"url": "https://example.com/notifications"
},
{
"eventType": "capture_status",
"statuses": [
"pending",
"approved",
"rejected"
],
"method": "POST",
"url": "https://example.com/notifications"
},
{
"eventType": "refund_status",
"statuses": [
"pending",
"approved",
"rejected"
],
"method": "POST",
"url": "https://example.com/notifications"
}
],
"data": {
"order": {
"currency": "SEK",
"amountIncVat": 2700,
"amountExVat": 2160,
"cart": [
{
"productType": "physical",
"reference": "testproduct1",
"name": "Test product",
"quantity": 2,
"quantityUnit": "pc",
"unitPrice": 1200,
"taxRate": 2500,
"discountPercentage": 1000,
"unitDiscountAmountIncVat": 120
}
]
},
"billing": {
"firstName": "Anna",
"lastName": "Andersson",
"email": "anna@example.com",
"phoneNumber": "+46701234567",
"streetAddress": "Storgatan 1",
"zip": "11122",
"city": "Stockholm",
"country": "SE"
},
"shipping": {
"firstName": "Anna",
"lastName": "Andersson",
"email": "anna@example.com",
"phoneNumber": "+46701234567",
"streetAddress": "Storgatan 1",
"zip": "11122",
"city": "Stockholm",
"country": "SE"
}
},
"modules": {
"loadModules": [
"payment"
]
}
}'curl -X POST 'https://playground-api.briqpay.com/v3/session' \
-H 'Authorization: Basic <base64(merchantId:secret)>' \
-H 'Content-Type: application/json' \
-d '{
"product": {
"type": "payment",
"intent": "payment_one_time"
},
"customerType": "business",
"country": "SE",
"locale": "sv-se",
"urls": {
"terms": "https://example.com/terms",
"redirect": "https://example.com/redirect"
},
"hooks": [
{
"eventType": "order_status",
"statuses": [
"order_pending",
"order_rejected",
"order_cancelled",
"order_approved_not_captured"
],
"method": "POST",
"url": "https://example.com/notifications"
},
{
"eventType": "capture_status",
"statuses": [
"pending",
"approved",
"rejected"
],
"method": "POST",
"url": "https://example.com/notifications"
},
{
"eventType": "refund_status",
"statuses": [
"pending",
"approved",
"rejected"
],
"method": "POST",
"url": "https://example.com/notifications"
}
],
"data": {
"order": {
"currency": "SEK",
"amountIncVat": 2700,
"amountExVat": 2160,
"cart": [
{
"productType": "physical",
"reference": "testproduct1",
"name": "Test product",
"quantity": 2,
"quantityUnit": "pc",
"unitPrice": 1200,
"taxRate": 2500,
"discountPercentage": 1000,
"unitDiscountAmountIncVat": 120
}
]
},
"invoiceDetails": {
"reference": "invoice-ref-123",
"email": "test@test.com"
}
}
}'curl -X POST 'https://playground-api.briqpay.com/v3/session' \
-H 'Authorization: Basic <base64(merchantId:secret)>' \
-H 'Content-Type: application/json' \
-d '{
"product": {
"type": "signup",
"intent": "signup"
},
"customerType": "business",
"country": "SE",
"locale": "sv-se",
"urls": {
"redirect": "https://example.com/redirect"
},
"hooks": [
{
"eventType": "session_status",
"statuses": [
"completed"
],
"method": "POST",
"url": "https://example.com/notifications"
}
]
}'Runs against the playground. Every field is explained in Create session.
From first request to captured order
Read the guideGuides
Integration guides
- Payment ModuleAdd Briqpay's payment step to your own checkout.
- Sign-upLet a business customer register through Briqpay without making a purchase.
- AuthenticationEvery Briqpay API request uses HTTP Basic authentication with your merchant ID and a secret.
- Order line typesEvery cart line has a productType.
- Prefill dataSend what you already know about the order and the customer in the data object when you create a session, so the customer does not have to type it again.
The API
API Reference- Playground
https://playground-api.briqpay.com- Production
https://api.briqpay.com
Requests use HTTP Basic authentication, with your merchant ID and a secret from the Merchant Portal. Authentication has the details.
Latest changes
Changelog, API
Prefill invoice details when creating a session
, API
Cancels can now finish later
, API
Clearer error for scoped secrets with an unknown session
, Documentation
pspMetadata documented on the order_status webhook
For AI tools: llms.txt (every page as Markdown) and the OpenAPI spec.