POST Marketplace/Publicaciones

Creación de publicación

Request Information

URI Parameters

None.

Body Parameters

CrearPublicacionRequest
NameDescriptionTypeAdditional information
IdSeller

integer

Required

Observacion

string

Max length: 200

Titulo

string

Required

Max length: 100

EAN

string

Max length: 20

PrecioLista

decimal number

Required

Range: inclusive between 1 and 1.79769313486232E+308

PrecioPromocional

decimal number

Range: inclusive between 0 and 1.79769313486232E+308

LinkYoutube

string

Max length: 200

DescripcionAmpliada

string

Required

TipoEntrega

Collection of integer

Required

EnvioGratis

boolean

None.

Dimensiones

Collection of Dimensiones

None.

Categoria

integer

Required

Marca

integer

Required

SkuSeller

string

Required

Max length: 30

Stock

integer

Required

Range: inclusive between 0 and 2147483647

Estado

string

Required

Imagenes

Collection of string

None.

IdTipoPublicacion

integer

Required

Range: inclusive between 1 and 2147483647

Request Formats

application/json, text/json

Sample:
{
  "IdSeller": 1,
  "Observacion": "sample string 1",
  "Titulo": "sample string 2",
  "EAN": "sample string 3",
  "PrecioLista": 1.0,
  "PrecioPromocional": 1.0,
  "LinkYoutube": "sample string 4",
  "DescripcionAmpliada": "sample string 5",
  "TipoEntrega": [
    1,
    2
  ],
  "EnvioGratis": true,
  "Dimensiones": [
    {
      "Alto": 1.0,
      "Ancho": 1.0,
      "Profundidad": 1.0,
      "Peso": 1.0
    },
    {
      "Alto": 1.0,
      "Ancho": 1.0,
      "Profundidad": 1.0,
      "Peso": 1.0
    }
  ],
  "Categoria": 1,
  "Marca": 1,
  "SkuSeller": "sample string 6",
  "Stock": 1,
  "Estado": "sample string 7",
  "Imagenes": [
    "sample string 1",
    "sample string 2"
  ],
  "IdTipoPublicacion": 1
}

application/xml, text/xml

Sample:
<CrearPublicacionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiMarketplaces.Contracts.Publicaciones.RequestResponses">
  <Categoria>1</Categoria>
  <DescripcionAmpliada>sample string 5</DescripcionAmpliada>
  <Dimensiones xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiMarketplaces.Contracts.Publicaciones.Entidades">
    <d2p1:Dimensiones>
      <d2p1:Alto>1</d2p1:Alto>
      <d2p1:Ancho>1</d2p1:Ancho>
      <d2p1:Peso>1</d2p1:Peso>
      <d2p1:Profundidad>1</d2p1:Profundidad>
    </d2p1:Dimensiones>
    <d2p1:Dimensiones>
      <d2p1:Alto>1</d2p1:Alto>
      <d2p1:Ancho>1</d2p1:Ancho>
      <d2p1:Peso>1</d2p1:Peso>
      <d2p1:Profundidad>1</d2p1:Profundidad>
    </d2p1:Dimensiones>
  </Dimensiones>
  <EAN>sample string 3</EAN>
  <EnvioGratis>true</EnvioGratis>
  <Estado>sample string 7</Estado>
  <IdSeller>1</IdSeller>
  <IdTipoPublicacion>1</IdTipoPublicacion>
  <Imagenes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Imagenes>
  <LinkYoutube>sample string 4</LinkYoutube>
  <Marca>1</Marca>
  <Observacion>sample string 1</Observacion>
  <PrecioLista>1</PrecioLista>
  <PrecioPromocional>1</PrecioPromocional>
  <SkuSeller>sample string 6</SkuSeller>
  <Stock>1</Stock>
  <TipoEntrega xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </TipoEntrega>
  <Titulo>sample string 2</Titulo>
</CrearPublicacionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CrearPublicacionResponse
NameDescriptionTypeAdditional information
IdPublicacion

Id de la publicación recien creada.

integer

None.

Errores

Collection of TupleOfStringAndString

None.

Response Formats

application/json, text/json

Sample:
{
  "IdPublicacion": 1,
  "Errores": [
    {
      "m_Item1": "sample string 1",
      "m_Item2": "sample string 2"
    },
    {
      "m_Item1": "sample string 1",
      "m_Item2": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<CrearPublicacionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApi.Contracts.Marketplace.RequestResponses">
  <Errores xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Helper.Contracts.Shared">
    <d2p1:TupleOfstringstring>
      <d2p1:m_Item1>sample string 1</d2p1:m_Item1>
      <d2p1:m_Item2>sample string 2</d2p1:m_Item2>
    </d2p1:TupleOfstringstring>
    <d2p1:TupleOfstringstring>
      <d2p1:m_Item1>sample string 1</d2p1:m_Item1>
      <d2p1:m_Item2>sample string 2</d2p1:m_Item2>
    </d2p1:TupleOfstringstring>
  </Errores>
  <IdPublicacion>1</IdPublicacion>
</CrearPublicacionResponse>