POST BOPIS/CREAR_PEDIDO
Request Information
URI Parameters
None.
Body Parameters
RegisterOrderVM| Name | Description | Type | Additional 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
PedidoResponseVM| Name | Description | Type | Additional information |
|---|---|---|---|
| NUM_PEDIDO |
Número de pedido (código único) |
string |
None. |
| TIEMPO_ENTREGA |
Tiempo estimado de entrega |
string |
None. |
| NOMB_REPARTIDOR |
Nombre del repartidor, por defecto: Lipigas |
string |
None. |
| MENSAJE_USR |
Mensaje para el cliente |
string |
None. |
| MENSAJE_SIS |
Mensaje para el programador |
string |
None. |
| COD_ERROR |
Código que define el proceso correctamente |
string |
None. |
| CALLE | string |
None. |
|
| NUMERO | string |
None. |
|
| C_COMUNA | integer |
None. |
|
| COMUNA | string |
None. |
|
| DIRECCION | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"NUM_PEDIDO": "sample string 1",
"TIEMPO_ENTREGA": "sample string 2",
"NOMB_REPARTIDOR": "sample string 3",
"MENSAJE_USR": "sample string 4",
"MENSAJE_SIS": "sample string 5",
"COD_ERROR": "sample string 6",
"CALLE": "sample string 7",
"NUMERO": "sample string 8",
"C_COMUNA": 9,
"COMUNA": "sample string 10",
"DIRECCION": "sample string 11"
}
application/xml, text/xml
Sample:
<PedidoResponseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LipiGasApi.ViewModels.Bopis"> <CALLE>sample string 7</CALLE> <COD_ERROR>sample string 6</COD_ERROR> <COMUNA>sample string 10</COMUNA> <C_COMUNA>9</C_COMUNA> <DIRECCION>sample string 11</DIRECCION> <MENSAJE_SIS>sample string 5</MENSAJE_SIS> <MENSAJE_USR>sample string 4</MENSAJE_USR> <NOMB_REPARTIDOR>sample string 3</NOMB_REPARTIDOR> <NUMERO>sample string 8</NUMERO> <NUM_PEDIDO>sample string 1</NUM_PEDIDO> <TIEMPO_ENTREGA>sample string 2</TIEMPO_ENTREGA> </PedidoResponseVM>