Add new customer
POST
/extapi/v1.0/customersMenambahkan customer baru ke database SalesMania.
Data customer baru dapat diisi dalam format JSON di body request.
API ini membutuhkan team_token sebagai parameter dan Bearer Token sebagai authentification.
Request
Query Params
team_token
string
required
Team token from api /extapi/v1.0/team_token
Example:
eyJkYl9pZCI6Mjk4MSwidGVhbV9pZCI6MjQ3Mjh9.LpZ9LEpy123lwzYjzypStjdk123
Body Params application/json
name
string
required
name
address
string
optional
city
string
optional
phone
string
optional
ext_cust_no
string
optional
Your internal customer no
location
object
optional
lat
number
required
>= -90<= 90
lon
number
required
>= -180<= 180
status
boolean
optional
status, default: true (active)
tags
array[string]
optional
tag
Example
{
"name": "string",
"address": "string",
"city": "string",
"phone": "string",
"ext_cust_no": "string",
"location": {
"lat": -90,
"lon": -180
},
"status": true,
"tags": [
"string"
]
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: a month ago