POST api/Documento/CreateDocument

Request Information

URI Parameters

None.

Body Parameters

PedidoModel
NameDescriptionTypeAdditional information
TipoDocumento

integer

None.

DocEntry

string

None.

CardCode

string

None.

NumAtCard

string

None.

CardName

string

None.

TaxDate

date

None.

Comments

string

None.

Serie

integer

None.

ShipToCode

string

None.

PaytoCode

string

None.

DiscountPercent

decimal number

None.

Incoterms

string

None.

Carrier

string

None.

SlpCode

integer

None.

OwnerCode

integer

None.

CamposUsuario

string

None.

Detalles

Collection of PedidoDetalleModel

None.

DocDueDate

date

None.

Comentarios

string

None.

BusinessPartner

BusinessPartnerModel

None.

GroupNumber

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TipoDocumento": 1,
  "DocEntry": "sample string 1",
  "CardCode": "sample string 2",
  "NumAtCard": "sample string 3",
  "CardName": "sample string 4",
  "TaxDate": "2025-01-09T23:20:23.2294634-05:00",
  "Comments": "sample string 5",
  "Serie": 1,
  "ShipToCode": "sample string 6",
  "PaytoCode": "sample string 7",
  "DiscountPercent": 1.1,
  "Incoterms": "sample string 8",
  "Carrier": "sample string 9",
  "SlpCode": 1,
  "OwnerCode": 1,
  "CamposUsuario": "sample string 10",
  "Detalles": [
    {
      "ItemCode": "sample string 1",
      "SuppCatNum": "sample string 2",
      "ItemName": "sample string 3",
      "Quantity": 4.1,
      "WhsCode": "sample string 5",
      "Price": 1.1,
      "DiscountPercent": 1.1,
      "BaseEntry": 1,
      "Comodin": 1,
      "CamposUsuario": "sample string 6",
      "TaxCode": "sample string 7",
      "FreeTxt": "sample string 8",
      "TaxOnly": "sample string 9",
      "U_TIPDISC_DIAN": "sample string 10"
    },
    {
      "ItemCode": "sample string 1",
      "SuppCatNum": "sample string 2",
      "ItemName": "sample string 3",
      "Quantity": 4.1,
      "WhsCode": "sample string 5",
      "Price": 1.1,
      "DiscountPercent": 1.1,
      "BaseEntry": 1,
      "Comodin": 1,
      "CamposUsuario": "sample string 6",
      "TaxCode": "sample string 7",
      "FreeTxt": "sample string 8",
      "TaxOnly": "sample string 9",
      "U_TIPDISC_DIAN": "sample string 10"
    }
  ],
  "DocDueDate": "2025-01-09T23:20:23.2294634-05:00",
  "Comentarios": "sample string 11",
  "BusinessPartner": {
    "CardCode": "sample string 1",
    "CardName": "sample string 2",
    "CardFName": "sample string 3",
    "LicTradNum": "sample string 4",
    "GroupCode": 5,
    "Email": "sample string 6",
    "Phone1": "sample string 7",
    "Notes": "sample string 8",
    "Address": "sample string 9",
    "City": "sample string 10",
    "County": "sample string 11",
    "Country": "sample string 12",
    "CardType": 13,
    "ListNum": 14,
    "Currency": "sample string 15",
    "ObjType": 16,
    "Series": 17,
    "Direccion": "sample string 18",
    "StreetS": "sample string 19",
    "StreetNoS": "sample string 20",
    "ZipCode": "sample string 21",
    "Ciudad": "sample string 22",
    "Pais": "sample string 23",
    "State": "sample string 24",
    "CamposUsuarioDireccion": "sample string 25",
    "Cellular": "sample string 26",
    "Giro": "sample string 27",
    "Departamento": "sample string 28",
    "CamposUsuario": "sample string 29",
    "CamposUsuarioDireccionShip": "sample string 30",
    "CamposUsuarioDireccionBill": "sample string 31"
  },
  "GroupNumber": 1
}

application/xml, text/xml

