Overview
Five endpoints describe who you are on Compago.Your organization
These examples call the production host. While you build, replace
https://api-harmony.compago.com with https://demo-api-harmony.compago.com and use a key from the Demo dashboard. See Environments.Your bank account numbers and settlement details are not part of this response and are not readable through this API at all. Bank accounts lists your accounts by name only.
Members
owner, admin and member, oldest member first. The projection is deliberately narrow: name, email and role, and nothing else about the person.
Bank accounts
A business can receive its sales in more than one bank account, for example one per branch. This endpoint lists the accounts a charge can be deposited in, so your integration can choose one when it creates a payment.dataholds your verified accounts, in the order you gave them in the dashboard. An account that is still being verified, or that was rejected, cannot receive money and is not listed. The list is not paginated: a business has at most ten accounts.isDefaultmarks the first account of your list.routingModeis how your sales are shared between your accounts when a charge names none:AUTOMATIC: each sale goes to the first account that still has room in its monthly amount, and the last account takes the rest.MANUAL: each sale goes to your default account.SPLIT: each sale is shared out between your accounts by the percentage the owner gave each one, and each part pays its share of the fee.
id as bankAccountId when you create a one-time payment, a payment intent or a saved-card checkout, and on every charge to a saved card. The field is optional: a charge that names no account follows routingMode. To split one charge between several accounts yourself, send allocations instead (see Splitting a payment between accounts).
An account is its
id and the name you gave it. Its number, its holder and its bank are never returned. Accounts are added, ordered and removed by the owner in the dashboard, at Configuraciones → Organización → Cuentas bancarias, and each of those changes is confirmed with a code sent to the owner’s email. This API cannot change where you are paid.Salespeople
Credentials are never returned. The password hash and the device token that signs an operator out everywhere are not even read from the database by this API.
Promotions
ownedByOrganization tells them apart:
true: your organization created and funds this promotion. Thetakeis a cost to you.false: your organization was invited and benefits. Thediscountreduces your fee.