POST api/Proveedor/Proveedor

Request Information

URI Parameters

None.

Body Parameters

ProveedorModel
NameDescriptionTypeAdditional information
IdSucursal

globally unique identifier

Required

Usuario

string

None.

NombreAttachedXml

string

Required

XmlAttechedBase64

string

Required

NombrePdf

string

Required

PdfBase64

string

Required

ListadoAnexos

Collection of Anexo

None.

Request Formats

application/json, text/json

Sample:
{
  "IdSucursal": "3c6b7fc6-55fa-4cf0-9a0a-beba78eb47b4",
  "Usuario": "sample string 2",
  "NombreAttachedXml": "sample string 3",
  "XmlAttechedBase64": "sample string 4",
  "NombrePdf": "sample string 5",
  "PdfBase64": "sample string 6",
  "ListadoAnexos": [
    {
      "NombreCompleto": "sample string 1",
      "ArchivoBase64": "sample string 2"
    },
    {
      "NombreCompleto": "sample string 1",
      "ArchivoBase64": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ProveedorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIFACSEV2.Models.Json">
  <IdSucursal>3c6b7fc6-55fa-4cf0-9a0a-beba78eb47b4</IdSucursal>
  <ListadoAnexos>
    <ProveedorModel.Anexo>
      <ArchivoBase64>sample string 2</ArchivoBase64>
      <NombreCompleto>sample string 1</NombreCompleto>
    </ProveedorModel.Anexo>
    <ProveedorModel.Anexo>
      <ArchivoBase64>sample string 2</ArchivoBase64>
      <NombreCompleto>sample string 1</NombreCompleto>
    </ProveedorModel.Anexo>
  </ListadoAnexos>
  <NombreAttachedXml>sample string 3</NombreAttachedXml>
  <NombrePdf>sample string 5</NombrePdf>
  <PdfBase64>sample string 6</PdfBase64>
  <Usuario>sample string 2</Usuario>
  <XmlAttechedBase64>sample string 4</XmlAttechedBase64>
</ProveedorModel>

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 'ProveedorModel'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />