---
updatedAt: 2026-10-09T12:55:46.000Z
agentTools:
  projectIndex: https://docs.br-dge.io/llms.txt
---

# REST API Introduction

Introduction of BR-DGEs REST API.

## Environment Subdomains

The **BR-DGE** REST API is hosted on two subdomains, one for sandbox testing and one for live transaction processing.

**Europe**

```text Sandbox
https://sandbox.comcarde.com
```
```text Production
https://secure.comcarde.com
```

**North America**

```text Production
https://secure-amer-01.api.br-dge.io/
```

<Callout icon="⚠️" theme="warn">
  ### If you have your own dedicated **BR-DGE** environment your subdomain will be different to the domains listed above. Please <Anchor target="_blank" href="/docs/support">contact our support team</Anchor> if you are unsure which domain to use.
</Callout>

While developing your **BR-DGE** integration you can use our Sandbox subdomain for functional testing and the production subdomain to process live payments.

<Callout icon="🚧" theme="warn">
  Our Sandbox Environment is for development and functional testing purposes only.
  It must not be used for heavy performance testing as this may risk destabilizing the system and creating a volatile environment for other users.
</Callout>

<Callout icon="❗️" theme="error">
  To ensure PCI compliance please only use mock <Glossary>payment instrument</Glossary> data when interacting with our Sandbox API
</Callout>

## Versioning

The BR-DGE REST API is versioned (for example `https://secure.comcarde.com/v1/`) so you can rely on us to not introduce breaking changes without an accompanying change in the API version. In the event of us needing to deprecate a version of our API, we will contact you in advance of you needing to take any action to upgrade.

## Authorization

You can generate API keys in the BR-DGE Portal to access the API.

The API Keys are grouped into two main classes, based on how they will be used.

* **Server API Keys** must only be used in your secure back-end services, and must not be exposed to your end users.
* **Client API Keys** will be provided for use in client applications to support features such as BR-DGE hosted fields, drop-in user interfaces, <Glossary>3-D Secure</Glossary> authentication, etc.

<Image src="https://files.readme.io/34e5e88-server-client-api-keys.svg" align="center" />

<Callout icon="📘" theme="info">
  ### All payment flows involve the use of a <b>Server API Key</b> to ensure there are no unauthorized payments.
</Callout>

## Captures and Voids

Payments are automatically captured by default, but if you flag payment requests with `intent=authorize` you can control when payments are captured or voided via the <Anchor target="_blank" href="/reference/capturepaymentusingpost">POST /v1/payments/paymentId/capture</Anchor> and <Anchor target="_blank" href="/reference/voidpaymentusingpost">POST /v1/payments/paymentId/void endpoints</Anchor>.

Please see the `Split Auth and Capture` example in <Anchor target="_blank" href="/reference/createpaymentusingpost">POST /v1/payments</Anchor> for an example of the `intent=authorize` flag in use.

## Merchant Initiated Transactions

Payments made via **BR-DGE** are assumed to be Cardholder Initiated Transactions (CIT) unless flagged as <Glossary>Merchant Initiated Transaction</Glossary> (MIT). Please see the <Anchor target="_blank" href="/docs/vault#making-merchant-initiated-transactions-mits-using-card-on-file">Making Merchant-Initiated-Transactions (MITs) using Card-on-File section</Anchor> of the vault user guide for more information.

## Webhook Callbacks

If enabled on your retail channel, **BR-DGE** will send asynchronous webhook callbacks informing you of events relating to your transactions.

<Callout icon="👍" theme="okay">
  ### For more information, please have a look at the `callback` sections at the bottom of an endpoints page.

  For example, at the bottom of the page of the <Anchor target="_blank" href="/reference/createpaymentusingpost">POST /v1/payments</Anchor> endpoint.
</Callout>

## Post-Response Actions

Your server may receive responses from our API containing`actionRequired = true` and an `action` payload which has a structure similar to this:

```json
{
  "action": {
    "type": "ACTION_TYPE",
    "paymentId": "78c411d6-5153-4c43-98a5-07dfb4443c5d",
    "data": {
      "key1": "value1",
      "key2": "value2"
    }
  }
}
```

In such cases you should pass the action payload to the BR-DGE Web SDK <Anchor target="_blank" href="/docs/post-response-module">Post Response Module</Anchor> which will be able to handle it for you.

## Payment Request Query Parameters

Through the use of query parameters on a payment request, we can provide information that is extraneous to our default response structure. This allows you to access further data-points as required.

For further detail regarding the available query parameters, with accompanying example requests & responses, please see the 'Query Params' section for each endpoint in our <Anchor target="_blank" href="/reference">REST API Reference</Anchor>.

## Payout Error Handling

Due to the indeterminate nature of downstream errors that can result in a HTTP response code 5xx, **BR-DGE** recommend that any Payout transactions that enter this state are treated as if they are in an `UNKNOWN` status, rather than either `APPROVED` or `DECLINED`.

You should await a further status change via **BR-DGE** Notifications, or if not received, manually verify the status of the transaction with the PSP before considering the transaction to be in a final state.