edit_consumer
POST  -- Modify a customer
| Search argument | Description | Max size |
|---|---|---|
| safedebit_consumer_reference | Safedebit consumer reference | String - 35 |
| Parameter to modify | Description | Type - Length | Example |
|---|---|---|---|
| consumer_gender | Gender | Char- 1 | M : Male F : Female |
| consumer_first_name | Consumer last name | String - 70 | |
| consumer_use_name | Usual name | String - 70 | |
| consumer_pseudonyme | Pseudonym | String - 70 | |
| consumer_last_name | Consumer first name | String - 70 | |
| consumer_other_last_name | Other names | String - 70 | |
| identity_type | Identification type | Char - 1 | 1 : ID Card 2 : driving licence 3 : passport 4 : residence card 5 : work permit |
| id_number | ID number | String - 18 | |
| emission_date | Identification issuance date | String - 10 | DD/MM/YYYY |
| expire_date | Identification expiration date | String - 10 | DD/MM/YYYY |
| consumer_birth_day | Date of birth | String - 10 | DD/MM/YYYY |
| consumer_birth_city | City/place of birth | String - 35 | |
| nationality | Nationality | String - 3 | FR,ES,IT... |
| consumer_address_street_number | Consumer address: number | String - 16 | |
| consumer_address_street_type | Consumer address: road type | String - 16 | |
| consumer_address_street_name | Consumer address: road name | String - 70 | |
| consumer_address_complement | Consumer address: additional information | String - 70 | |
| consumer_zip_code | Zip code | String - 16 | |
| consumer_city | Town/place | String - 35 | |
| consumer_country | Country | String - 35 | |
| consumer_email | Consumer e-mail | String - 70 | |
| consumer_phone_number | Consumer phone | String - 16 | |
| consumer_ip | Consumer's IP address | String - 16 | |
| iban | Consumer's IBAN bank account | String - 34 | |
| social_reference | Corporate name | String - 32 | |
| siren | Company's SIREN | String - 9 | |
| nic | Company's NIC | String - 5 | |
| naf | Company's NAF | String - 32 | |
| tva_interco | International VAT number | String - 32 | |
| waldec | Unique national number of NPO | String - 16 |
Request
POST /xxxx/edit_consumer HTTP/1.1
Host: xxx.xxxxxxxx.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json
{
"safedebit_consumer_reference": "REF_XXX",
"consumer_reference": "123456",
"consumer_gender": "M",
"consumer_last_name": "famille",
"consumer_first_name": "claude",
"consumer_other_last_name": "Jean, Michel",
"consumer_birth_day": "30/05/1996",
"consumer_birth_city": "Lyon",
"nationality": "FR",
"consumer_address_street_number": "7",
"consumer_address_street_type": "rue",
"consumer_address_street_name": "laurent vibert",
"consumer_address_complement": "5ème étage",
"consumer_zip_code": "69006",
"consumer_city": "Lyon",
"consumer_country": "FR",
"consumer_email": "email@boite.com",
"consumer_phone_number": "0600000000",
"consumer_ip": "127.0.0.1",
"identity_type": "1",
"id_number": "123456789",
"emission_date": "30/05/2020",
"expire_date": "30/05/2021",
"consumer_type": "1",
"iban": "FRXXXXXXXXX",
"social_reference": "Raison",
"siren": "XXXXXXXXX",
"nic": "044",
"naf": "6810Z",
"tva_interco": "FRXXXXXX",
"waldec": "W784000090"}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"result" : true
}
If consumer modification failed
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"result" : false,
"code" : "XXXX"
}
| Argument | Description |
|---|---|
| result | true or false : true : action succeeded false : action failed |
| code | See (error codes in annex). |
Request
HTTP/1.1 200 OK
POST /ssp/edit_consumer HTTP/1.1
Host: xxx.safedebit.fr
Authorization: Basic JQheySHkalSNuakkmSmm==
Content-Type: application/json
Accept: application/json