POST api/DMS/1/0/CreateCommerce
Crea un comercio nuevo en el sistema.
Información del Request
Parametros de la URI
No posee parametros
Parametros del Body
KinPOS.API.Model.Global.Account| Nombre | Descripción | Tipo | Información Adicional |
|---|---|---|---|
| accountId |
ID del comercio. |
integer |
N/A |
| parentAccountId |
ID del comercio padre al que pertence el comercio. |
integer |
Required |
| accountTypeId |
ID del tipo de comercio. |
integer |
Required |
| description |
Nombre del comercio. |
string |
Required String length: inclusive between 0 and 150 |
| identification |
ID tributario del comercio. |
string |
Required String length: inclusive between 0 and 150 |
| privateCode1 |
Código para uso privado. |
string |
String length: inclusive between 0 and 500 |
| privateCode2 |
Código para uso privado. |
string |
String length: inclusive between 0 and 500 |
| privateCode3 |
Código para uso privado. |
string |
String length: inclusive between 0 and 500 |
| countryId |
ID del país al que pertenece el comercio. |
integer |
Required |
| address1 |
Dirección del comercio. |
string |
Required String length: inclusive between 0 and 150 |
| address2 |
Dirección del comercio (continuación). |
string |
String length: inclusive between 0 and 150 |
| phone1 |
Número de teléfono del comercio. |
string |
String length: inclusive between 0 and 50 |
| phone2 |
Número de teléfono del comercio. |
string |
String length: inclusive between 0 and 50 |
| mobile1 |
Número de celular del comercio. |
string |
String length: inclusive between 0 and 50 |
| mobile2 |
Número de celular del comercio. |
string |
String length: inclusive between 0 and 50 |
| fax1 |
Número de fax del comercio. |
string |
String length: inclusive between 0 and 50 |
| fax2 |
Número de fax del comercio. |
string |
String length: inclusive between 0 and 50 |
| neighborhood |
Nombre del barrio/sector/vecindario donde se encuentra el comercio. |
string |
String length: inclusive between 0 and 50 |
| regionId |
ID del departamento/region del comercio. |
integer |
Required |
| cityId |
ID de la ciudad en la que se encuentra el comercio. |
integer |
Required |
| districtId |
ID del distrito/localidad en el que se encuentra el comercio. |
integer |
Required |
| businessName |
Nombre comercial/tributario del comercio. |
string |
String length: inclusive between 0 and 150 |
| accountEmail |
Correo electrónico del comercio. |
string |
String length: inclusive between 0 and 80 |
| contactPerson |
Persona de contacto en el comercio. |
string |
String length: inclusive between 0 and 100 |
| paymentMail |
Correo electrónico para pagos del comercio. |
string |
String length: inclusive between 0 and 80 |
| verificationDigit |
Dígito de verificación del ID tributario. |
string |
String length: inclusive between 0 and 5 |
| merchantClassificationCodeId |
ID del código del clasificación del comercio. |
integer |
Required |
| affiliateId |
ID de afiliado del comercio. |
string |
String length: inclusive between 0 and 50 |
| routeId | integer |
N/A |
|
| officialId | integer |
N/A |
Ejemplos de request:
application/json, text/json
{
"accountId": 1,
"parentAccountId": 2,
"accountTypeId": 3,
"description": "sample string 4",
"identification": "sample string 5",
"privateCode1": "sample string 6",
"privateCode2": "sample string 7",
"privateCode3": "sample string 8",
"countryId": 9,
"address1": "sample string 10",
"address2": "sample string 11",
"phone1": "sample string 12",
"phone2": "sample string 13",
"mobile1": "sample string 14",
"mobile2": "sample string 15",
"fax1": "sample string 16",
"fax2": "sample string 17",
"neighborhood": "sample string 18",
"regionId": 19,
"cityId": 20,
"districtId": 21,
"businessName": "sample string 22",
"accountEmail": "sample string 23",
"contactPerson": "sample string 24",
"paymentMail": "sample string 25",
"verificationDigit": "sample string 26",
"merchantClassificationCodeId": 27,
"affiliateId": "sample string 28",
"routeId": 1,
"officialId": 1
}
application/xml, text/xml
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KinPOS.API.Model.Global"> <accountEmail>sample string 23</accountEmail> <accountId>1</accountId> <accountTypeId>3</accountTypeId> <address1>sample string 10</address1> <address2>sample string 11</address2> <affiliateId>sample string 28</affiliateId> <businessName>sample string 22</businessName> <cityId>20</cityId> <contactPerson>sample string 24</contactPerson> <countryId>9</countryId> <description>sample string 4</description> <districtId>21</districtId> <fax1>sample string 16</fax1> <fax2>sample string 17</fax2> <identification>sample string 5</identification> <merchantClassificationCodeId>27</merchantClassificationCodeId> <mobile1>sample string 14</mobile1> <mobile2>sample string 15</mobile2> <neighborhood>sample string 18</neighborhood> <officialId>1</officialId> <parentAccountId>2</parentAccountId> <paymentMail>sample string 25</paymentMail> <phone1>sample string 12</phone1> <phone2>sample string 13</phone2> <privateCode1>sample string 6</privateCode1> <privateCode2>sample string 7</privateCode2> <privateCode3>sample string 8</privateCode3> <regionId>19</regionId> <routeId>1</routeId> <verificationDigit>sample string 26</verificationDigit> </Account>
Información del Response
Descripción de los parametros
SFE.Core.Layer.Models.FunctionResultOfSystem.Int64| Nombre | Descripción | Tipo | Información Adicional |
|---|---|---|---|
| Result | integer |
N/A |
|
| ResponseCode | string |
N/A |
|
| TotalRecords | integer |
N/A |
Ejemplos de response:
application/json, text/json
{
"Result": 1,
"ResponseCode": "sample string 2",
"TotalRecords": 3
}
application/xml, text/xml
<FunctionResultOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFE.Core.Layer.Models"> <ResponseCode>sample string 2</ResponseCode> <Result>1</Result> <TotalRecords>3</TotalRecords> </FunctionResultOflong>