This event is sent to your server when a player try to update a contact from the mobile application.
Event name: contacts@remove
⚠️ Response required / expires after 60 seconds
| Key | Type | Description |
|---|---|---|
custom_id | string | Unique identifier from your services (1-64 characters) |
contact_uid | string | Phone number of the contact to delete (1-32 characters) |
You need to emit an event with the following name and data:
Response event name: contacts@remove/response
| Key | Type | Extra | Description |
|---|---|---|---|
custom_id | string | required | Unique identifier from your services (1-64 characters) |
contact_uid | string | required | Unique identifier of the contact linked to this phone_number and custom_id (example: the column "id" in your database) (1-32 characters) |
Important
Response object must respect every type rule. If any structure isn't respected, your request will be rejected for "bad-request".
I received a request for the following custom_id = 1234 and contact_uid = "8756"
My response will be:
{
"custom_id": "1234",
"contact_uid": "8756"
}
You must notify iPear if the data does not comply with your verification processes.
Response Error event name: contacts@remove/error
| Key | Type | Extra | Description |
|---|---|---|---|
custom_id | string | required | Unique identifier from your services (1-64 characters) |
contact_uid | string | required | Unique id of the contact to delete (1-32 characters) |
error | string (Error list) | required | Available errors for this case: player-not-found, contact-not-found, unknown |
My player with the following ID: 1234 has no contact details with the UID 8756
{
"custom_id": "1234",
"contact_uid": "8756",
"error": "contact-not-found"
}
Outgoing events
Powered by Doctave