Búsqueda

Este recurso permite hacer una busqueda por todos los envios registrados en la cuenta de Zippin.


GET https://api.zippin.com.ar/v1/shipment/search

Parámetros

Nombre Tipo Requerido Observaciones
account_id
Integer Si ID de Cuenta en Zippin
limit
Integer No Cantidad de registros mostrados por request (MAX 50)
page
Integer No Pagina de resultados
date_from
Date No Filtra por fecha de creacion desde (Y-m-d 2017-01-01)
date_to
Date No Filtra por tope de fecha hasta (Y-m-d 2017-01-01)
status
Integer No ID del estado del envio en Zippin
city
String No Localidad a la cual se envia el Envio
state
String No Provincia a la que se hace el $nvio
has_remito
Integer No Tiene o no tiene Remito (0 ó 1)
Nota: Ambas fechas son comparadas con la fecha de creacion del Envio

Ejemplo

Request

https://api.zippin.com.ar/v1/shipment/search?account_id=2
curl -H "Content-Type: application/json" -X GET

Response OK

https://api.zippin.com.ar/v1/shipment/search?account_id=2
curl -H "Content-Type: application/json" -X GET
'{
    "status": "success",
    "total": 3,
    "limit": "3",
    "current_page": 1,
    "next_page": "https://api.zippin.com.ar/v1/shipment/search?account_id=2&page=2&limit=3",
    "shipments": [
        {
            "id": 1,
            "external_id": "090017288888888",
            "coordinated": 1,
            "account_id": 2,
            "status_id": 1,
            "destination": {
                "name": "Thorin Oakenshield",
                "document": "232221124",
                "street": "Av. Siempreviva",
                "street_number": "2544",
                "street_extras": "Piso 1 Apto 2",
                "city": "Capital Federal",
                "state": "Capital Federal",
                "zipcode": "1421",
                "email": "thorinoakenshield@gmail.com"
            },
            "origin": {
                "name": "Almacen Gotico",
                "city": "Capital Federal",
                "state": "Capital Federal",
                "zipcode": "1421"
            },
            "declaredValue": "395.26",
            "price": "330.00",
            "insurance": "3.95",
            "total_weight": 3770,
            "total_volume": 2392,
            "total_packages": 1
        },
        {
            "id": 2,
            "external_id": "090017288888888",
            "coordinated": 1,
            "account_id": 2,
            "status_id": 1,
            "destination": {
                "name": "Thorin Oakenshield",
                "document": "232221124",
                "street": "Av. Siempreviva",
                "street_number": "2544",
                "street_extras": "Piso 1 Apto 2",
                "city": "Capital Federal",
                "state": "Capital Federal",
                "zipcode": "1421",
                "email": "thorinoakenshield@gmail.com"
            },
            "origin": {
                "name": "Almacen Gotico",
                "city": "Capital Federal",
                "state": "Capital Federal",
                "zipcode": "1421"
            },
            "declaredValue": "395.26",
            "price": "330.00",
            "insurance": "3.95",
            "total_weight": 3770,
            "total_volume": 2392,
            "total_packages": 1
        },
        {
            "id": 3,
            "external_id": "090017288888888",
            "coordinated": 1,
            "account_id": 2,
            "status_id": 1,
            "destination": {
                "name": "Thorin Oakenshield",
                "document": "232221124",
                "street": "Av. Siempreviva",
                "street_number": "2544",
                "street_extras": "Piso 1 Apto 2",
                "city": "Capital Federal",
                "state": "Capital Federal",
                "zipcode": "1421",
                "email": "thorinoakenshield@gmail.com"
            },
            "origin": {
                "name": "Almacen Gotico",
                "city": "Capital Federal",
                "state": "Capital Federal",
                "zipcode": "1421"
            },
            "declaredValue": "395.26",
            "price": "330.00",
            "insurance": "3.95",
            "total_weight": 3770,
            "total_volume": 52500,
            "total_packages": 1
        }
    ]
}'

Response Not Found

https://api.zippin.com.ar/v1/shipment/search?account_id=2
curl -H "Content-Type: application/json" -X GET
'[]'