Solicitudes

Este recurso permite ver solicitudes de rescate o de anulación de envíos.


GET https://api.zippin.com.ar/v1/shipment/{id}/requests

Parámetros

Nombre Tipo Requerido Observaciones
id
Integer Si ID del Envio en Zippin
account_id
Integer Si ID de Cuenta en Zippin

Ejemplo

Request
https://api.zippin.com.ar/v1/shipment/7428/requests?account_id=2
curl -H "Content-Type: application/json" -X GET
Response OK
https://api.zippin.com.ar/v1/shipment/7428/requests?account_id=2
curl -H "Content-Type: application/json" -X GET
'{
    "status": "success",
    "requests": [
        {
            "id": 10,
            "type": "Cancellation",
            "completed": false,
            "created_at": "2018-09-04 13:22:47"
        }
    ]
}'

Crear nuevas solicitudes

Este recurso permite crear solicitudes de rescate o de anulación de envíos.

POST https://api.zippin.com.ar/v1/shipment/{id}/requests

Parámetros

Nombre Tipo Requerido Observaciones
id
Integer Si ID del Envio en Zippin
account_id
Integer Si ID de Cuenta en Zippin
type
String Si Tipo de Solicitud a crearle a un Envio (rescue / cancellation)

Ejemplo

Request
https://api.zippin.com.ar/v1/shipment/7428/requests?account_id=2&type=rescue
curl -H "Content-Type: application/json" -X GET
Response OK
https://api.zippin.com.ar/v1/shipment/7428/requests?account_id=2&type=rescue
curl -H "Content-Type: application/json" -X GET
'{
    "status": "success",
    "request_id": 27
}'