edit_consumer


POST  -- Modify a customer

Search argument Description Max size
safedebit_consumer_referenceSafedebit consumer referenceString - 35

Parameter to modify Description Type - Length Example
consumer_genderGenderChar- 1M : Male
F : Female
consumer_first_nameConsumer last nameString - 70
consumer_use_nameUsual nameString - 70
consumer_pseudonymePseudonymString - 70
consumer_last_nameConsumer first nameString - 70
consumer_other_last_nameOther namesString - 70
identity_typeIdentification typeChar - 11 : ID Card
2 : driving licence
3 : passport
4 : residence card
5 : work permit
id_numberID numberString - 18
emission_dateIdentification issuance dateString - 10DD/MM/YYYY
expire_dateIdentification expiration dateString - 10DD/MM/YYYY
consumer_birth_dayDate of birthString - 10DD/MM/YYYY
consumer_birth_cityCity/place of birthString - 35
nationalityNationalityString - 3FR,ES,IT...
consumer_address_street_numberConsumer address: numberString - 16
consumer_address_street_typeConsumer address: road typeString - 16
consumer_address_street_nameConsumer address: road nameString - 70
consumer_address_complementConsumer address: additional informationString - 70
consumer_zip_codeZip codeString - 16
consumer_cityTown/placeString - 35
consumer_countryCountryString - 35
consumer_emailConsumer e-mailString - 70
consumer_phone_numberConsumer phoneString - 16
consumer_ipConsumer's IP addressString - 16
ibanConsumer's IBAN bank account String - 34
social_referenceCorporate nameString - 32
sirenCompany's SIRENString - 9
nicCompany's NICString - 5
nafCompany's NAFString - 32
tva_intercoInternational VAT numberString - 32
waldecUnique national number of NPOString - 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"}
                                                
If consumer was successfully modified

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).
Thanks to fill-in all the mandatory fields
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