La documentación que estás leyendo no cuenta con los últimos cambios. ¡Revisa nuestra documentación actualizada!
Listar tipos de despacho en la generación de un documento despacho.
Al realizar una petición HTTP, el servicio retornara un JSON con la siguiente estructura:
{
"href": "https://api.bsale.cl/v1/shipping_types/6.json",
"id": 6,
"name": "Otros traslados no venta",
"codeSii": 6,
"useDestinationOffice": 0,
"state": 0
}
GET /v1/shipping_types.json
retornara todos los tipos de libro.Parámetros
Ejemplos
GET /v1/shipping_types.json?limit=10&offset=0
GET /v1/book_types.json?fields=[name,codesii,state]
Respuesta
{
"href": "https://api.bsale.cl/v1/shipping_types.json",
"count": 9,
"limit": 25,
"offset": 0,
"items": [
{
"href": "https://api.bsale.cl/v1/shipping_types/3.json",
"id": 3,
"name": "Consignaciones",
"codeSii": 3,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/4.json",
"id": 4,
"name": "Entrega gratuita",
"codeSii": 4,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/7.json",
"id": 7,
"name": "Guía de devolución",
"codeSii": 7,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/1.json",
"id": 1,
"name": "Operación constituye venta",
"codeSii": 1,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/6.json",
"id": 6,
"name": "Otros traslados no venta",
"codeSii": 6,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/5.json",
"id": 5,
"name": "Traslados internos",
"codeSii": 5,
"useDestinationOffice": 1,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/8.json",
"id": 8,
"name": "Traslado para exportación. (no venta)",
"codeSii": 8,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/2.json",
"id": 2,
"name": "Ventas por efectuar",
"codeSii": 2,
"useDestinationOffice": 0,
"state": 0
},
{
"href": "https://api.bsale.cl/v1/shipping_types/9.json",
"id": 9,
"name": "Venta para exportación",
"codeSii": 9,
"useDestinationOffice": 0,
"state": 0
}
]
}
GET /v1/shipping_types/6.json
retornara un tipo de despacho específico.Respuesta
{
"href": "https://api.bsale.cl/v1/shipping_types/6.json",
"id": 6,
"name": "Otros traslados no venta",
"codeSii": 6,
"useDestinationOffice": 0,
"state": 0
}