Create Customer
TestingPOST
/partner/customerModified at: a month ago
Maintainer: Not configured
Method will be create a customer
Request
Header Params
api-version
string
optional
Example:
2
Body Params application/json
external_id
string
required
Your unique id for customer.
>= 3 characters<= 40 characters
Match pattern:
^[A-Za-z0-9-_]$
firstname
string
optional
>= 3 characters<= 40 characters
middlename
string
optional
>= 3 characters<= 40 characters
lastname
string
optional
>= 3 characters<= 40 characters
email
string <email>
optional
phone
string
optional
gender
enum<string>
optional
Allowed values:
MF
identity_number
string
optional
birthdate
string
optional
Match pattern:
^[9999-99-99]$
Example
{
"external_id": "{% faker datatype.uuid %}",
"firstname": "{% faker name.firstName %}",
"middlename": "",
"lastname": "{% faker name.lastName %}",
"email": "{% faker internet.email %}",
"phone": "+90 532 280 80 35",
"gender": "M",
"identity_number": "12345677938",
"birthdate": "1970-01-31"
}
Request samples
Responses
OK(200)
Parameter Error(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
optional
external_id
string
required
company_id
integer
optional
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
optional
updated_at
string
optional
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": ""
}
Modified at a month ago