- Api inData
- Introducción
- Autenticación
- Respuestas del API
- Client
- ClientBranch
- Employee
- OperationalSite
- HoursWorked
Crear cliente
Prod Env
Prod Env
POST
https://api.indata.com.co/api/v1/client
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
x-api-key
string
required
Body Params application/json
name
string
required
code
string
required
business_name
string | null
optional
alias
string | null
optional
identification
string
required
website
string | null
optional
email
string | null
optional
phone
string | null
optional
status
integer
optional
>= 0<= 1
visibility
enum<string>
optional
Allowed values:
NONEWEBMOBILEALL
is_blocked
boolean
optional
type
string
optional
typeCustomer
object
optional
name
string
optional
Example
{
"name": "Beltrán, Candelaria y Melgar Asociados",
"code": "aepkt",
"business_name": "Menéndez S.L.",
"alias": "cross-platform",
"identification": "44647978544",
"website": "http://forceful-reject.org",
"email": "MaraCristina30@hotmail.com",
"phone": "955870235",
"status": 1,
"visibility": "NONE",
"is_blocked": false,
"type": "CUSTOMER",
"typeCustomer": {
"name": "possimus earum animi"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.indata.com.co/api/v1/client' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Beltrán, Candelaria y Melgar Asociados",
"code": "aepkt",
"business_name": "Menéndez S.L.",
"alias": "cross-platform",
"identification": "44647978544",
"website": "http://forceful-reject.org",
"email": "MaraCristina30@hotmail.com",
"phone": "955870235",
"status": 1,
"visibility": "NONE",
"is_blocked": false,
"type": "CUSTOMER",
"typeCustomer": {
"name": "possimus earum animi"
}
}'
Responses
🟢201Cliente creado exitosamente
application/json
Body
name
string
optional
code
string
optional
business_name
string | null
optional
alias
string | null
optional
identification
string
optional
website
string | null
optional
email
string | null
optional
phone
string | null
optional
status
integer
optional
visibility
string
optional
is_blocked
boolean
optional
type
string
optional
id
integer
optional
id_account_customer_type
integer
optional
created_source
string
optional
typeCustomer
object
optional
name
string
optional
id
integer
optional
description
string
optional
created_at
string <date-time>
optional
created_by
integer
optional
updated_at
string <date-time>
optional
updated_by
integer
optional
branches
array[object (ClientBranch) {32}]
optional
name
string
optional
code
string
optional
alias
string | null
optional
coords
string
optional
radius
string
optional
radius_min
string
optional
address
string
optional
country_name
string
optional
state_name
string
optional
city_name
string
optional
phone
string | null
optional
phone_alt
string | null
optional
email
string | null
optional
email_alt
string | null
optional
extra1
string | null
optional
extra2
string | null
optional
extra3
string | null
optional
extra4
string | null
optional
extra5
string | null
optional
status
integer
optional
id
integer
optional
id_account_customer
integer
optional
id_account_geo_city
integer
optional
id_account_geo_zone
integer
optional
created_source
string
optional
city
object (City)
optional
zone
object (Zone)
optional
updated_ws_at
string <date-time> | null
optional
created_at
string <date-time>
optional
created_by
integer
optional
updated_at
string <date-time>
optional
updated_by
integer
optional
Example
{
"name": "string",
"code": "string",
"business_name": "string",
"alias": "string",
"identification": "string",
"website": "string",
"email": "string",
"phone": "string",
"status": 0,
"visibility": "string",
"is_blocked": true,
"type": "string",
"id": 0,
"id_account_customer_type": 0,
"created_source": "string",
"typeCustomer": {
"name": "string",
"id": 0,
"description": "string"
},
"created_at": "2019-08-24T14:15:22Z",
"created_by": 0,
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": 0,
"branches": [
{
"name": "string",
"code": "string",
"alias": "string",
"coords": "string",
"radius": "string",
"radius_min": "string",
"address": "string",
"country_name": "string",
"state_name": "string",
"city_name": "string",
"phone": "string",
"phone_alt": "string",
"email": "string",
"email_alt": "string",
"extra1": "string",
"extra2": "string",
"extra3": "string",
"extra4": "string",
"extra5": "string",
"status": 0,
"id": 0,
"id_account_customer": 0,
"id_account_geo_city": 0,
"id_account_geo_zone": 0,
"created_source": "string",
"city": {
"name": "string",
"id": 0,
"code": "string"
},
"zone": {
"name": "string",
"id": 0,
"code": "string",
"description": "string",
"isActive": true,
"city": {
"name": "string",
"id": 0,
"code": "string"
}
},
"updated_ws_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"created_by": 0,
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": 0
}
]
}
Modified at 2024-08-30 04:03:58