Misafir Bilgilerini Girme
Servis Adresi
/api/hotels/update-customer/{apikey}/{lang}/{token}
İstek Parametreleri
GET
| Parametre |
Tip |
Format |
Açıklama |
| apikey |
string |
|
Acentasistem Api key |
| language |
string |
|
Dil kodu (Türkçe için ‘tr’) |
| token |
string |
|
Set Hotel fonksiyonundan elde edilen token |
POST
| Parametre |
Tip |
Format |
Açıklama |
| data |
string |
|
Request Json alanındaki verilerin json formatta hazırlanarak data değişkenine atanarak post edilecek |
Örnek İstek (JSON)
{
"contact": {
"name": "ediz",
"surname": "nural",
"country": "TR",
"tc_id_number": "11111111111",
"year_of_birth": "1900",
"email": "[email protected]",
"phone": "05000000000",
"address": "Adres",
"city": "Antalya",
"customer_note": " Üst Katta Yer Alan Oda - Alt Katta Yer Alan Oda",
"operation_note": ""
},
"invoice": {
"name": "ediz nural",
"email": "[email protected]",
"tax_office": "",
"tax_number": "11111111111",
"address": "Adres",
"city": "Antalya"
},
"guesttype": {
"Tf6ojLEuqrJ9G4gm3ni2lUFMCvbQ": [
"ADT",
"ADT"
]
},
"age": {
"Tf6ojLEuqrJ9G4gm3ni2lUFMCvbQ": [
"33",
"33"
]
},
"gender": {
"Tf6ojLEuqrJ9G4gm3ni2lUFMCvbQ": [
"1",
"1"
]
},
"name_surname": {
"Tf6ojLEuqrJ9G4gm3ni2lUFMCvbQ": [
"Ediz Nural",
"John Doe"
]
},
"tc_id_number": {
"Tf6ojLEuqrJ9G4gm3ni2lUFMCvbQ": [
"11111111111",
"11111111111"
]
},
"year_of_birth": {
"Tf6ojLEuqrJ9G4gm3ni2lUFMCvbQ": [
"1900",
"1900"
]
},
"resNote": [
"Üst Katta Yer Alan Oda",
"Alt Katta Yer Alan Oda"
]
}
Başarılı Sonuç Örneği
{
"success":true,
"error":0,
"error_description":"",
"token":"LOkzx0iyZS2wP5TCa1obmhgKvFQENrWMesp"
}
Başarısız Sonuç Örneği
{
"success":false,
"error":1,
"error_description":"Bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin."
}