CRM
Preview CRM CSV import
POST
/
v1
/
crm
/
imports
Preview CRM CSV import
curl --request POST \
--url https://api.wazapin.com/v1/crm/imports \
--header 'Content-Type: application/json' \
--data '
{
"object_kind": "<string>",
"content": "<string>",
"csv": "<string>",
"rows": [
{}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({object_kind: '<string>', content: '<string>', csv: '<string>', rows: [{}]})
};
fetch('https://api.wazapin.com/v1/crm/imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/imports"
payload = {
"object_kind": "<string>",
"content": "<string>",
"csv": "<string>",
"rows": [{}]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"committed_count": 123,
"created_at": "<string>",
"id": "<string>",
"object_kind": "<string>",
"partial_behavior": "<string>",
"preview": {
"headers": [
"<string>"
],
"invalid_rows": 123,
"partial_behavior": "<string>",
"row_errors": [
{
"message": "<string>",
"row_number": 123,
"field": "<string>"
}
],
"rows": [
{}
],
"total_rows": 123,
"valid_rows": 123
},
"row_errors": [
{
"message": "<string>",
"row_number": 123,
"field": "<string>"
}
],
"skipped_count": 123,
"source_format": "<string>",
"status": "<string>",
"updated_at": "<string>",
"committed_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Preview CRM CSV import
curl --request POST \
--url https://api.wazapin.com/v1/crm/imports \
--header 'Content-Type: application/json' \
--data '
{
"object_kind": "<string>",
"content": "<string>",
"csv": "<string>",
"rows": [
{}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({object_kind: '<string>', content: '<string>', csv: '<string>', rows: [{}]})
};
fetch('https://api.wazapin.com/v1/crm/imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/imports"
payload = {
"object_kind": "<string>",
"content": "<string>",
"csv": "<string>",
"rows": [{}]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"committed_count": 123,
"created_at": "<string>",
"id": "<string>",
"object_kind": "<string>",
"partial_behavior": "<string>",
"preview": {
"headers": [
"<string>"
],
"invalid_rows": 123,
"partial_behavior": "<string>",
"row_errors": [
{
"message": "<string>",
"row_number": 123,
"field": "<string>"
}
],
"rows": [
{}
],
"total_rows": 123,
"valid_rows": 123
},
"row_errors": [
{
"message": "<string>",
"row_number": 123,
"field": "<string>"
}
],
"skipped_count": 123,
"source_format": "<string>",
"status": "<string>",
"updated_at": "<string>",
"committed_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}