POST CreateSupplierOrEdit

Permite crear un proveedor.

Request Information

URI Parameters

None.

Body Parameters

Adquirente a crear

Supplier
NameDescriptionTypeAdditional information
fullName

Nombre completo del proveedor

string

Required

String length: inclusive between 0 and 200

documentNumber

Documento de identificacion del proveedor

string

Required

String length: inclusive between 0 and 30

documentTypeCode

Tipo de documento de identificacion del proveedor

string

Required

String length: inclusive between 0 and 5

code

Codigo del proveedor

string

String length: inclusive between 0 and 100

juridicalOrganizationCode

Código que indica el tipo de persona

string

Required

String length: inclusive between 0 and 1

regimenTypeCode

Código tipo de régimen

string

Required

String length: inclusive between 0 and 2

tributaryDetail

Código del detalle tributario.

string

Required

String length: inclusive between 0 and 2

users

Usuarios

Collection of SupplierUser

Optional

fiscalLocation

Localización fiscal

Location

Optional

Email

Email del proveedor

string

Required

Matching regular expression pattern: ^(([^#%<>}{()¨[\]\\.,;:\s@\"\'\!\&\$\|\=\?¿¡+*´\/]+(\.[^#%<>}{()¨[\]\\.,;:\s@\"\'\!\&\$\|\=\?¿¡+*´\/]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$

String length: inclusive between 0 and 60

PhoneNumber

Teléfono del proveedor

string

Required

Matching regular expression pattern: ^\+?(\d[\d-. ]+)?(\([\d-. ]+\))?[\d-. ]+\d$

String length: inclusive between 0 and 30

DocumentNumberCheck

Digito de verificación

string

String length: inclusive between 0 and 1

physicalLocation

Localizacion fisica

Location

Optional

active

Digito de verificación

boolean

Optional

Request Formats

application/json, text/json

Sample:
{
  "fullName": "sample string 1",
  "documentNumber": "sample string 2",
  "documentTypeCode": "sample string 3",
  "code": "sample string 4",
  "juridicalOrganizationCode": "sample string 5",
  "regimenTypeCode": "sample string 6",
  "tributaryDetail": "sample string 7",
  "users": [
    {
      "FullName": "sample string 1",
      "Email": "sample string 2",
      "PhoneNumber": "sample string 3"
    },
    {
      "FullName": "sample string 1",
      "Email": "sample string 2",
      "PhoneNumber": "sample string 3"
    }
  ],
  "fiscalLocation": {
    "countryCode": "sample string 1",
    "state": "sample string 2",
    "city": "sample string 3",
    "postalZone": "sample string 4",
    "address": "sample string 5"
  },
  "Email": "sample string 8",
  "PhoneNumber": "sample string 9",
  "DocumentNumberCheck": "sample string 10",
  "physicalLocation": {
    "countryCode": "sample string 1",
    "state": "sample string 2",
    "city": "sample string 3",
    "postalZone": "sample string 4",
    "address": "sample string 5"
  },
  "active": true
}

application/xml, text/xml

Sample:
<Supplier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">
  <DocumentNumberCheck>sample string 10</DocumentNumberCheck>
  <Email>sample string 8</Email>
  <PhoneNumber>sample string 9</PhoneNumber>
  <active>true</active>
  <code>sample string 4</code>
  <documentNumber>sample string 2</documentNumber>
  <documentTypeCode>sample string 3</documentTypeCode>
  <fiscalLocation>
    <address>sample string 5</address>
    <city>sample string 3</city>
    <countryCode>sample string 1</countryCode>
    <postalZone>sample string 4</postalZone>
    <state>sample string 2</state>
  </fiscalLocation>
  <fullName>sample string 1</fullName>
  <juridicalOrganizationCode>sample string 5</juridicalOrganizationCode>
  <physicalLocation>
    <address>sample string 5</address>
    <city>sample string 3</city>
    <countryCode>sample string 1</countryCode>
    <postalZone>sample string 4</postalZone>
    <state>sample string 2</state>
  </physicalLocation>
  <regimenTypeCode>sample string 6</regimenTypeCode>
  <tributaryDetail>sample string 7</tributaryDetail>
  <users>
    <SupplierUser>
      <Email>sample string 2</Email>
      <FullName>sample string 1</FullName>
      <PhoneNumber>sample string 3</PhoneNumber>
    </SupplierUser>
    <SupplierUser>
      <Email>sample string 2</Email>
      <FullName>sample string 1</FullName>
      <PhoneNumber>sample string 3</PhoneNumber>
    </SupplierUser>
  </users>
</Supplier>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.