Skip to content
Developers

Search the guides, the API reference and the changelog.

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"
    ]
  }
}'

Runs against the playground. Every field is explained in Create session.

From first request to captured order

Read the guide
  1. Create a session
  2. Show the payment step
  3. Keep the session in sync
  4. Approve the purchase
  5. Handle the completed order
  6. Capture, cancel and refund

Guides

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
  1. , API

    Prefill invoice details when creating a session

  2. , API

    Cancels can now finish later

  3. , API

    Clearer error for scoped secrets with an unknown session

  4. , Documentation

    pspMetadata documented on the order_status webhook

For AI tools: llms.txt (every page as Markdown) and the OpenAPI spec.