A « Fiche » object represents a client record, created alongside with an appointment made on the Pro Interface or the appointment module.
In mode Account, all records (deleted or not) are returned.
Deleted records will have a "$" at the beginning of "lastname".
GET /api/v1/groups/:group_id/fiches
GET /api/v1/groups/:group_id/fiches/:id
POST /api/v1/groups/:group_id/fiches?apikey=xxxxxx
{
"fiche": {
"group_id": 4,
"firstname": "John",
"lastname": "Doe",
"firstphone": "773-338-1234"
}
}
PUT /api/v1/groups/:group_id/fiches/:id?apikey=xxxxxx
{
"fiche": {
"secondphone": "773-338-1234",
"str0": "Lorem ipsum"
}
}
Not available yet.
| Field | Type | Description |
|---|---|---|
| group_id | integer | Group identifier |
| lastname | string(64) | Last name |
| firstname | string(64) | First name |
| firstphone | string(25) | First phone number |
| secondphone | string(25) | Second phone number |
| string(255) | E-mail address | |
| birthdate | datetime | Birthdate |
| comments | text | Comments about this client (not visible by the client on the appointment module) |
| from_web | boolean | When true, indicates that the record has been created from the appointment module (from web) |
| rappel_email | boolean | When true, indicates that the client accepts to receive reminders via E-mail (the clients can opt-in / opt-out from the appointment module) (default: 1) |
| rappel_sms | boolean | When true, indicates that the client accepts to receive reminders via SMS (the clients can opt-in / opt-out from the appointment module) (default: 1) |
| externid | integer | Extern identifier (useful to synchronize customers data) |
| deleted | boolean | When true, indicates that the client record is deleted (default: 0 = "not deleted") |
See page : Customfields API