Bridge API Documentation

Bridge Documentation

Welcome to our API documentation!

We're happy to share with you our new API 2021 version! Please check our Product Changelog to know the main changes.

You'll find comprehensive guides and documentation to help you start working with Bridge as quickly as possible, as well as support if you get stuck.

Let's jump right in!

Get Started

Create a Payment Link with the API

📘

This guide is about creating a payment link automatically with our API

You can also create payment links from the dashboard. See the guide page here

Before creating a Payment Link, you need to configure the Payment settings on our dashboard.

The field Whitelisted domain for callback URLs is not used for the Payment Links feature so you can fill it with your product website URL for example or any other https URL (there is no consequences). Depending on your use case:

  • Set Allow payments to different beneficiaries unchecked if every payment should be sent to you or to the same beneficiary
  • Set Allow payments to different beneficiaries checked if you want to define a different beneficiary for every payment

If you let Allow payments to different beneficiaries *unchecked, then complete the Default beneficiary with the fields:

  • Alias
  • Account name
  • IBAN
  • Bank Swift code
  • Bank name

Note: if your application is in production, you need to be an administrator to edit the payments settings

Payment settingsPayment settings

Payment settings


Then you can use our API to generate Payment Links. Please read Create a payment link's endpoint document to see the details.

The required fields are:

  • amount and currency
  • expired_date : the maximum duration is 90 days
  • label : description displayed on the bank interface of the customer
  • user : name of the customer who will use the Payment Link

And you can also defined:

  • end_to_end_id (optional) : id that will be sent to the bank
  • beneficiary (optional): information about the payment beneficiary -> name and iban
  • client_reference: a reference you can set to retrieve the payments between your system and ours

If you don't define a beneficiary in this call, the payment will be sent to the default beneficiary you configured in the dashboard.

Body example:

curl 'https://api.bridgeapi.io/v2/payment-links' \
    -X POST \
    -H 'Bridge-Version: 2021-06-01' \
  -H 'Content-Type: application/json' \
    -H 'Client-Id: MY_CLIENT_ID' \
    -H 'Client-Secret: MY_CLIENT_SECRET' \
  -d $'{     
    "user": {
         "name": "Firstname Lastname",
         "external_reference": "REF-USER-1234_AZ"
     },
     "expired_date": "2021-07-24T22:00:00.000Z",
     "client_reference": "ABCDE_FG-HI_12345",
     "transactions": [
     {
         "amount": 120.98,
         "currency": "EUR",
         "label": "Refund 123456",
         "beneficiary": {
             "name": "Thomas Pichet",
             "iban": "FR8412739000503444335398O02"
         },
         "end_to_end_id": "E2E_ID-1234"
       }
     ]
}'

Response example

{
    "url": "https://pay.bridgeapi.io/link/9dcf522ce3663efc598f573634531eb3fccbbcdde0bc5d674c95c0740feb0ec6",
    "id": "3ae3a3d6-f9d5-445e-b8fe-2db1ab8c39d8"
}

Once you have created payment links, you can see them in your dashboard and you can also list them with API thanks to the List payment links endpoint.

Updated 29 days ago

Create a Payment Link with the API


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.