Skip to content
Developers

Search the guides, the API reference and the changelog.

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.

Create session

POST /v3/session

Section: Session Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

Create a Briqpay session for Checkout, Signup or Payment Module.

  • To get started, take a look at the examples on the right:
    Checkout, Signup or Payment Module
  • Read about Authentication

Query parameters

  • fields (string): Limit which fields are returned by the API. The fields query parameter takes a comma-separated list of fields or 'none'. Example: fields=sessionId,htmlSnippet. If 'none' is specified, an empty 204 will be returned.

Headers

  • Content-Type (string, one of: "application/json")
  • Accept (string, one of: "application/json")
  • Authorization (string): Format: "Basic <base64(username:secret)>"

Request body

  • product (object, required)
    • type (string, required, one of: "payment", "signup"): Type of Briqpay product.
    • intent (string, required, one of: "payment_one_time", "payment_tokenize", "payment_tokenize_and_charge", "payment_charge_token", "signup")
    • variantId (string): Provide this if you have created an alternate variant configuration in the backoffice that you want to use.
  • customerType (string, required, one of: "business", "consumer"): Which type of customer this session is for.
  • country (string, required): Country code in ISO 3166-1 alpha-2 format.
  • locale (string, required): Locale in "sv-se" / "en-gb" format.
  • urls (object, required)
    • terms (string): URL to your terms & conditions, will be shown in the iframe. Required when product.type is 'payment'.
    • redirect (string, required): URL that users will be redirected to after completing the session. Usually some sort of thank-you page.
    • withdrawalAndReturns (string): URL to your withdrawal and returns policy.
  • references (object): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: { "reference1": "000", "customerId": "12345" }
  • hooks (array, each one of 4 shapes, max items 10): SECURITY: It is strongly recommended to verify incoming webhooks using the HMAC signature provided in the x-briq-signature header. See our main Webhooks Guide for details. Subscribe to events submitted by Briqpay. The hook response consists of "event", "status" and "sessionId". If using "GET", the response parameters will be sent as query parameters and when using "POST" it will be sent as the request body. See the Outgoing Webhooks reference for full payload schemas and examples for each event type: session_status, order_status, capture_status, refund_status.
    • One of, option 1 (Session status):
      • eventType (string, one of: "session_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 2 (Order status):
      • eventType (string, one of: "order_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 3 (Capture status):
      • eventType (string, one of: "capture_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 4 (Refund status):
      • eventType (string, one of: "refund_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
  • config (object): General configuration for this session.
    • disableInsightsTracking (boolean, default false): Disable Briqpay Insights tracking for this session.
    • disableSessionCompleteRedirect (boolean, default false): Disable session complete redirect for this session.
    • realTimeProcessing (boolean, default false): Enable instant order flow processing. When set to true, webhooks and status updates are delivered immediately instead of being processed in batches, providing faster notifications and near real-time status changes for your integration. Important: When real-time processing is enabled, event delivery order is not guaranteed. Events are sent as soon as they become available and may arrive out of sequence or in close succession. Your integration must be designed to handle potential race conditions and out-of-order event delivery.
  • data (object): Provide data such as billing details and cart items.
    • order (object): The order object contains all information about cart items, amounts and tax/vat. For the EU, VAT is represented with 'taxRate' on every item. For the US, all tax should be calculated into an item with the "sales_tax" productType.
      • currency (string, required): Example: SEK, EUR, USD
      • amountIncVat (integer, required): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer, required): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • cart (array, each one of 3 shapes, required)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
    • company (object): The company object can only be provided for customerType: "business".
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • name (string, nullable): Name of the company
    • consumer (object): The consumer object can only be provided for customerType: "consumer".
      • identificationNumber (string): National identification number, social security number or similar. Not applicable for the US.
      • dateOfBirth (string): Date of birth (YYYY-MM-DD).
      • name (string): Name of the person.
    • billing (object)
      • streetAddress (string, max length 100)
      • streetAddress2 (string, max length 100)
      • zip (string, max length 100)
      • city (string, max length 100)
      • region (string, max length 100): State / region. Example: "CA" for California in the US.
      • firstName (string, max length 100)
      • lastName (string, max length 100)
      • email (string, max length 100)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shipping (object)
      • streetAddress (string, max length 100)
      • streetAddress2 (string, max length 100)
      • zip (string, max length 100)
      • city (string, max length 100)
      • region (string, max length 100): State / region. Example: "CA" for California in the US.
      • firstName (string, max length 100)
      • lastName (string, max length 100)
      • email (string, max length 100)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • tokenization (object)
      • tokenId (string, required): The token to charge for sessions with product.intent: "payment_charge_token".
    • billingAddresses (array of object, max items 256): This data will only be visible when using the billing module, the addresses will be available for selection in the address dropdown. This feature will have to be enabled by Briqpay before it can be used.
      • companyName (string, nullable, max length 100)
      • streetAddress (string, nullable, max length 100)
      • streetAddress2 (string, nullable, max length 100)
      • zip (string, nullable, max length 100)
      • city (string, nullable, max length 100)
      • region (string, nullable, max length 100): State / region. Example: "CA" for California in the US.
      • firstName (string, nullable, max length 100)
      • lastName (string, nullable, max length 100)
      • email (string, nullable, max length 100)
      • phoneNumber (string, nullable)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shippingAddresses (array of object, max items 256): This data will only be visible when using the shipping module, the addresses will be available for selection in the address dropdown. This feature will have to be enabled by Briqpay before it can be used.
      • companyName (string, nullable, max length 100)
      • streetAddress (string, nullable, max length 100)
      • streetAddress2 (string, nullable, max length 100)
      • zip (string, nullable, max length 100)
      • city (string, nullable, max length 100)
      • region (string, nullable, max length 100): State / region. Example: "CA" for California in the US.
      • firstName (string, nullable, max length 100)
      • lastName (string, nullable, max length 100)
      • email (string, nullable, max length 100)
      • phoneNumber (string, nullable)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • invoiceDetails (object): Pre-fills invoicing fields in checkout; ignored by payment methods that don't collect them, and buyer edits take precedence. Where collected, read back after payment via data.paymentAdditionalFields on the session response.
      • gln (string, nullable, min length 3, max length 256): GLN / EAN for EDI invoicing.
      • reference (string, nullable, min length 3, max length 256): Customer or invoice reference.
      • email (string, nullable, min length 3, max length 256): Alternative email address for the invoice, when it differs from the billing email.
      • orderNumber (string, nullable, min length 1, max length 256): The buyer's internal purchase order number.
  • modules (object): Configure the module system.
    • loadModules (array of string): Override which partial set of modules should be loaded, e.g. when you only want payments instead of a full flow.
    • config (object): Configure modules.
      • company_lookup (object)
        • companyPrefillLock (string, one of: "none", "locked_with_manual_fallback")
      • billing (object)
        • lockFields (object): Prevent users from editing addresses and user details. "hard_lock" - no user edits are possible, even with invalid data. "soft_lock" - empty or invalid fields will not be locked.
      • shipping (object)
        • lockFields (object): Prevent users from editing addresses and user details. "hard_lock" - no user edits are possible, even with invalid data. "soft_lock" - empty or invalid fields will not be locked.
      • payment (object)
        • decision (object): Configure to enable or disable decision for a payment session, Read more
          • enabled (boolean): Should decision be enabled?
        • pspRulesOverride (object): Override rules for payment methods in order to show or hide payment methods.
          • psp (array of object)
            • pspId (string): The pspId of the payment method that you wish to manually control.
            • handles (object, required)
              • enabled (boolean): Should this payment method be enabled?
              • locked (boolean): Should this payment method be locked?
              • strongAuth (boolean): Should Strong Authentication be required for this payment method?
            • config (object)
              • lockedMessage (string)
              • strongAuthMessage (string)
            • otherHandles (string, required, one of: "run_rules", "disable"): How should other handles (locked, strongAuth, etc) configured on this payment method act?
          • otherPsps (string, one of: "disable", "run_rules")
      • signup (object)
        • decision (object): Configure to enable or disable decision for a signup session, Read more
          • enabled (boolean): Should decision be enabled?
      • order_note (object): Set/override which inputs will be collected in the Order note module.
        • customInputs (array of object): Inputs that will be collected in the Order note module.
          • type (string, one of: "string", "boolean", "object")
          • key (string): The input key, must be unique between all inputs.
          • label (string): The label to be presented in relation to the input.
          • minLength (number)
          • maxLength (number)
          • required (boolean, default false)
          • span (number, one of: "1", "2"): Control if the input field should span over 1 or 2 columns.
          • enum (array of string): Configure available values when using a "enumRadio" or "enumDropdown" component.
          • component (string, one of: "textField", "textArea", "checkbox", "enumRadio", "enumDropdown")
        • hideModule (boolean)
      • terms (object): Set/override which checkboxes exists in the Terms Module.
        • checkboxes (array of object): Checkboxes that will be collected in the Terms module.
          • key (string): The input key, must be unique between all inputs.
          • label (string): The label to be presented in relation to the input. Can be formatted with urls as following: "Yes, I want to subscribe to the [Newsletter](https://example.com)"
          • required (boolean, nullable, default false)
          • default (boolean, nullable, default false)
      • upsell (object): Configure which inputs will be collected in the Upsell module.
        • customInputs (array of object): Inputs that will be collected in the Upsell module.
          • type (string, one of: "string", "boolean", "object")
          • key (string): The input key, must be unique between all inputs.
          • label (string): The label to be presented in relation to the input.
          • minLength (number)
          • maxLength (number)
          • required (boolean, default false)
          • span (number, one of: "1", "2"): Control if the input field should span over 1 or 2 columns.
          • enum (array of string): Configure available values when using a "enumRadio" or "enumDropdown" component.
          • component (string, one of: "textField", "textArea", "checkbox", "enumRadio", "enumDropdown")
        • hideModule (boolean)
        • header (string, max length 64): Module header text.
        • subheader (string, max length 512): Module sub-header text.
        • footer (string, max length 512): Module footer text.

Request examples

Payment module

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

Checkout

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

Signup

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

Responses

201

  • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
  • sessionId (string): UUID
  • status (string, one of: "started", "modules_in_progress", "completed"): Status of the session. Does not indicate status of payments, that can be read from moduleStatus.payment.orderStatus.
  • product (object)
    • type (string, required, one of: "payment", "signup"): Type of Briqpay product.
    • intent (string, required, one of: "payment_one_time", "payment_tokenize", "payment_tokenize_and_charge", "payment_charge_token", "signup")
    • id (string, deprecated)
    • variantId (string): Provide this if you have created an alternate variant configuration in the backoffice that you want to use.
  • customerType (string, one of: "business", "consumer"): Which type of customer this session is for.
  • country (string): Country code in ISO 3166-1 alpha-2 format.
  • locale (string): Locale in "sv-se" / "en-gb" format.
  • urls (object)
    • terms (string): URL to your terms & conditions, will be shown in the iframe. Required when product.type is 'payment'.
    • redirect (string, required): URL that users will be redirected to after completing the session. Usually some sort of thank-you page.
    • withdrawalAndReturns (string): URL to your withdrawal and returns policy.
  • references (object): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: { "reference1": "000", "customerId": "12345" }
  • hooks (array, each one of 4 shapes, max items 10): SECURITY: It is strongly recommended to verify incoming webhooks using the HMAC signature provided in the x-briq-signature header. See our main Webhooks Guide for details. Subscribe to events submitted by Briqpay. The hook response consists of "event", "status" and "sessionId". If using "GET", the response parameters will be sent as query parameters and when using "POST" it will be sent as the request body. See the Outgoing Webhooks reference for full payload schemas and examples for each event type: session_status, order_status, capture_status, refund_status.
    • One of, option 1 (Session status):
      • eventType (string, one of: "session_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 2 (Order status):
      • eventType (string, one of: "order_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 3 (Capture status):
      • eventType (string, one of: "capture_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 4 (Refund status):
      • eventType (string, one of: "refund_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
  • htmlSnippet (string): The easiest way to render an iframe, simply add the html snippet where you want.
  • clientToken (string): Can be used with the client SDK to render iframes.
  • moduleStatus (object): States of individual modules.
    • company_lookup (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • billing (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • shipping (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • payment (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
      • orderStatus (string, one of: "order_pending", "order_rejected", "order_cancelled", "order_cancel_pending", "order_approved_not_captured", "captured_partial", "captured_full"): Order status in the checkout / payment module. order_cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider; the authorization is still live until it resolves.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
  • data (object)
    • company (object): Only available when the session is completed.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • vatNumber (string, nullable): Company EU VAT number. Only available with some lookup providers & countries.
      • name (string): Company name.
    • vatValidation (object)
      • vatNo (string)
      • valid (boolean)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • consumer (object)
      • identificationNumber (string): National identification number, social security number or similar.
      • dateOfBirth (string): Date of birth (YYYY-MM-DD).
      • name (string): Name of the person.
    • billing (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shipping (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • order (object)
      • currency (string): Example: SEK, EUR, USD
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
    • transactions (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • expiresAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • transactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • secondaryReservationId (string): If the PSP provides an additional important reference (e.g., one shown in reports or reconciliation files), it will be returned here. It serves the same purpose as reservationId: to help with reconciliation and order lookups.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected", "cancelled", "cancel_pending", "expired"): cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider. expired means the authorization is no longer valid and the order can no longer be captured.
      • captureStatus (string, one of: "not_captured", "partially_captured", "fully_captured", "partially_captured_and_released"): Capture state of the transaction. partially_captured_and_released means a partial amount was captured and the remaining uncaptured amount has been permanently released, so nothing further can be captured.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • autoCaptureEnabled (boolean): Whether Briqpay will schedule an automatic capture for this transaction when approved. When true, the merchant does not need to send a capture request.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • cancel (object)
          • apiTransactionId (string)
        • capture (object)
          • apiTransactionId (string)
        • refund (object)
          • apiTransactionId (string)
    • captures (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • captureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • autoCaptured (boolean): Whether the transaction was automatically captured by the Briqpay system or not.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • refund (object)
          • apiTransactionId (string)
      • merchantCaptureReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the capture for merchant-side traceability. Returned on this capture in GET session responses and included in the capture webhook payload.
    • refunds (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • refundId (string)
      • parentCaptureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • merchantRefundReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the refund for merchant-side traceability. Returned on this refund in GET session responses and included in the refund webhook payload.
    • paymentTags (object): Only available when the session is completed. Tags on the payment method used for the initial payment. Example: "prepaid_invoice", "manual_review".
    • paymentAdditionalFields (object): Only available when the session is completed. Additional fields collected on the payment method used for the initial payment.
    • pspMetadata (object): PSP specific information related to the payment transaction. Only available when the session is completed and for certain psps
      • customerFacingReference (string): Payment reference given to the customer by the psp.
      • description (string): Description of the underlying payment method selected by the customer.
      • type (string): The type of payment used for the transaction.
      • payerEmail (string): The email of the payer.
      • payerFirstName (string): The first name of the payer.
      • payerLastName (string): The last name of the payer.
      • pspConsumedGiftcards (object): Details of gift cards used and the remaining balance.
        • giftcards (array of object)
          • amount (integer)
          • currency (string)
          • issuer (string)
          • voucherNumber (string)
        • remainderAmount (integer)
        • remainderCurrency (string)
        • remainderMethod (string)
    • orderNote (object): Only available when the session is completed. Object containing order notes submitted by the user. The default structure of the object, unless modified by including config for the order_note module, is { "note": { "value": "Note goes here" } }
    • customForm1 (object): Only available when the session is completed. Contains the form data of the custom form module.
    • terms (object): Only available when the session is completed. Contains data for the checkboxes of the terms module.
    • strongAuth (object)
      • provider (string)
      • output (object)
        • signedAt (string)
        • name (string)
        • surname (string)
        • givenName (string)
        • dateOfBirth (string)
        • validateSigneeIsCompanySignatory (boolean)
        • signeeIsCompanySignatory (string, nullable, one of: "unknown", "approved", "rejected")
    • companyExtraData (object)
      • output (object)
        • fields (object): Example: { "score": 50, "netTurnover": 2155 }
    • tokenization (object)
      • tokenId (string): The token related to a tokenized payment method.

204

No content.

400

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_DATA", "UNKNOWN")
    • message (string)

403

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_API_KEY", "AUTH_SECRET_EXPIRED")
    • message (string)

Read session

GET /v3/session/{sessionId}

Section: Session Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

Read an ongoing or completed session.

Path parameters

  • sessionId (string, required): Format: UUID

Query parameters

  • fields (string): Limit which fields are returned by the API. The fields query parameter takes a comma-separated list of fields or 'none'. Example: fields=status,data,moduleStatus. If 'none' is specified, an empty 204 will be returned.

Headers

  • Accept (string, one of: "application/json")
  • Authorization (string): Format: "Basic <base64(username:secret)>"

Request example

curl -X GET 'https://playground-api.briqpay.com/v3/session/{sessionId}' \
  -H 'Authorization: Basic <base64(merchantId:secret)>'

Responses

200

  • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
  • sessionId (string): UUID
  • status (string, one of: "started", "modules_in_progress", "completed"): Status of the session. Does not indicate status of payments, that can be read from moduleStatus.payment.orderStatus.
  • product (object)
    • type (string, required, one of: "payment", "signup"): Type of Briqpay product.
    • intent (string, required, one of: "payment_one_time", "payment_tokenize", "payment_tokenize_and_charge", "payment_charge_token", "signup")
    • id (string, deprecated)
    • variantId (string): Provide this if you have created an alternate variant configuration in the backoffice that you want to use.
  • customerType (string, one of: "business", "consumer"): Which type of customer this session is for.
  • country (string): Country code in ISO 3166-1 alpha-2 format.
  • locale (string): Locale in "sv-se" / "en-gb" format.
  • urls (object)
    • terms (string): URL to your terms & conditions, will be shown in the iframe. Required when product.type is 'payment'.
    • redirect (string, required): URL that users will be redirected to after completing the session. Usually some sort of thank-you page.
    • withdrawalAndReturns (string): URL to your withdrawal and returns policy.
  • references (object): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: { "reference1": "000", "customerId": "12345" }
  • hooks (array, each one of 4 shapes, max items 10): SECURITY: It is strongly recommended to verify incoming webhooks using the HMAC signature provided in the x-briq-signature header. See our main Webhooks Guide for details. Subscribe to events submitted by Briqpay. The hook response consists of "event", "status" and "sessionId". If using "GET", the response parameters will be sent as query parameters and when using "POST" it will be sent as the request body. See the Outgoing Webhooks reference for full payload schemas and examples for each event type: session_status, order_status, capture_status, refund_status.
    • One of, option 1 (Session status):
      • eventType (string, one of: "session_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 2 (Order status):
      • eventType (string, one of: "order_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 3 (Capture status):
      • eventType (string, one of: "capture_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 4 (Refund status):
      • eventType (string, one of: "refund_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
  • htmlSnippet (string): The easiest way to render an iframe, simply add the html snippet where you want.
  • clientToken (string): Can be used with the client SDK to render iframes.
  • moduleStatus (object): States of individual modules.
    • company_lookup (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • billing (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • shipping (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • payment (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
      • orderStatus (string, one of: "order_pending", "order_rejected", "order_cancelled", "order_cancel_pending", "order_approved_not_captured", "captured_partial", "captured_full"): Order status in the checkout / payment module. order_cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider; the authorization is still live until it resolves.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
  • data (object)
    • company (object): Only available when the session is completed.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • vatNumber (string, nullable): Company EU VAT number. Only available with some lookup providers & countries.
      • name (string): Company name.
    • vatValidation (object)
      • vatNo (string)
      • valid (boolean)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • consumer (object)
      • identificationNumber (string): National identification number, social security number or similar.
      • dateOfBirth (string): Date of birth (YYYY-MM-DD).
      • name (string): Name of the person.
    • billing (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shipping (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • order (object)
      • currency (string): Example: SEK, EUR, USD
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
    • transactions (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • expiresAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • transactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • secondaryReservationId (string): If the PSP provides an additional important reference (e.g., one shown in reports or reconciliation files), it will be returned here. It serves the same purpose as reservationId: to help with reconciliation and order lookups.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected", "cancelled", "cancel_pending", "expired"): cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider. expired means the authorization is no longer valid and the order can no longer be captured.
      • captureStatus (string, one of: "not_captured", "partially_captured", "fully_captured", "partially_captured_and_released"): Capture state of the transaction. partially_captured_and_released means a partial amount was captured and the remaining uncaptured amount has been permanently released, so nothing further can be captured.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • autoCaptureEnabled (boolean): Whether Briqpay will schedule an automatic capture for this transaction when approved. When true, the merchant does not need to send a capture request.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • cancel (object)
          • apiTransactionId (string)
        • capture (object)
          • apiTransactionId (string)
        • refund (object)
          • apiTransactionId (string)
    • captures (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • captureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • autoCaptured (boolean): Whether the transaction was automatically captured by the Briqpay system or not.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • refund (object)
          • apiTransactionId (string)
      • merchantCaptureReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the capture for merchant-side traceability. Returned on this capture in GET session responses and included in the capture webhook payload.
    • refunds (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • refundId (string)
      • parentCaptureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • merchantRefundReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the refund for merchant-side traceability. Returned on this refund in GET session responses and included in the refund webhook payload.
    • paymentTags (object): Only available when the session is completed. Tags on the payment method used for the initial payment. Example: "prepaid_invoice", "manual_review".
    • paymentAdditionalFields (object): Only available when the session is completed. Additional fields collected on the payment method used for the initial payment.
    • pspMetadata (object): PSP specific information related to the payment transaction. Only available when the session is completed and for certain psps
      • customerFacingReference (string): Payment reference given to the customer by the psp.
      • description (string): Description of the underlying payment method selected by the customer.
      • type (string): The type of payment used for the transaction.
      • payerEmail (string): The email of the payer.
      • payerFirstName (string): The first name of the payer.
      • payerLastName (string): The last name of the payer.
      • pspConsumedGiftcards (object): Details of gift cards used and the remaining balance.
        • giftcards (array of object)
          • amount (integer)
          • currency (string)
          • issuer (string)
          • voucherNumber (string)
        • remainderAmount (integer)
        • remainderCurrency (string)
        • remainderMethod (string)
    • orderNote (object): Only available when the session is completed. Object containing order notes submitted by the user. The default structure of the object, unless modified by including config for the order_note module, is { "note": { "value": "Note goes here" } }
    • customForm1 (object): Only available when the session is completed. Contains the form data of the custom form module.
    • terms (object): Only available when the session is completed. Contains data for the checkboxes of the terms module.
    • strongAuth (object)
      • provider (string)
      • output (object)
        • signedAt (string)
        • name (string)
        • surname (string)
        • givenName (string)
        • dateOfBirth (string)
        • validateSigneeIsCompanySignatory (boolean)
        • signeeIsCompanySignatory (string, nullable, one of: "unknown", "approved", "rejected")
    • companyExtraData (object)
      • output (object)
        • fields (object): Example: { "score": 50, "netTurnover": 2155 }
    • tokenization (object)
      • tokenId (string): The token related to a tokenized payment method.

204

No content.

400

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "UNKNOWN")
    • message (string)

403

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_API_KEY", "AUTH_SECRET_EXPIRED")
    • message (string)

404

  • error (object)
    • code (string, one of: "SESSION_NOT_FOUND")
    • message (string)

Update session

PATCH /v3/session/{sessionId}

Section: Session Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

Update data of a session such as order data, billing details or config for some modules.
Only data that you wish to update has to be provided.
It is not possible to update a session after it has been completed.

Path parameters

  • sessionId (string, required): Format: UUID

Query parameters

  • fields (string): Limit which fields are returned by the API. The fields query parameter takes a comma-separated list of fields or 'none'. Example: fields=data. If 'none' is specified, an empty 204 will be returned.

Headers

  • Content-Type (string, one of: "application/json")
  • Accept (string, one of: "application/json")
  • Authorization (string): Format: "Basic <base64(username:secret)>"

Request body

  • data (object): Provide data such as billing details and cart items.
    • order (object): The order object contains all information about cart items, amounts and tax/vat. For the EU, VAT is represented with 'taxRate' on every item. For the US, all tax should be calculated into an item with the "sales_tax" productType.
      • currency (string, required): Example: SEK, EUR, USD
      • amountIncVat (integer, required): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer, required): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • cart (array, each one of 3 shapes, required)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
    • company (object): The company object can only be provided for customerType: "business".
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • name (string, nullable): Name of the company
    • consumer (object): The consumer object can only be provided for customerType: "consumer".
      • identificationNumber (string): National identification number, social security number or similar. Not applicable for the US.
      • dateOfBirth (string): Date of birth (YYYY-MM-DD).
      • name (string): Name of the person.
    • billing (object)
      • streetAddress (string, max length 100)
      • streetAddress2 (string, max length 100)
      • zip (string, max length 100)
      • city (string, max length 100)
      • region (string, max length 100): State / region. Example: "CA" for California in the US.
      • firstName (string, max length 100)
      • lastName (string, max length 100)
      • email (string, max length 100)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shipping (object)
      • streetAddress (string, max length 100)
      • streetAddress2 (string, max length 100)
      • zip (string, max length 100)
      • city (string, max length 100)
      • region (string, max length 100): State / region. Example: "CA" for California in the US.
      • firstName (string, max length 100)
      • lastName (string, max length 100)
      • email (string, max length 100)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
  • modules (object): Configure the module system.
    • config (object): Configure modules.
      • upsell (object): Configure which inputs will be collected in the Upsell module.
        • customInputs (array of object): Inputs that will be collected in the Upsell module.
          • type (string, one of: "string", "boolean", "object")
          • key (string): The input key, must be unique between all inputs.
          • label (string): The label to be presented in relation to the input.
          • minLength (number)
          • maxLength (number)
          • required (boolean, default false)
          • span (number, one of: "1", "2"): Control if the input field should span over 1 or 2 columns.
          • enum (array of string): Configure available values when using a "enumRadio" or "enumDropdown" component.
          • component (string, one of: "textField", "textArea", "checkbox", "enumRadio", "enumDropdown")
        • hideModule (boolean)
        • header (string, max length 64): Module header text.
        • subheader (string, max length 512): Module sub-header text.
        • footer (string, max length 512): Module footer text.

Request examples

Update order

curl -X PATCH 'https://playground-api.briqpay.com/v3/session/{sessionId}' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json' \
  -d '{
  "data": {
    "order": {
      "currency": "SEK",
      "amountIncVat": 3000,
      "amountExVat": 2400,
      "cart": [
        {
          "productType": "physical",
          "reference": "testproduct1",
          "name": "Test product",
          "quantity": 2,
          "quantityUnit": "pc",
          "unitPrice": 1200,
          "taxRate": 2500,
          "discountPercentage": 0
        }
      ]
    }
  }
}'

Responses

200

  • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
  • sessionId (string): UUID
  • status (string, one of: "started", "modules_in_progress", "completed"): Status of the session. Does not indicate status of payments, that can be read from moduleStatus.payment.orderStatus.
  • product (object)
    • type (string, required, one of: "payment", "signup"): Type of Briqpay product.
    • intent (string, required, one of: "payment_one_time", "payment_tokenize", "payment_tokenize_and_charge", "payment_charge_token", "signup")
    • id (string, deprecated)
    • variantId (string): Provide this if you have created an alternate variant configuration in the backoffice that you want to use.
  • customerType (string, one of: "business", "consumer"): Which type of customer this session is for.
  • country (string): Country code in ISO 3166-1 alpha-2 format.
  • locale (string): Locale in "sv-se" / "en-gb" format.
  • urls (object)
    • terms (string): URL to your terms & conditions, will be shown in the iframe. Required when product.type is 'payment'.
    • redirect (string, required): URL that users will be redirected to after completing the session. Usually some sort of thank-you page.
    • withdrawalAndReturns (string): URL to your withdrawal and returns policy.
  • references (object): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: { "reference1": "000", "customerId": "12345" }
  • hooks (array, each one of 4 shapes, max items 10): SECURITY: It is strongly recommended to verify incoming webhooks using the HMAC signature provided in the x-briq-signature header. See our main Webhooks Guide for details. Subscribe to events submitted by Briqpay. The hook response consists of "event", "status" and "sessionId". If using "GET", the response parameters will be sent as query parameters and when using "POST" it will be sent as the request body. See the Outgoing Webhooks reference for full payload schemas and examples for each event type: session_status, order_status, capture_status, refund_status.
    • One of, option 1 (Session status):
      • eventType (string, one of: "session_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 2 (Order status):
      • eventType (string, one of: "order_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 3 (Capture status):
      • eventType (string, one of: "capture_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 4 (Refund status):
      • eventType (string, one of: "refund_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
  • htmlSnippet (string): The easiest way to render an iframe, simply add the html snippet where you want.
  • clientToken (string): Can be used with the client SDK to render iframes.
  • moduleStatus (object): States of individual modules.
    • company_lookup (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • billing (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • shipping (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • payment (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
      • orderStatus (string, one of: "order_pending", "order_rejected", "order_cancelled", "order_cancel_pending", "order_approved_not_captured", "captured_partial", "captured_full"): Order status in the checkout / payment module. order_cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider; the authorization is still live until it resolves.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
  • data (object)
    • company (object): Only available when the session is completed.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • vatNumber (string, nullable): Company EU VAT number. Only available with some lookup providers & countries.
      • name (string): Company name.
    • vatValidation (object)
      • vatNo (string)
      • valid (boolean)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • consumer (object)
      • identificationNumber (string): National identification number, social security number or similar.
      • dateOfBirth (string): Date of birth (YYYY-MM-DD).
      • name (string): Name of the person.
    • billing (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shipping (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • order (object)
      • currency (string): Example: SEK, EUR, USD
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
    • transactions (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • expiresAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • transactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • secondaryReservationId (string): If the PSP provides an additional important reference (e.g., one shown in reports or reconciliation files), it will be returned here. It serves the same purpose as reservationId: to help with reconciliation and order lookups.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected", "cancelled", "cancel_pending", "expired"): cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider. expired means the authorization is no longer valid and the order can no longer be captured.
      • captureStatus (string, one of: "not_captured", "partially_captured", "fully_captured", "partially_captured_and_released"): Capture state of the transaction. partially_captured_and_released means a partial amount was captured and the remaining uncaptured amount has been permanently released, so nothing further can be captured.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • autoCaptureEnabled (boolean): Whether Briqpay will schedule an automatic capture for this transaction when approved. When true, the merchant does not need to send a capture request.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • cancel (object)
          • apiTransactionId (string)
        • capture (object)
          • apiTransactionId (string)
        • refund (object)
          • apiTransactionId (string)
    • captures (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • captureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • autoCaptured (boolean): Whether the transaction was automatically captured by the Briqpay system or not.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • refund (object)
          • apiTransactionId (string)
      • merchantCaptureReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the capture for merchant-side traceability. Returned on this capture in GET session responses and included in the capture webhook payload.
    • refunds (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • refundId (string)
      • parentCaptureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • merchantRefundReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the refund for merchant-side traceability. Returned on this refund in GET session responses and included in the refund webhook payload.
    • paymentTags (object): Only available when the session is completed. Tags on the payment method used for the initial payment. Example: "prepaid_invoice", "manual_review".
    • paymentAdditionalFields (object): Only available when the session is completed. Additional fields collected on the payment method used for the initial payment.
    • pspMetadata (object): PSP specific information related to the payment transaction. Only available when the session is completed and for certain psps
      • customerFacingReference (string): Payment reference given to the customer by the psp.
      • description (string): Description of the underlying payment method selected by the customer.
      • type (string): The type of payment used for the transaction.
      • payerEmail (string): The email of the payer.
      • payerFirstName (string): The first name of the payer.
      • payerLastName (string): The last name of the payer.
      • pspConsumedGiftcards (object): Details of gift cards used and the remaining balance.
        • giftcards (array of object)
          • amount (integer)
          • currency (string)
          • issuer (string)
          • voucherNumber (string)
        • remainderAmount (integer)
        • remainderCurrency (string)
        • remainderMethod (string)
    • orderNote (object): Only available when the session is completed. Object containing order notes submitted by the user. The default structure of the object, unless modified by including config for the order_note module, is { "note": { "value": "Note goes here" } }
    • customForm1 (object): Only available when the session is completed. Contains the form data of the custom form module.
    • terms (object): Only available when the session is completed. Contains data for the checkboxes of the terms module.
    • strongAuth (object)
      • provider (string)
      • output (object)
        • signedAt (string)
        • name (string)
        • surname (string)
        • givenName (string)
        • dateOfBirth (string)
        • validateSigneeIsCompanySignatory (boolean)
        • signeeIsCompanySignatory (string, nullable, one of: "unknown", "approved", "rejected")
    • companyExtraData (object)
      • output (object)
        • fields (object): Example: { "score": 50, "netTurnover": 2155 }
    • tokenization (object)
      • tokenId (string): The token related to a tokenized payment method.

204

No content.

400

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_DATA", "UNKNOWN")
    • message (string)

403

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_API_KEY", "AUTH_SECRET_EXPIRED")
    • message (string)

404

  • error (object)
    • code (string, one of: "SESSION_NOT_FOUND")
    • message (string)

Update metadata

PATCH /v3/session/{sessionId}/metadata

Section: Session Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

Update metadata of a session such as references and urls.

Path parameters

  • sessionId (string, required): Format: UUID

Query parameters

  • fields (string): Limit which fields are returned by the API. The fields query parameter takes a comma-separated list of fields or 'none'. Example: fields=none. If 'none' is specified, an empty 204 will be returned.

Headers

  • Content-Type (string, one of: "application/json")
  • Accept (string, one of: "application/json")
  • Authorization (string): Format: "Basic <base64(username:secret)>"

Request body

  • urls (object)
    • terms (string): URL to your terms & conditions, will be shown in the iframe. Required when product.type is 'payment'.
    • redirect (string, required): URL that users will be redirected to after completing the session. Usually some sort of thank-you page.
    • withdrawalAndReturns (string): URL to your withdrawal and returns policy.
  • references (object): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: { "reference1": "000", "customerId": "12345" }

Request example

curl -X PATCH 'https://playground-api.briqpay.com/v3/session/{sessionId}/metadata' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json'

No request body example in the spec yet.

Responses

200

  • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
  • sessionId (string): UUID
  • status (string, one of: "started", "modules_in_progress", "completed"): Status of the session. Does not indicate status of payments, that can be read from moduleStatus.payment.orderStatus.
  • product (object)
    • type (string, required, one of: "payment", "signup"): Type of Briqpay product.
    • intent (string, required, one of: "payment_one_time", "payment_tokenize", "payment_tokenize_and_charge", "payment_charge_token", "signup")
    • id (string, deprecated)
    • variantId (string): Provide this if you have created an alternate variant configuration in the backoffice that you want to use.
  • customerType (string, one of: "business", "consumer"): Which type of customer this session is for.
  • country (string): Country code in ISO 3166-1 alpha-2 format.
  • locale (string): Locale in "sv-se" / "en-gb" format.
  • urls (object)
    • terms (string): URL to your terms & conditions, will be shown in the iframe. Required when product.type is 'payment'.
    • redirect (string, required): URL that users will be redirected to after completing the session. Usually some sort of thank-you page.
    • withdrawalAndReturns (string): URL to your withdrawal and returns policy.
  • references (object): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: { "reference1": "000", "customerId": "12345" }
  • hooks (array, each one of 4 shapes, max items 10): SECURITY: It is strongly recommended to verify incoming webhooks using the HMAC signature provided in the x-briq-signature header. See our main Webhooks Guide for details. Subscribe to events submitted by Briqpay. The hook response consists of "event", "status" and "sessionId". If using "GET", the response parameters will be sent as query parameters and when using "POST" it will be sent as the request body. See the Outgoing Webhooks reference for full payload schemas and examples for each event type: session_status, order_status, capture_status, refund_status.
    • One of, option 1 (Session status):
      • eventType (string, one of: "session_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 2 (Order status):
      • eventType (string, one of: "order_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 3 (Capture status):
      • eventType (string, one of: "capture_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
    • One of, option 4 (Refund status):
      • eventType (string, one of: "refund_status")
      • statuses (array of string)
      • method (string, one of: "GET", "POST")
      • url (string)
  • htmlSnippet (string): The easiest way to render an iframe, simply add the html snippet where you want.
  • clientToken (string): Can be used with the client SDK to render iframes.
  • moduleStatus (object): States of individual modules.
    • company_lookup (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • billing (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • shipping (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
    • payment (object)
      • uiStatus (string, one of: "locked_by_merchant", "not_yet_reached", "hidden", "visible", "visible_required", "visible_optional", "completed"): Status of the module in the UI.
      • orderStatus (string, one of: "order_pending", "order_rejected", "order_cancelled", "order_cancel_pending", "order_approved_not_captured", "captured_partial", "captured_full"): Order status in the checkout / payment module. order_cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider; the authorization is still live until it resolves.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
  • data (object)
    • company (object): Only available when the session is completed.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • vatNumber (string, nullable): Company EU VAT number. Only available with some lookup providers & countries.
      • name (string): Company name.
    • vatValidation (object)
      • vatNo (string)
      • valid (boolean)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • consumer (object)
      • identificationNumber (string): National identification number, social security number or similar.
      • dateOfBirth (string): Date of birth (YYYY-MM-DD).
      • name (string): Name of the person.
    • billing (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • shipping (object): Only available when the session is completed.
      • companyName (string): B2B only.
      • cin (string): Company identification number. Example formats: Sweden: Orgnr / VAT Norway: Orgnr / VAT Denmark: CVR / VAT Finland: Business ID / VAT Germany: HRB / VAT Netherlands: KVK / VAT France: SIREN / SIRET / VAT United Kingdom: CRN United States: EIN
      • streetAddress (string)
      • streetAddress2 (string)
      • zip (string)
      • city (string)
      • region (string): State / region. Example: "CA" for California in the US.
      • firstName (string)
      • lastName (string)
      • email (string)
      • phoneNumber (string)
      • country (string): Country code in ISO 3166-1 alpha-2 format.
    • order (object)
      • currency (string): Example: SEK, EUR, USD
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
    • transactions (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • expiresAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • transactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • secondaryReservationId (string): If the PSP provides an additional important reference (e.g., one shown in reports or reconciliation files), it will be returned here. It serves the same purpose as reservationId: to help with reconciliation and order lookups.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected", "cancelled", "cancel_pending", "expired"): cancel_pending means a cancellation has been requested and is awaiting confirmation from the payment provider. expired means the authorization is no longer valid and the order can no longer be captured.
      • captureStatus (string, one of: "not_captured", "partially_captured", "fully_captured", "partially_captured_and_released"): Capture state of the transaction. partially_captured_and_released means a partial amount was captured and the remaining uncaptured amount has been permanently released, so nothing further can be captured.
      • refundStatus (string, one of: "not_refunded", "partially_refunded", "captured_amount_fully_refunded")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • autoCaptureEnabled (boolean): Whether Briqpay will schedule an automatic capture for this transaction when approved. When true, the merchant does not need to send a capture request.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • cancel (object)
          • apiTransactionId (string)
        • capture (object)
          • apiTransactionId (string)
        • refund (object)
          • apiTransactionId (string)
    • captures (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • captureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • autoCaptured (boolean): Whether the transaction was automatically captured by the Briqpay system or not.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • pspOrderManagementIds (object): This feature is in beta. IDs that can be used directly with the API of the used payment method.
        • refund (object)
          • apiTransactionId (string)
      • merchantCaptureReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the capture for merchant-side traceability. Returned on this capture in GET session responses and included in the capture webhook payload.
    • refunds (array of object): Only available when the session is completed.
      • createdAt (string): ISO 8601 format, example: "2023-04-12T13:16:08.647Z".
      • refundId (string)
      • parentCaptureId (string)
      • parentTransactionId (string)
      • reservationId (string): The primary reference for the payment in the PSP’s system. This is typically used for reconciliation and to locate the order in the PSP’s portal or customer service tools.
      • pspId (string): Unique UUID identifier of the payment method.
      • pspDisplayName (string): Localized name of the payment method that is showed to end users.
      • pspIntegrationName (string): Name of the payment integration that helps merchants distinguish the payment method processor used. For payment methods integrated via a payment suite (e.g. Adyen, Stripe), this will be in the format: "{Suitename} - {payment method name}" (e.g., "Adyen - Card payments"). For direct integrations (e.g., PayPal, Klarna, Swish), this will be the name of the payment method provider (e.g., "PayPal"). This name is not intended for the end user to see.
      • email (string)
      • phoneNumber (string): If applicable, the phone number that was used to pay. Otherwise, the phone number from the billing address object.
      • reference (string)
      • amountIncVat (integer): Amount including vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. For ISK, JPY and KRW, amountIncVat on sessions, captures and refunds must be a whole unit (a multiple of 100), otherwise the request is rejected with 400 INVALID_DATA.
      • amountExVat (integer): Amount excluding vat/tax. Should be in cents / minor units. e.g. 1 SEK = 100. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
      • currency (string): Example: SEK, EUR, USD
      • status (string, one of: "pending", "approved", "rejected")
      • sessionId (string)
      • cart (array, each one of 3 shapes)
        • One of, option 1 (Regular items):
          • productType (string, required, one of: "physical", "digital", "discount", "shipping_fee", "deposit", "surcharge", "adjustment"): Type of item. 'discount' - the unitPrice should be negative. 'adjustment' - Can only be used on refunds.
          • name (string, required, max length 256)
          • reference (string, nullable, max length 256): The SKU of the item
          • quantity (integer, required, min 1)
          • quantityUnit (string, required, max length 10)
          • taxRate (integer, required): The applicable taxrate in minor units. Eg 25% = 2500
          • unitPrice (integer, required): Unit price in minor units (e.g. 1 EUR = 100 unitPrice). Should be excluding VAT and excluding discount. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000.
          • unitPriceIncVat (integer, nullable): Unit price including VAT but excluding any discounts, in minor units. (1 EUR = 100 unitPriceIncVat). ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. unitPrice * (1 + taxRate / 10000)
          • discountPercentage (integer, nullable): Discount value in percentages. 10% = 1000
          • unitDiscountAmountIncVat (integer, nullable): Fixed discount amount per unit in minor units, including VAT (e.g. 1 EUR = 100). This represents the discount amount applied to each individual unit after VAT calculation. When both discountPercentage and unitDiscountAmountIncVat are provided, they must be consistent within ±1 minor unit, otherwise a validation error will occur.
          • totalAmount (integer, nullable): Total amount for the order line in minor units (e.g. 1 EUR = 100 totalAmount). This value should include VAT, any applied discounts, and multiplied by quantity. ISK, JPY and KRW also use two-decimal minor units: 10,000 ISK is sent as 1000000. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (1 + taxRate / 10000)
          • totalVatAmount (integer, nullable): The total VAT amount for the line item in minor units (e.g. 1 EUR = 100 totalAmount). Calculated by applying the tax rate to the unit price including discount and multiplying by the quantity. (unitPrice * (1 - discountPercentage / 10000)) * quantity * (taxRate / 10000)
          • imageUrl (string, max length 1024): URL to an image: png | jpg | jpeg | svg. Image that can be later embedded in communications between certain payment providers. Minimum 250x250 recommended. Limited PSP support.
        • One of, option 2 (US sales tax):
          • productType (string, required, one of: "sales_tax"): Has to be "sales_tax".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • totalTaxAmount (integer, required): Total tax amount for the order in minor units (e.g. 1 USD = 100 totalTaxAmount).
        • One of, option 3 (Gift card):
          • productType (string, required, one of: "gift_card"): Has to be "gift_card".
          • name (string, required, max length 256)
          • reference (string, max length 256): Reference
          • giftCardAmount (integer, required): Gift card amount in minor units (e.g. 1 EUR = 100 giftCardAmount). When gift_card is used, a positive value indicates that a gift card is being purchased, and a negative value indicates a gift card being used as part of the payment. Keep in mind that gift cards are generally exempt from VAT/Tax as it's buying a currency and not a product.
      • merchantRefundReference (string, nullable, min length 1, max length 512): A merchant-set reference attached to the refund for merchant-side traceability. Returned on this refund in GET session responses and included in the refund webhook payload.
    • paymentTags (object): Only available when the session is completed. Tags on the payment method used for the initial payment. Example: "prepaid_invoice", "manual_review".
    • paymentAdditionalFields (object): Only available when the session is completed. Additional fields collected on the payment method used for the initial payment.
    • pspMetadata (object): PSP specific information related to the payment transaction. Only available when the session is completed and for certain psps
      • customerFacingReference (string): Payment reference given to the customer by the psp.
      • description (string): Description of the underlying payment method selected by the customer.
      • type (string): The type of payment used for the transaction.
      • payerEmail (string): The email of the payer.
      • payerFirstName (string): The first name of the payer.
      • payerLastName (string): The last name of the payer.
      • pspConsumedGiftcards (object): Details of gift cards used and the remaining balance.
        • giftcards (array of object)
          • amount (integer)
          • currency (string)
          • issuer (string)
          • voucherNumber (string)
        • remainderAmount (integer)
        • remainderCurrency (string)
        • remainderMethod (string)
    • orderNote (object): Only available when the session is completed. Object containing order notes submitted by the user. The default structure of the object, unless modified by including config for the order_note module, is { "note": { "value": "Note goes here" } }
    • customForm1 (object): Only available when the session is completed. Contains the form data of the custom form module.
    • terms (object): Only available when the session is completed. Contains data for the checkboxes of the terms module.
    • strongAuth (object)
      • provider (string)
      • output (object)
        • signedAt (string)
        • name (string)
        • surname (string)
        • givenName (string)
        • dateOfBirth (string)
        • validateSigneeIsCompanySignatory (boolean)
        • signeeIsCompanySignatory (string, nullable, one of: "unknown", "approved", "rejected")
    • companyExtraData (object)
      • output (object)
        • fields (object): Example: { "score": 50, "netTurnover": 2155 }
    • tokenization (object)
      • tokenId (string): The token related to a tokenized payment method.

204

No content.

400

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_DATA", "UNKNOWN")
    • message (string)

403

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_API_KEY", "AUTH_SECRET_EXPIRED")
    • message (string)

404

  • error (object)
    • code (string, one of: "SESSION_NOT_FOUND")
    • message (string)

Make decision

POST /v3/session/{sessionId}/decision

Section: Session Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

This endpoint is part of the Decisions flow.

The error messages has support for markdown links if you want the user to be able to read more or contact someone based on your error message.

Path parameters

  • sessionId (string, required): Format: UUID

Headers

  • Content-Type (string, one of: "application/json")
  • Accept (string, one of: "application/json")
  • Authorization (string): Format: "Basic <base64(username:secret)>"

Request body

  • decision (string, required, one of: "allow", "reject")
  • rejectionType (string, one of: "reject_session_with_error", "notify_user"): Required with { "decision": "reject" }. "reject_session_with_error" will close the session and display a message in the client in an overlay. "notify_user" will display a message in the client.
  • hardError (object): Required with { "rejectionType": "reject_session_with_error" }. Provide an error message that will be shown in an overlay in the client.
    • message (string, required, max length 256)
  • softErrors (array of object): Optional with { "rejectionType": "notify_user" }. Provide a list of error messages that will be shown to the user.
    • message (string, required)

Request examples

Allow

curl -X POST 'https://playground-api.briqpay.com/v3/session/{sessionId}/decision' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json' \
  -d '{
  "decision": "allow"
}'

Soft reject

curl -X POST 'https://playground-api.briqpay.com/v3/session/{sessionId}/decision' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json' \
  -d '{
  "decision": "reject",
  "rejectionType": "notify_user",
  "softErrors": [
    {
      "message": "Registration rejected"
    }
  ]
}'

Hard reject

curl -X POST 'https://playground-api.briqpay.com/v3/session/{sessionId}/decision' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json' \
  -d '{
  "decision": "reject",
  "rejectionType": "reject_session_with_error",
  "hardError": {
    "message": "Registration rejected"
  }
}'

Responses

204

No content.

400

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_DATA", "UNKNOWN")
    • message (string)

403

  • error (object)
    • code (string, one of: "INVALID_CREDENTIALS", "INVALID_API_KEY", "AUTH_SECRET_EXPIRED")
    • message (string)

404

  • error (object)
    • code (string, one of: "SESSION_NOT_FOUND")
    • message (string)

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