POST PEDIDOS/REGISTRAR_PEDIDOS_WEBPAY

Método que registra un pedido para el flujo de Webpay con Transbank

Request Information

URI Parameters

None.

Body Parameters

RegisterOrderVM
NameDescriptionTypeAdditional information
ORIGEN

string

None.

VERSION

string

None.

CLIENTE

string

None.

F_PAGO

string

None.

OBSERVACION

string

None.

FECHA_ENTREGA

string

None.

TOTAL

string

None.

ID_CAMPANA

string

None.

CODIGO_CAMPANA

string

None.

DESCTO_MONTO

decimal number

None.

GARANTIA_CANTIDAD

integer

None.

GARANTIA_VALOR_DESCUENTO

decimal number

None.

GARANTIA_COD_DESCUENTO

string

None.

CAMION

string

None.

HORA_ENTREGA

string

None.

TIPO_PEDIDO

string

None.

PRODUCTOS

Collection of OrderProductVM

None.

ID_TRANSACCION

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ORIGEN": "sample string 1",
  "VERSION": "sample string 2",
  "CLIENTE": "sample string 3",
  "F_PAGO": "sample string 4",
  "OBSERVACION": "sample string 5",
  "FECHA_ENTREGA": "sample string 6",
  "TOTAL": "sample string 7",
  "ID_CAMPANA": "sample string 8",
  "CODIGO_CAMPANA": "sample string 9",
  "DESCTO_MONTO": 10.0,
  "GARANTIA_CANTIDAD": 11,
  "GARANTIA_VALOR_DESCUENTO": 12.0,
  "GARANTIA_COD_DESCUENTO": "sample string 13",
  "CAMION": "sample string 14",
  "HORA_ENTREGA": "sample string 15",
  "TIPO_PEDIDO": "sample string 16",
  "PRODUCTOS": [
    {
      "COD_PRODUCTO": "sample string 1",
      "CANTIDAD": 2,
      "PRECIO_UNI": "sample string 3"
    },
    {
      "COD_PRODUCTO": "sample string 1",
      "CANTIDAD": 2,
      "PRECIO_UNI": "sample string 3"
    }
  ],
  "ID_TRANSACCION": "sample string 17"
}

application/xml, text/xml

Sample:
<RegisterOrderVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Order">
  <CAMION>sample string 14</CAMION>
  <CLIENTE>sample string 3</CLIENTE>
  <CODIGO_CAMPANA>sample string 9</CODIGO_CAMPANA>
  <DESCTO_MONTO>10</DESCTO_MONTO>
  <FECHA_ENTREGA>sample string 6</FECHA_ENTREGA>
  <F_PAGO>sample string 4</F_PAGO>
  <GARANTIA_CANTIDAD>11</GARANTIA_CANTIDAD>
  <GARANTIA_COD_DESCUENTO>sample string 13</GARANTIA_COD_DESCUENTO>
  <GARANTIA_VALOR_DESCUENTO>12</GARANTIA_VALOR_DESCUENTO>
  <HORA_ENTREGA>sample string 15</HORA_ENTREGA>
  <ID_CAMPANA>sample string 8</ID_CAMPANA>
  <ID_TRANSACCION>sample string 17</ID_TRANSACCION>
  <OBSERVACION>sample string 5</OBSERVACION>
  <ORIGEN>sample string 1</ORIGEN>
  <PRODUCTOS>
    <OrderProductVM>
      <CANTIDAD>2</CANTIDAD>
      <COD_PRODUCTO>sample string 1</COD_PRODUCTO>
      <PRECIO_UNI>sample string 3</PRECIO_UNI>
    </OrderProductVM>
    <OrderProductVM>
      <CANTIDAD>2</CANTIDAD>
      <COD_PRODUCTO>sample string 1</COD_PRODUCTO>
      <PRECIO_UNI>sample string 3</PRECIO_UNI>
    </OrderProductVM>
  </PRODUCTOS>
  <TIPO_PEDIDO>sample string 16</TIPO_PEDIDO>
  <TOTAL>sample string 7</TOTAL>
  <VERSION>sample string 2</VERSION>
</RegisterOrderVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OrderResponseVM
NameDescriptionTypeAdditional information
NUM_PEDIDO

string

None.

TIEMPO_ENTREGA

string

None.

MENSAJE_USR

string

None.

MENSAJE_SIS

string

None.

COD_ERROR

string

None.

Response Formats

application/json, text/json

Sample:
{
  "NUM_PEDIDO": "sample string 1",
  "TIEMPO_ENTREGA": "sample string 2",
  "MENSAJE_USR": "sample string 3",
  "MENSAJE_SIS": "sample string 4",
  "COD_ERROR": "sample string 5"
}

application/xml, text/xml

Sample:
<OrderResponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Order">
  <COD_ERROR>sample string 5</COD_ERROR>
  <MENSAJE_SIS>sample string 4</MENSAJE_SIS>
  <MENSAJE_USR>sample string 3</MENSAJE_USR>
  <NUM_PEDIDO>sample string 1</NUM_PEDIDO>
  <TIEMPO_ENTREGA>sample string 2</TIEMPO_ENTREGA>
</OrderResponseVM>