Saltar al contenido principal

One key for all your merchants

The key you create in your Sales Partner dashboard (Configuraciones > Desarrollador, see Authentication) is the only credential you need. You never ask a merchant for its own key, and Compago never e-mails keys. It works in two places, and each one has its own host: Partner endpoints are only on the Sales Partner API, and merchant endpoints only on the Business API, so a merchant integration and a partner integration never share a path.

Acting as a merchant

To call a Business API endpoint (/payment, /one-time-payment, /organization, …) for one of your merchants, send your partner key and the merchant’s id in the Compago-Account header. The request then behaves exactly as if that merchant had called it with its own key.
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.
The merchant ids are the id of each account, and the account of a completed onboarding. You reach only the merchants you brought to Compago. A merchant of another partner answers 404, the same as an id nobody uses, so a response never tells you whether somebody else’s merchant exists.

Errors on the Business API

Deleting a key in your dashboard stops it on both APIs within a minute.