POST api/Clients?tipo={tipo}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tipo

integer

Required

Body Parameters

Clients
NameDescriptionTypeAdditional information
main

Main

None.

id

integer

None.

name

string

None.

last_name

string

None.

email

string

None.

username

string

None.

phone

string

None.

userpass

string

None.

isverified

boolean

None.

ChangePassword

boolean

None.

ForgotPassword

boolean

None.

id_price_list

integer

None.

dt_created

date

None.

dt_last_buy

date

None.

unique_code

string

None.

is_driver

boolean

None.

bird_date

date

None.

gov_id

string

None.

business_name

string

None.

Address

Collection of ClientAddress

None.

Request Formats

application/json, text/json

Sample:
{
  "Address": [
    {
      "id": 1,
      "id_client": 2,
      "address1": "sample string 3",
      "address2": "sample string 4",
      "client_name": "sample string 5",
      "client_phone": "sample string 6",
      "client_govid": "sample string 7",
      "latitude": 8.1,
      "longitude": 9.1,
      "principal": true,
      "description": "sample string 11",
      "region": "sample string 12",
      "distance": 13.1,
      "country": "sample string 14",
      "country_state": "sample string 15"
    },
    {
      "id": 1,
      "id_client": 2,
      "address1": "sample string 3",
      "address2": "sample string 4",
      "client_name": "sample string 5",
      "client_phone": "sample string 6",
      "client_govid": "sample string 7",
      "latitude": 8.1,
      "longitude": 9.1,
      "principal": true,
      "description": "sample string 11",
      "region": "sample string 12",
      "distance": 13.1,
      "country": "sample string 14",
      "country_state": "sample string 15"
    }
  ],
  "main": {
    "version": "sample string 1",
    "deviceId": "sample string 2"
  },
  "id": 1,
  "name": "sample string 2",
  "last_name": "sample string 3",
  "email": "sample string 4",
  "username": "sample string 5",
  "phone": "sample string 6",
  "userpass": "sample string 7",
  "isverified": true,
  "ChangePassword": true,
  "ForgotPassword": true,
  "id_price_list": 11,
  "dt_created": "2024-12-22T16:58:21.0654343-06:00",
  "dt_last_buy": "2024-12-22T16:58:21.0654343-06:00",
  "unique_code": "sample string 13",
  "is_driver": true,
  "bird_date": "2024-12-22T16:58:21.0654343-06:00",
  "gov_id": "sample string 16",
  "business_name": "sample string 17"
}

application/xml, text/xml

Sample:
<Clients xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models">
  <Address>
    <ClientAddress>
      <address1>sample string 3</address1>
      <address2>sample string 4</address2>
      <client_govid>sample string 7</client_govid>
      <client_name>sample string 5</client_name>
      <client_phone>sample string 6</client_phone>
      <country>sample string 14</country>
      <country_state>sample string 15</country_state>
      <description>sample string 11</description>
      <distance>13.1</distance>
      <id>1</id>
      <id_client>2</id_client>
      <latitude>8.1</latitude>
      <longitude>9.1</longitude>
      <principal>true</principal>
      <region>sample string 12</region>
    </ClientAddress>
    <ClientAddress>
      <address1>sample string 3</address1>
      <address2>sample string 4</address2>
      <client_govid>sample string 7</client_govid>
      <client_name>sample string 5</client_name>
      <client_phone>sample string 6</client_phone>
      <country>sample string 14</country>
      <country_state>sample string 15</country_state>
      <description>sample string 11</description>
      <distance>13.1</distance>
      <id>1</id>
      <id_client>2</id_client>
      <latitude>8.1</latitude>
      <longitude>9.1</longitude>
      <principal>true</principal>
      <region>sample string 12</region>
    </ClientAddress>
  </Address>
  <ChangePassword>true</ChangePassword>
  <ForgotPassword>true</ForgotPassword>
  <bird_date>2024-12-22T16:58:21.0654343-06:00</bird_date>
  <business_name>sample string 17</business_name>
  <dt_created>2024-12-22T16:58:21.0654343-06:00</dt_created>
  <dt_last_buy>2024-12-22T16:58:21.0654343-06:00</dt_last_buy>
  <email>sample string 4</email>
  <gov_id>sample string 16</gov_id>
  <id>1</id>
  <id_price_list>11</id_price_list>
  <is_driver>true</is_driver>
  <isverified>true</isverified>
  <last_name>sample string 3</last_name>
  <main>
    <deviceId>sample string 2</deviceId>
    <version>sample string 1</version>
  </main>
  <name>sample string 2</name>
  <phone>sample string 6</phone>
  <unique_code>sample string 13</unique_code>
  <username>sample string 5</username>
  <userpass>sample string 7</userpass>
</Clients>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.