Accounts API

Create business account

Changed on

🚧 Beta feature

This feature is currently in beta testing, and the final specification may still change.

πŸ” Request signing required

Signature enforcement is mandatory for Direct Customer API users for live mode requests.

Sign every request with the X-Client-Signature and X-Client-Signed-At headers.

Learn how to sign requests

Create a new business account for the authenticated organization.

The response contains the newly created business account.

Each organization can have up to 5 active business accounts. Need more? Contact us and we'll help you out.

post/v2/business-accounts/accounts

Request

  • Base URL
    https://api.mollie.com
  • Auth
    OAuth 2
    Authorization codehttps://my.mollie.com/oauth2/authorize
    Token URLhttps://api.mollie.com/oauth2/tokens
    Scopesbusiness-accounts.write

Headers

Idempotency-Keystring

A unique value that identifies this request, so you can safely retry it without creating a second account. Retrying with the same key within one hour returns the original response. We recommend a UUIDv4.

Keys are tied to the credential that sent the original request, so a refreshed OAuth token won't match earlier keys. View the public documentation to learn more.

X-Client-Signaturestring
Example:MEUCIQDx8sJvK3z...

A cryptographic signature of the request, used to verify that it was sent by you and hasn't been tampered with. Required if you've enabled request signing for your integration.

X-Client-Signed-Atstring
Example:2025-01-01T12:00:00Z

The timestamp, in ISO 8601 format, at which you generated the X-Client-Signature. Required together with X-Client-Signature if you've enabled request signing for your integration.

Request body

namestring required

The name of the business account, as shown to the account holder.

currency'EUR' required

The currency of the business account, as an ISO 4217 currency code.

Only EUR is supported for now. We're working on more currencies, and they'll be available soon.

testmodeboolean

Whether to create the entity in test mode or live mode.

You can enable test mode by setting testmode to true.

Example request

{
  "name": "Main Checking Account",
  "currency": "EUR"
}

Response

The newly created business account object.

resourcestring required

Indicates the response contains a business account object. Will always contain the string business-account for this endpoint.

idstring required

The identifier uniquely referring to this business account. Mollie assigns this identifier at account creation time.

status'active' | 'blocked' | 'closed' required

The status of the business account.

mode'live' | 'test' required

Whether this entity was created in live mode or in test mode.

createdAtstring required

The entity's date and time of creation, in ISO 8601 format.

Example response

{
  "resource": "business-account",
  "id": "ba_nopqrstuvwxyz23456789A",
  "accountDetails": {
    "accountHolderName": "Mollie B.V.",
    "name": "Main Checking Account",
    "currency": "EUR",
    "iban": "NL95MLLE1234567890",
    "bic": "MLLENL2AXXX"
  },
  "balance": {
    "total": {
      "currency": "EUR",
      "value": "10.00"
    }
  },
  "status": "active",
  "mode": "live",
  "createdAt": "2024-03-20T09:13:37+00:00",
  "_links": {
    "self": {
      "href": "https://...",
      "type": "application/hal+json"
    },
    "documentation": {
      "href": "https://...",
      "type": "application/hal+json"
    }
  }
}

Changes

    • warning

      deleted the header request parameter idempotency-key

    • info

      added the new optional header request parameter X-Client-Signature

    • info

      added the new optional header request parameter X-Client-Signed-At