Saltar al contenido principal

Two ways in

Both are endpoints of the Sales Partner API (https://api-honor.compago.com/api/developer), called with your partner key (see Act on your merchants). Either way the merchant is yours from the first moment.

Hosted onboarding

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.
Show the url to the merchant or send it yourself: Compago does not e-mail it. The owner signs up with that e-mail address and goes through the signup.
  • Asking again is safe. While your onboarding for an e-mail is open, the same one comes back (200) with its expiry renewed to 7 days. Ask every time your merchant presses a button.
  • Following it up. GET /v1/onboarding/{id} reports COMPLETED once the merchant finished, with the merchant’s id in account. EXPIRED means the link went 7 days unused: create it again.
  • Already a Compago user. An e-mail that already has an account answers 409 EMAIL_IN_USE.

Create by API

When you already hold every detail, create the merchant in one call.
The answer (201) is the new account. The owner receives a welcome e-mail on your brand and signs in with Google or an e-mailed code; they have no password until they set one. The CLABE is never returned by the API.
  • bankSoftDescriptor is what the cardholder’s statement shows: 3 to 10 letters, digits or spaces, without accents.
  • The RFC must have a valid check digit and the CLABE a valid control digit, or the request answers 400 and nothing is created.
  • An owner e-mail that already has an account answers 409 EMAIL_IN_USE. Use a hosted onboarding for that person instead.

Your merchants

GET /v1/account lists every merchant you brought, newest first and paginated. GET /v1/account/{id} reads one.
requirements.currentlyDue is what the merchant’s onboarding still needs. Drive your own screens from it, and expect new values to appear over time:

Documents

Documents are optional: no document is ever a requirement. If you already collect your merchants’ papers, you can keep them on file with Compago, where they show on the merchant’s detail in your Sales Partner dashboard. Upload one document per call as multipart/form-data, with the type and the file (PDF, JPEG or PNG, up to 10 MB).
Uploading the same type again replaces it as the current one; the earlier one stays on file. GET .../document lists what is on file. Documents are stored privately and the API never returns a link to download them.

Contract acceptance

When the merchant accepts Compago’s merchant contract on your screens, record it with the evidence of that moment:
acceptedAt is when the merchant accepted, not when you call, and cannot be in the future. The answer carries the contract version that was accepted. When Compago publishes a new contract, termsAcceptance returns to every merchant’s requirements.
Everything you do on a merchant’s account (creating it, uploading a document, recording an acceptance) appears in that merchant’s activity log under your name and your key’s name.