BETA

Create and manage a Mapaprop account for your client

POST /connections   {"portal": "MapapropApi"}

Your app creates and runs your clients' Mapaprop accounts. It is a portal connection like any other, with one difference: it is direct.

With a credentialWith a linkDirect
Who authorizesyou, with the credential you already holdyour client, by opening a linknobody: we create the account
What you send in the bodythe portal credentialnothingnothing (except the logo)
PortalsArgenprop · Cabaprop · MercadoLibreZonaprop · ArgenpropMapaprop

There is no credential to store and nobody to ask for permission: on the other side is our own system. So connecting is creating the account, with the data of the record you already declared.

Scope: mapapropapi:connect.

The data comes from the record

1)  PUT /property-v1/customers    with the agency's data
2)  POST /connections             {"portal":"MapapropApi"}      ← empty body

What the account needs, on the record or on its main branch — whichever of the two carries the value counts:

Field
namethe agency's name
entitythe body it is registered with (ARCA, CUCICBA, RNPA…)
registrationits registration number with that body
biothe presentation text that gets published. It accepts 1000 characters
address · zipcodethe address
phone1the phone number
branch.zone0 · branch.zone1 · branch.zone2country, state and city, from the zone catalog

If any of them is missing, we tell you here and not in another call:

{ "error": "incomplete_customer", "field": "entity",
  "missing": ["entity", "registration", "branch.zone2"] }

You fill them in with the record's PUT and repeat this call.

Why on the record and not here. It is a single place: you maintain one object instead of two, and this connection's PUT reads it again without you resending anything. That data is also what gets published, so enriching the record works in your favour too.

The response

{ "created": true,
  "connection": { "portal": "mapapropapi", "portalAccountId": "11501",
                  "status": "connected", "expiresAt": null } }
portalAccountIdyour client's Mapaprop id — the same one their listings publish under
expiresAtalways null: there is no foreign credential to expire
createdfalse if it was already connected

Repeating the call is safe: if it is already connected you get the same one back with created: false. No second account is created.

It is the only thing that travels in the body, and only in this call:

{ "portal": "MapapropApi", "logo": "data:image/png;base64,iVBORw0KG..." }

It is not stored on the record because it does not fit: the record is a single item with a size ceiling. If you do not send it, the account uses the logo we generate from the agency's name.

Reading it

GET /connections/mapapropapi      one
GET /connections                  all of that client's, Mapaprop included

It shows up next to the others, with the same shape. Before connecting, 404.

Updating it

PUT /connections/mapapropapi

It reads the record again and pushes whatever changed to the account: phone numbers, address, bio, opening hours, tax details, the website and the zones — an agency can move.

Bodyempty (or the logo, if you want to change it)
The one thing that does NOT changethe account's email, which is its identity
If the record has no connected account409 not_connected

⚠️ The record's PUT does not update the account. They are two calls on purpose: one writes the record, the other syncs it. Change the record, then sync.

What that account is

It is a Mapaprop account that belongs to your client, and it exists so their inventory can live in Mapaprop too:

  • Nobody logs into it. It has no password anyone knows and recovery does not work. It is not an access for your client: it is where their data lives, and you are the door.
  • It receives no email from us. No welcome, no notices, no news.
  • Nothing is charged for it. The plan is assigned by the system and is not purchased.
  • It has its main branch and accepts up to 30 branches.
  • Publishing to Mapaprop is a separate capability, with its own scope: Mapaprop as a portal.

Disconnecting it deletes the account

DELETE /connections/mapapropapi?preview=1          → what gets lost + confirmToken. Writes NOTHING
DELETE /connections/mapapropapi?confirmToken=…     → deletes the account. There is no way back

🔴 Here disconnecting is not reversible as it is on the other portals: it deletes your client's Mapaprop account — their properties, their images, their contacts, their subscription. That is why it carries a two-step ceremony, and without a confirmToken we answer 409 confirm_required.

Your client's record survives: they stay declared, with their clientRef and their customerId.

The token expiresafter 10 minutes
It is single-useafter that you have to ask for another preview
It is valid for what you sawif the inventory changed in between, the token is not valid
Their portal listingsstay published, with no exception

Connecting again does not yet reactivate a deleted account. We answer 409 account_deleted. Reactivating an account is a capability we are closing; in the meantime we would rather say so than hand you back an id that does not work.

Response codes

CodeWhat happenedWhat to do
201The account was created—
200It was already connected (created: false), or the PUT synced—
400incomplete_customer: an agency field is missingit is in field and missing
403Your token does not have the mapapropapi:connect scopeWrite to us to enable it
404That record does not exist, or there is no connection to readDeclare the record first
409self_account: your token already IS a Mapaprop accountThere is nothing to connect
409not_connected on the PUT, confirm_required or account_deletedSee above
503We could not talk to Mapaprop at that momentYour record is untouched: retry