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 credential | With a link | Direct | |
|---|---|---|---|
| Who authorizes | you, with the credential you already hold | your client, by opening a link | nobody: we create the account |
| What you send in the body | the portal credential | nothing | nothing (except the logo) |
| Portals | Argenprop · Cabaprop · MercadoLibre | Zonaprop · Argenprop | Mapaprop |
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 | |
|---|---|
name | the agency's name |
entity | the body it is registered with (ARCA, CUCICBA, RNPA…) |
registration | its registration number with that body |
bio | the presentation text that gets published. It accepts 1000 characters |
address · zipcode | the address |
phone1 | the phone number |
branch.zone0 · branch.zone1 · branch.zone2 | country, 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 } }
portalAccountId | your client's Mapaprop id — the same one their listings publish under |
expiresAt | always null: there is no foreign credential to expire |
created | false 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.
The logo
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.
| Body | empty (or the logo, if you want to change it) |
| The one thing that does NOT change | the account's email, which is its identity |
| If the record has no connected account | 409 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 expires | after 10 minutes |
| It is single-use | after that you have to ask for another preview |
| It is valid for what you saw | if the inventory changed in between, the token is not valid |
| Their portal listings | stay 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
| Code | What happened | What to do |
|---|---|---|
201 | The account was created | — |
200 | It was already connected (created: false), or the PUT synced | — |
400 | incomplete_customer: an agency field is missing | it is in field and missing |
403 | Your token does not have the mapapropapi:connect scope | Write to us to enable it |
404 | That record does not exist, or there is no connection to read | Declare the record first |
409 | self_account: your token already IS a Mapaprop account | There is nothing to connect |
409 | not_connected on the PUT, confirm_required or account_deleted | See above |
503 | We could not talk to Mapaprop at that moment | Your record is untouched: retry |
Related
- Onboarding a client — the full flow
PUT /customers— where you load the data this connection uses- Mapaprop as a portal — publishing to your client's account
- Reading and disconnecting — the other portals' connections