Sample:
<PedidoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServiceEmpack.Models">
  <BusinessPartner>
    <Address>sample string 9</Address>
    <CamposUsuario>sample string 29</CamposUsuario>
    <CamposUsuarioDireccion>sample string 25</CamposUsuarioDireccion>
    <CamposUsuarioDireccionBill>sample string 31</CamposUsuarioDireccionBill>
    <CamposUsuarioDireccionShip>sample string 30</CamposUsuarioDireccionShip>
    <CardCode>sample string 1</CardCode>
    <CardFName>sample string 3</CardFName>
    <CardName>sample string 2</CardName>
    <CardType>13</CardType>
    <Cellular>sample string 26</Cellular>
    <City>sample string 10</City>
    <Ciudad>sample string 22</Ciudad>
    <Country>sample string 12</Country>
    <County>sample string 11</County>
    <Currency>sample string 15</Currency>
    <Departamento>sample string 28</Departamento>
    <Direccion>sample string 18</Direccion>
    <Email>sample string 6</Email>
    <Giro>sample string 27</Giro>
    <GroupCode>5</GroupCode>
    <LicTradNum>sample string 4</LicTradNum>
    <ListNum>14</ListNum>
    <Notes>sample string 8</Notes>
    <ObjType>16</ObjType>
    <Pais>sample string 23</Pais>
    <Phone1>sample string 7</Phone1>
    <Series>17</Series>
    <State>sample string 24</State>
    <StreetNoS>sample string 20</StreetNoS>
    <StreetS>sample string 19</StreetS>
    <ZipCode>sample string 21</ZipCode>
  </BusinessPartner>
  <CamposUsuario>sample string 10</CamposUsuario>
  <CardCode>sample string 2</CardCode>
  <CardName>sample string 4</CardName>
  <Carrier>sample string 9</Carrier>
  <Comentarios>sample string 11</Comentarios>
  <Comments>sample string 5</Comments>
  <Detalles>
    <PedidoDetalleModel>
      <BaseEntry>1</BaseEntry>
      <CamposUsuario>sample string 6</CamposUsuario>
      <Comodin>1</Comodin>
      <DiscountPercent>1.1</DiscountPercent>
      <FreeTxt>sample string 8</FreeTxt>
      <ItemCode>sample string 1</ItemCode>
      <ItemName>sample string 3</ItemName>
      <Price>1.1</Price>
      <Quantity>4.1</Quantity>
      <SuppCatNum>sample string 2</SuppCatNum>
      <TaxCode>sample string 7</TaxCode>
      <TaxOnly>sample string 9</TaxOnly>
      <U_TIPDISC_DIAN>sample string 10</U_TIPDISC_DIAN>
      <WhsCode>sample string 5</WhsCode>
    </PedidoDetalleModel>
    <PedidoDetalleModel>
      <BaseEntry>1</BaseEntry>
      <CamposUsuario>sample string 6</CamposUsuario>
      <Comodin>1</Comodin>
      <DiscountPercent>1.1</DiscountPercent>
      <FreeTxt>sample string 8</FreeTxt>
      <ItemCode>sample string 1</ItemCode>
      <ItemName>sample string 3</ItemName>
      <Price>1.1</Price>
      <Quantity>4.1</Quantity>
      <SuppCatNum>sample string 2</SuppCatNum>
      <TaxCode>sample string 7</TaxCode>
      <TaxOnly>sample string 9</TaxOnly>
      <U_TIPDISC_DIAN>sample string 10</U_TIPDISC_DIAN>
      <WhsCode>sample string 5</WhsCode>
    </PedidoDetalleModel>
  </Detalles>
  <DiscountPercent>1.1</DiscountPercent>
  <DocDueDate>2025-01-09T23:20:23.2294634-05:00</DocDueDate>
  <DocEntry>sample string 1</DocEntry>
  <GroupNumber>1</GroupNumber>
  <Incoterms>sample string 8</Incoterms>
  <NumAtCard>sample string 3</NumAtCard>
  <OwnerCode>1</OwnerCode>
  <PaytoCode>sample string 7</PaytoCode>
  <Serie>1</Serie>
  <ShipToCode>sample string 6</ShipToCode>
  <SlpCode>1</SlpCode>
  <TaxDate>2025-01-09T23:20:23.2294634-05:00</TaxDate>
  <TipoDocumento>1</TipoDocumento>
</PedidoModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PedidoModel'.

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.