{
    "variables": [],
    "info": {
        "name": "SISTRACK API",
        "_postman_id": "7a1f9a65-833c-4632-bfdf-84d2decd86ba",
        "description": "Documentaci\u00f3n para usar la API de Sistrack, en la url que se usa en los endpoints debes cambiar testaccount por el nombre de tu cuenta, por ejemplo si tu empresa se llama enviosuno, la url seria https:\/\/enviosuno.sistrack.net\/...",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"
    },
    "item": [
        {
            "name": "Orders",
            "description": "\nEsta operaci\u00f3n permite crear una orden de env\u00edo. En el dominio debes incluir el subdominio de la empresa, por ejemplo, si la empresa es testaccount, el dominio ser\u00eda https:\/\/testaccount.sistrack.net.",
            "item": [
                {
                    "name": "api\/order\/create",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/order\/create",
                            "query": []
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"sender_id\": 5,\n    \"recipient_id\": 10,\n    \"description\": \"Batch of books\",\n    \"weight\": 5,\n    \"price_per_weight\": 1000,\n    \"declared_value\": 5000,\n    \"observations\": \"Handle with care\"\n}"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "api\/order\/{id}",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/order\/:id",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        },
        {
            "name": "Recipients",
            "description": "\nEndpoint for creating recipients",
            "item": [
                {
                    "name": "api\/recipient\/create",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/recipient\/create",
                            "query": []
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Luis Mata\",\n    \"telephone\": \"+56954235443\",\n    \"email\": \"user@example.com\",\n    \"id_number\": \"14345432\",\n    \"address_line_1\": \"La capitania 10\",\n    \"address_line_2\": \"office 13\",\n    \"suburb\": \"Las Condes\",\n    \"city\": \"Santiago\",\n    \"state\": \"RM\",\n    \"postal_code\": \"10304\",\n    \"country\": \"CL\"\n}"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        },
        {
            "name": "Senders",
            "description": "\nEndpoint for creating senders",
            "item": [
                {
                    "name": "api\/sender\/create",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/sender\/create",
                            "query": []
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Luis Mata\",\n    \"telephone\": \"+56954235443\",\n    \"email\": \"user@example.com\",\n    \"id_number\": \"14345432\",\n    \"address_line_1_order\": \"La capitania 10\",\n    \"address_line_2_order\": \"office 13\",\n    \"suburb_order\": \"Las Condes\",\n    \"city_order\": \"Santiago\",\n    \"state_order\": \"RM\",\n    \"postal_code_order\": \"10304\",\n    \"country_order\": \"CL\"\n}"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        },
        {
            "name": "general",
            "description": "",
            "item": [
                {
                    "name": "Handle the incoming request.",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/order\/:id",
                            "query": []
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "api\/collect\/{id}",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/collect\/:id",
                            "query": []
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Handle the incoming request.",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "testaccount.sistrack.net",
                            "path": "api\/user\/collects\/:q",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Authorization",
                                "value": "Bearer {token}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        }
    ]
}