A
Atlar API Guide
Step 5Create a Counterparty
5Step 5 of 10

Create a Counterparty

Register a payment destination with an external account.

What is a Counterparty?

A counterparty represents a person or organization you send money to or receive money from. Each counterparty has one or more external accounts (their bank accounts) identified by IBAN, BBAN, or account number.

Counterparties must be created before initiating any credit transfers or direct debits.

Create a Counterparty

The request below creates a counterparty with a single external account. The returned external account ID (accounts[0].id) is automatically saved and will be used as the payment destination in the next step.

POST
/payments/v2/counterparties

Create a counterparty with an external account. Returns the counterparty and external account IDs.

curl -X POST 'https://api.atlar.com/payments/v2/counterparties' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "legalName": "Example Company GmbH",
    "alias": "Customer #1234",
    "partyType": "INDIVIDUAL",
    "email": "john.smith@example.com",
    "address": {
      "country": "DE",
      "city": "Berlin",
      "postalCode": "10115",
      "streetName": "Example Strasse",
      "streetNumber": "47"
    },
    "nationalIdentifier": {
      "type": "CIVIC",
      "market": "DE",
      "number": "2012121212"
    },
    "metadata": { "segment": "trial" },
    "accounts": [
      {
        "market": "DE",
        "identifiers": [
          {
            "type": "IBAN",
            "market": "DE",
            "number": "DE64500105173198833324"
          }
        ]
      }
    ]
  }'
Get a token on the Authentication step first
🖥️

Dashboard: Counterparties

View and manage all counterparties. Click into any counterparty to see its external accounts, mandates, and metadata.

app.atlar.com/counterparties

Key fields explained

FieldDescription
legalNameFull legal name of the counterparty (required)
aliasFriendly display name for internal reference
partyTypeINDIVIDUAL or ORGANIZATION
accounts[].identifiersBank account identifiers (IBAN, BBAN, or account number)
accounts[].marketISO country code for the account (e.g. "DE")
metadataArbitrary key-value pairs for your own tagging
externalIdOptional: your own ID (regex: ^[a-zA-Z0-9._\-+=]{1,64}$)
🛡️

Use fictitious data for testing

In your sandbox, always use fictitious names, addresses, and test IBANs. The example above uses Example Company GmbH and a generated IBAN — no real personal data is needed.

💡

External IDs

Use the externalId field to link counterparties to your own systems. You can then look up the counterparty with GET /payments/v2/counterparties/external:YOUR_ID.