post
https://api.alatwa.com/customer
Request Parameters
| Parameter | Location | Type | Description | Required |
|---|---|---|---|---|
| Authorization | Header | string | APIKEY of your Alat WA Account | Yes |
| Content-Type | Header | string | application/json | Yes |
| generate_prefix_number | Body | string | Generate number with 62 | Yes |
| filter_duplicate | Body | string | Filter duplicate number | Yes |
| group | Body | string | Name of Group | Yes |
| customers | Body | array | Array of customer objects, See customer structure below | Yes |
customer object structure:
customer object structure:| Parameter | Type | Description | Required |
|---|---|---|---|
| phone | string | WhatsApp Number of customer | Yes |
| name | string | Name of customer | No |
| opt1 | string | Option data ke-1 | No |
| opt2 | string | Option data ke-2 | No |
| opt3 | string | Option data ke-3 | No |
| opt4 | string | Option data ke-4 | No |
| opt5 | string | Option data ke-5 | No |
| opt6 | string | Option data ke-6 | No |
| opt7 | string | Option data ke-7 | No |
Example Body Request
{
"generate_prefix_number": "no",
"filter_duplicate": "yes",
"group": "contoh 1",
"customers": [
{
"phone":"0812347899981",
"name": "tes 1",
"opt1": "opt1",
"opt2": "opt2",
"opt3": "opt3",
"opt4": "opt4",
"opt5": "opt5",
"opt6": "opt6",
"opt7": "opt7"
},
{
"phone":"0812347899983",
"name": "tes 2",
"opt1": "opt1",
"opt2": "opt2",
"opt3": "opt3",
"opt4": "opt4",
"opt5": "opt5",
"opt6": "opt6",
"opt7": "opt7"
},
{
"phone":"0812347899984",
"name": "tes 3",
"opt1": "opt1",
"opt2": "opt2",
"opt3": "opt3",
"opt4": "opt4",
"opt5": "opt5",
"opt6": "opt6",
"opt7": "opt7"
}
]
}Response Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| status | string | Response status | ok, error |
| message | string | Success/Error message | Customer succesfully created, Unauthorized |
| total_customer | string | Total Customer Created | 3 |
| group | string | Name of Group | contoh 1 |