Update Customer
TestingPATCH
/partner/customer/{{external_customer_id}}Last modified: a year ago
Maintainer: Not configured
Method will be update existing customer
Request
Header Params
api-version
string
optional
Example:
2
Body Params application/json
firstname
string
required
>= 3 characters<= 40 characters
middlename
string
optional
>= 3 characters<= 40 characters
lastname
string
required
>= 3 characters<= 40 characters
email
string <email>
required
phone
string
required
gender
enum<string>
optional
Allowed values:
MF
identity_number
string
required
birthdate
string
optional
Match pattern:
^[9999-99-99]$
Example
{
"firstname": "Mehmet",
"middlename": "",
"lastname": "Gülbilge",
"fullname": "Mehmet Gülbilge",
"email": "[email protected]",
"phone": "+90 532 280 80 35",
"gender": "M",
"identity_number": "12345677938",
"birthdate": "1970-01-31"
}
Request samples
Responses
OK(200)
Parameter Error(422)
Record Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
external_id
string
required
company_id
integer
required
user_id
integer | null
optional
firstname
string
required
middlename
string
optional
lastname
string
required
fullname
string
optional
email
string
required
phone
string
optional
gender
enum<string>
required
Allowed values:
MF
identity_number
string
optional
birthdate
string
year-month-day
Example:
1970-01-01
created_at
string
required
updated_at
string
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 2,
"external_id": "MTD0018232",
"company_id": 2000000,
"user_id": null,
"firstname": "Mehmet",
"middlename": null,
"lastname": "Gülbilge",
"fullname": "Mehmet Gülbilge",
"email": "[email protected]",
"phone": null,
"gender": null,
"identity_number": null,
"birthdate": null,
"created_at": "2023-03-05 04:51:18",
"updated_at": "2023-03-05 04:51:18"
},
"success": true,
"code": 0,
"message": ""
}
Last modified: a year ago