NAV Navbar

API Documentation

shell javascript ruby python php go
  • Introduction
  • Authentication
  • Account
  • Billing
  • Shipping
  • MultiShipping
  • Webhook
  • Checking Account
  • Errors
  • Introduction

    Welcome to the Ando API. You can use our API to access Ando API endpoints, which can get information on shipments, quotes, and tracking.

    We have language bindings in Curl, Javascript (Node.JS), Ruby, Python, PHP and Go. You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

    Ando uses OAuth2 to allow access to the API. You can access to the APIs using your own personal account, or asking for special access to the other functionalities by email.

    If you need additional technical support in order to use this documentation, you can ask it through the following email

    You can access to our Sandbox in order to try our endpoints using the following web address

    Authentication

    Get Token

    curl --request POST \
      --url 'https://api.ando.la/v1/login'\
      --header 'Content-Type: application/json' \
      --data '{
          "email": "you@domain.com",
          "password": "your-passw0rd",
      }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "login"
      ],
      "headers": {
        "Content-Type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ 
      email: 'you@domain.com',
      password: 'your-passw0rd'
    }));
    
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/login")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request.body = "{\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/login"
    
    payload = "{\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\"}"
    headers = {'Content-Type': 'application/json'}
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/login",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\"\n}",
      CURLOPT_HTTPHEADER => array(
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
      url := "https://api.ando.la/v1/login"
    
      payload := strings.NewReader("{\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\"\n}")
    
      req, _ := http.NewRequest("POST", url, payload)
    
      req.Header.Add("Content-Type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
        "email": "you@domain.com",
        "password": "your-passw0rd"
    }
    Response Example
    {
      "email": "useremail@gmail.com",
      "userID": 1,
      "token": "USER_TOKEN",
      "expirationToken": "DATE_TOKEN"
    }
    

    First ask for an access token, using your login credentials. a TOKEN will be returned and shall be included in the HEADER of all your request as Bearer.

    HTTP Request

    POST https://api.ando.la/v1/login

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json
    Parameter Description
    email email@domain.com
    password your-password

    Account

    Get My Account

    curl --request GET \
      --url 'https://api.ando.la/v1/account' \
      --header 'Authorization: Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo'
    
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "account"
      ],
      "headers": {
        "Authorization": "Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/account")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Authorization"] = 'Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo'
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/account"
    
    headers = {'Authorization': 'Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo'}
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/account",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/account"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Authorization", "Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "email": "you@domain.com"  
    }
    Response Example
    {
      "email": "user_email@email.com",
      "name": "Name",
      "surname": "Surname",
      "userID": 1,
      "phone": "USERPHONE",
      "address": [],
      "carrierId": 0,
      "calification": 0,
      "identificationNumber": null,
      "profilePicture": null,
      "companyId": 1,
      "token": "Bearer USERTOKEN"
    }
    

    The users can get information of their accounts, using the Bearer Token given from Login. This information is useful to users can view their profiles pages.

    HTTP Request

    GET https://api.ando.la/v1/user?email=you@domain.com&token=4b73b11dc60ee75959eca2c117614e9741dfc99a

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    URL Parameters

    Parameter Description
    Email Your email.
    Token Your Bearer Token.

    Recover Password

    curl --request POST \
      --url 'https://api.ando.la/v1/recover/password' \
      --header 'Content-Type: application/json' \
      --data '{
    "email": "you@domain.com"  
    }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "recover",
        "password"
      ],
      "headers": {
        "Content-Type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ email: 'you@domain.com' }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/recover/password")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request.body = "{ \n\"email\": \"you@domain.com\"  \n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/recover/password"
    
    payload = "{ \n\"email\": \"you@domain.com\"  \n}"
    headers = {'Content-Type': 'application/json'}
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/recover/password",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{ \n\"email\": \"you@domain.com\"  \n}",
      CURLOPT_HTTPHEADER => array(
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/recover/password"
    
        payload := strings.NewReader("{ \n\"email\": \"you@domain.com\"  \n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
        "email": "you@domain.com"
    }
    Response Example
    {
        "status": 200,
        "message": "Password recovery succesfully, please check your email"
    }
    

    The users can recover their account using email as parameter. An automatic E-mail will sent with a recovery link to change the user's password.

    HTTP Request

    POST https://api.ando.la/v1/recover/password

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    email Email which password to recover.

    Signup

    curl --request POST \
      --url 'https://api.ando.la/v1/signup' \
      --header 'Content-Type: application/json' \
      --data '{
        "firstName": "John",
        "lastName": "Doe",
        "email": "you@domain.com",
        "password": "your-passw0rd",
        "phone":"000000000",
        "type": "merchant",
        "PersonalID_number":30000000,
        "PersonalID_type":"DNI"
    }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "signup"
      ],
      "headers": {
        "Content-Type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ firstName: 'John',
      lastName: 'Doe',
      email: 'you@domain.com',
      password: 'your-passw0rd',
      phone: '000000000',
      type: 'merchant',
      PersonalID_number: 30000000,
      PersonalID_type: 'DNI' }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/signup")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request.body = "{\n\t\"firstName\": \"John\",\n\t\"lastName\": \"Doe\",\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\", \n\t\"phone\":\"000000000\",\n\t\"type\": \"merchant\",\n\t\"PersonalID_number\":30000000,\n\t\"PersonalID_type\":\"DNI\"\n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/signup"
    
    payload = "{\n\t\"firstName\": \"John\",\n\t\"lastName\": \"Doe\",\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\", \n\t\"phone\":\"000000000\",\n\t\"type\": \"merchant\",\n\t\"PersonalID_number\":30000000,\n\t\"PersonalID_type\":\"DNI\"\n}"
    headers = {'Content-Type': 'application/json'}
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/signup",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{\n\t\"firstName\": \"John\",\n\t\"lastName\": \"Doe\",\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\", \n\t\"phone\":\"000000000\",\n\t\"type\": \"merchant\",\n\t\"PersonalID_number\":30000000,\n\t\"PersonalID_type\":\"DNI\"\n}",
      CURLOPT_HTTPHEADER => array(
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/signup"
    
        payload := strings.NewReader("{\n\t\"firstName\": \"John\",\n\t\"lastName\": \"Doe\",\n\t\"email\": \"you@domain.com\",\n\t\"password\": \"your-passw0rd\", \n\t\"phone\":\"000000000\",\n\t\"type\": \"merchant\",\n\t\"PersonalID_number\":30000000,\n\t\"PersonalID_type\":\"DNI\"\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
        "firstName": "John",
        "lastName": "Doe",
        "email": "you@domain.com",
        "password": "your-passw0rd",
        "phone":"000000000",
        "type": "merchant",
        "PersonalID_number":30000000,
        "PersonalID_type":"DNI"
    }
    Response Example
    {
      "status": 200,
      "message": "User created Succesfully, please check your email for confirmation"
    }
    

    The users can signup in Ando.la. An automatic E-mail will sent ask for user's confirmation. After that the user would be signed up in Ando.la successfully.

    HTTP Request

    POST https://api.ando.la/v1/signup

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    firstName Customers' first name.
    lastName Customers' last name.
    email Customers' email.
    password Customers' password.
    phone Customers' phone.
    type Customers' type.
    PersonalID_number Customers' Personal ID Number (DNI).
    PersonalID_type Customers' personal ID type, can be CUIT or DNI.

    Billing

    Get All Cards

    curl --request GET \
      --url 'https://api.ando.la/v1/user/paymentMethods' \
      --header 'Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw' \
      --header 'Content-Type: application/json'
    
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "user",
        "paymentMethods"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/user/paymentMethods")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw'
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/user/paymentMethods"
    
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
        }
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/user/paymentMethods",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/user/paymentMethods"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Response Example
    {
        "status": 200,
        "message": [
            [{"An Object with information about your cards"}]
        ]
    }
    

    The users can get information of their credit cards. If exist, will return a JSON file with information about cards, else will return an error.

    HTTP Request

    GET https://api.ando.la/v1/user/paymentMethods

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    Add a Card

    curl --request POST \
      --url 'https://api.ando.la/v1/user/paymentMethods/add' \
      --header 'Authorization: Bearer RmZkF_zqU0zSiJkZxwigcZ_68bYzr3gnXfopPZ7Lf6xZYA7cknhMcq9E4hpD9jtQ1noL9rePoMtZ0Yyod0LWSQZNayhfoU_K_kgbTahp8SsAl_yYAY2YeM4Eb7xKwV4963WFLm7JAU_eQdEmAjvK1iJrt0b9wH11K4VcINjGYO_xopL8-jLchKF3UcC5GkkzLBmUYpMPuqi60Z3SDixg-pzI_UMaR4vznre9a6tMdzdTfnaCtk3lg7qr-77cDie6fjBYIftgZXdfNH22uuJ4oCY-GCnz_1swIUKiofL6JD0' \
      --header 'Content-Type: application/json' \
      --data '{    "cardNumber": 4540000000000000,
          "securityCode": "111",
          "expiration_month":10,
          "expiration_year": 2021,  
          "cardholder":"John Doe",
          "PersonalID_type":"DNI",
          "PersonalID_number":39000000,
          "cardType":"VISA"
    }
     '
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "user",
        "paymentMethods",
        "add"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer RmZkF_zqU0zSiJkZxwigcZ_68bYzr3gnXfopPZ7Lf6xZYA7cknhMcq9E4hpD9jtQ1noL9rePoMtZ0Yyod0LWSQZNayhfoU_K_kgbTahp8SsAl_yYAY2YeM4Eb7xKwV4963WFLm7JAU_eQdEmAjvK1iJrt0b9wH11K4VcINjGYO_xopL8-jLchKF3UcC5GkkzLBmUYpMPuqi60Z3SDixg-pzI_UMaR4vznre9a6tMdzdTfnaCtk3lg7qr-77cDie6fjBYIftgZXdfNH22uuJ4oCY-GCnz_1swIUKiofL6JD0"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ cardNumber: 4540000000000000,
      securityCode: '111',
      expiration_month: 10,
      expiration_year: 2021,
      cardholder: 'John Doe',
      PersonalID_type: 'DNI',
      PersonalID_number: 39000000,
      cardType: 'VISA' }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/user/paymentMethods/add")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer RmZkF_zqU0zSiJkZxwigcZ_68bYzr3gnXfopPZ7Lf6xZYA7cknhMcq9E4hpD9jtQ1noL9rePoMtZ0Yyod0LWSQZNayhfoU_K_kgbTahp8SsAl_yYAY2YeM4Eb7xKwV4963WFLm7JAU_eQdEmAjvK1iJrt0b9wH11K4VcINjGYO_xopL8-jLchKF3UcC5GkkzLBmUYpMPuqi60Z3SDixg-pzI_UMaR4vznre9a6tMdzdTfnaCtk3lg7qr-77cDie6fjBYIftgZXdfNH22uuJ4oCY-GCnz_1swIUKiofL6JD0'
    request.body = "{    \"cardNumber\": 4540000000000000, \n      \"securityCode\": \"111\", \n      \"expiration_month\":10,\n      \"expiration_year\": 2021,  \n      \"cardholder\":\"John Doe\",\n      \"PersonalID_type\":\"DNI\",\n      \"PersonalID_number\":39000000,\n      \"cardType\":\"VISA\"\n}\n "
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/user/paymentMethods/add"
    
    payload = "{    \"cardNumber\": 4540000000000000, \n      \"securityCode\": \"111\", \n      \"expiration_month\":10,\n      \"expiration_year\": 2021,  \n      \"cardholder\":\"John Doe\",\n      \"PersonalID_type\":\"DNI\",\n      \"PersonalID_number\":39000000,\n      \"cardType\":\"VISA\"\n}\n "
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer RmZkF_zqU0zSiJkZxwigcZ_68bYzr3gnXfopPZ7Lf6xZYA7cknhMcq9E4hpD9jtQ1noL9rePoMtZ0Yyod0LWSQZNayhfoU_K_kgbTahp8SsAl_yYAY2YeM4Eb7xKwV4963WFLm7JAU_eQdEmAjvK1iJrt0b9wH11K4VcINjGYO_xopL8-jLchKF3UcC5GkkzLBmUYpMPuqi60Z3SDixg-pzI_UMaR4vznre9a6tMdzdTfnaCtk3lg7qr-77cDie6fjBYIftgZXdfNH22uuJ4oCY-GCnz_1swIUKiofL6JD0"
        }
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/user/paymentMethods/add",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{    \"cardNumber\": 4540000000000000, \n      \"securityCode\": \"111\", \n      \"expiration_month\":10,\n      \"expiration_year\": 2021,  \n      \"cardholder\":\"John Doe\",\n      \"PersonalID_type\":\"DNI\",\n      \"PersonalID_number\":39000000,\n      \"cardType\":\"VISA\"\n}\n ",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer RmZkF_zqU0zSiJkZxwigcZ_68bYzr3gnXfopPZ7Lf6xZYA7cknhMcq9E4hpD9jtQ1noL9rePoMtZ0Yyod0LWSQZNayhfoU_K_kgbTahp8SsAl_yYAY2YeM4Eb7xKwV4963WFLm7JAU_eQdEmAjvK1iJrt0b9wH11K4VcINjGYO_xopL8-jLchKF3UcC5GkkzLBmUYpMPuqi60Z3SDixg-pzI_UMaR4vznre9a6tMdzdTfnaCtk3lg7qr-77cDie6fjBYIftgZXdfNH22uuJ4oCY-GCnz_1swIUKiofL6JD0",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/user/paymentMethods/add"
    
        payload := strings.NewReader("{    \"cardNumber\": 4540000000000000, \n      \"securityCode\": \"111\", \n      \"expiration_month\":10,\n      \"expiration_year\": 2021,  \n      \"cardholder\":\"John Doe\",\n      \"PersonalID_type\":\"DNI\",\n      \"PersonalID_number\":39000000,\n      \"cardType\":\"VISA\"\n}\n ")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer RmZkF_zqU0zSiJkZxwigcZ_68bYzr3gnXfopPZ7Lf6xZYA7cknhMcq9E4hpD9jtQ1noL9rePoMtZ0Yyod0LWSQZNayhfoU_K_kgbTahp8SsAl_yYAY2YeM4Eb7xKwV4963WFLm7JAU_eQdEmAjvK1iJrt0b9wH11K4VcINjGYO_xopL8-jLchKF3UcC5GkkzLBmUYpMPuqi60Z3SDixg-pzI_UMaR4vznre9a6tMdzdTfnaCtk3lg7qr-77cDie6fjBYIftgZXdfNH22uuJ4oCY-GCnz_1swIUKiofL6JD0")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "cardNumber": 4540000000000000,
      "securityCode": "111",
      "expiration_month":10,
      "expiration_year": 2021,  
      "cardholder":"John Doe",
      "PersonalID_type":"DNI",
      "PersonalID_number":39000000,
      "cardType":"VISA"
    }
    

    The users can add a credit card to their accounts. If it's valid, will return a JSON file with information about user's card, else will return an error.

    HTTP Request

    POST https://api.ando.la/v1/user/paymentMethods/add

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    cardNumber Card number of the customer.
    securityCode CVV
    expiration_month Expiration month of the card.
    expiration_year Expiration year of the card.
    cardholder Full Name of the cardholder.
    PersonalID_type Type of Personal ID, can be DNI, CUIT, Passport.
    PersonalID_number Personal ID number.
    cardType Type of the card can be VISA, Mastercard, etc.

    Delete a Card

    curl --request DELETE \
      --url 'https://api.ando.la/v1/user/paymentMethods/remove' \
      --header 'Authorization: Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg' \
      --header 'Content-Type: application/json' \
      --data '{
      "cardId":243715685
    }'
    
    var http = require("http");
    
    var options = {
      "method": "DELETE",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "user",
        "paymentMethods",
        "remove"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ cardId: 243715685 }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/user/paymentMethods/remove")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Delete.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg'
    request.body = "{ \r\n  \"cardId\":243715685\r\n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/user/paymentMethods/remove"
    
    payload = "{ \r\n  \"cardId\":243715685\r\n}"
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg"
        }
    
    response = requests.request("DELETE", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/user/paymentMethods/remove",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "DELETE",
      CURLOPT_POSTFIELDS => "{ \r\n  \"cardId\":243715685\r\n}",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/user/paymentMethods/remove"
    
        payload := strings.NewReader("{ \r\n  \"cardId\":243715685\r\n}")
    
        req, _ := http.NewRequest("DELETE", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "cardId":12345678
    }
    Response Example
    {
        "status": 200,
        "message": "Credit Card deleted succesfully"
    }
    

    The users can delete an specific Credit Card. In order to delete a card, the user needs a specific cardId parameter, which is returned by a card of 'Get All Cards' Endpoint. If exist, will return a JSON file with a success message, else will return an error.

    HTTP Request

    DELETE https://api.ando.la/v1/user/paymentMethods/remove

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    cardId ID of the card to delete.

    Shipping

    Get Shipping History

    curl --request GET \
      --url 'https://api.ando.la/v1/shipment/history' \
      --header 'Authorization: Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4' \
      --header 'Content-Type: application/json'
    
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "shipment",
        "history"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/shipment/history")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4'
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/shipment/history"
    
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4"
        }
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/shipment/history",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/shipment/history"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Response Example
    {
      "trackingID":12345,
        "externalReference":12345,
        "shipFrom": {
          "email":"user@email.com",
          "name":"name",
          "surname":"surname", 
          "userID":1,
          "phone":"phone",
          "address":"address",   
          "calification":5,
          "identificationNumber":12345678, 
          "profilePicture":"profile_picture_url",
          "companyId":123456,
          "company":"company_name",
          "address":"company_address",
          "instructions":"instructions" 
        },
        "shipTo": {
          "email":"email@email.com",
          "name":"name",
          "surname":"surname", 
          "userID":"userID",
          "phone":"phone",
          "address":"address",   
          "calification":5,
          "identificationNumber":12345678, 
          "profilePicture":"profile_picture_url",
          "companyId":123456,
          "company":"company_name",
          "address":"company_address",
          "instructions":"instructions"  
        }, 
        "carrier":{ 
          "transport":"bike", 
          "name":"transportist_name",
          "surname":"transportist_surname",
          "phone": "transportist_phone",
          "email": "tranportist_email",
          "profilePicture":"profile_picture_url",
          "status":"sent",
          "startDate":"startDate", 
          "packageType":"packageType",  
          "paid":true, 
          "price":10000,
          "encripted": "sign",  
          "delivered_ToCarrier":true,  
          "cancelled": false
    }
    

    The users can get useful information to view the tracking and current status of their shipments. In order to begin a new shipment history a Bearer Token is needed from Login endpoint.

    HTTP Request

    GET https://api.ando.la/v1/shipment/history

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    Get Shipping Quote

    curl --request POST \
      --url 'https://api.ando.la/v1/shipment/quote' \
      --header 'Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw' \
      --header 'Content-Type: application/json' \
      --data '{  
        "shipFrom_province":"Buenos Aires",
        "shipFrom_addressStreet":"El Salvador",
        "shipFrom_addressNumber":"5218",
        "shipFrom_city":"Buenos Aires",
        "shipFrom_country":"Argentina",
        "shipTo_firstName":"Name",
        "shipTo_lastName":"LastName",
        "shipTo_phone":"000000000",
        "shipTo_addressStreet":"Guemes",
        "shipTo_addressNumber":"4424",
        "shipTo_city":"Buenos Aires",
        "shipTo_country":"Argentina",
        "shipTo_instructions":"Something.",
        "packageWidth":2,
        "packageLarge":2,
        "packageHeight":2,
        "packageWeight":1
    }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "shipment",
        "quote"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ shipFrom_province: 'Buenos Aires',
      shipFrom_addressStreet: 'El Salvador',
      shipFrom_addressNumber: '5218',
      shipFrom_city: 'Buenos Aires',
      shipFrom_country: 'Argentina',
      shipTo_firstName: 'Name',
      shipTo_lastName: 'LastName',
      shipTo_phone: '000000000',
      shipTo_addressStreet: 'Guemes',
      shipTo_addressNumber: '4424',
      shipTo_city: 'Buenos Aires',
      shipTo_country: 'Argentina',
      shipTo_instructions: 'Something.',
      packageWidth: 2,
      packageLarge: 2,
      packageHeight: 2,
      packageWeight: 1
     }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/shipment/quote")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw'
    request.body = "{  \r\n\t\"shipFrom_province\":\"Buenos Aires\",\r\n\t\"shipFrom_addressStreet\":\"El Salvador\",\r\n\t\"shipFrom_addressNumber\":\"5218\", \r\n\t\"shipFrom_city\":\"Buenos Aires\",\r\n\t\"shipFrom_country\":\"Argentina\",\r\n\t\"shipTo_firstName\":\"Name\",\r\n\t\"shipTo_lastName\":\"LastName\",\r\n\t\"shipTo_phone\":\"000000000\",\r\n\t\"shipTo_addressStreet\":\"Guemes\",\r\n\t\"shipTo_addressNumber\":\"4424\", \r\n\t\"shipTo_city\":\"Buenos Aires\",\r\n\t\"shipTo_country\":\"Argentina\",\r\n\t\"shipTo_instructions\":\"Something.\",\r\n\t\"packageWidth\":2,\r\n\t\"packageLarge\":2,\r\n\t\"packageHeight\":2,\r\n\t\"packageWeight\":1}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/shipment/quote"
    
    payload = "{  \r\n\t\"shipFrom_province\":\"Buenos Aires\",\r\n\t\"shipFrom_addressStreet\":\"El Salvador\",\r\n\t\"shipFrom_addressNumber\":\"5218\", \r\n\t\"shipFrom_city\":\"Buenos Aires\",\r\n\t\"shipFrom_country\":\"Argentina\",\r\n\t\"shipTo_firstName\":\"Name\",\r\n\t\"shipTo_lastName\":\"LastName\",\r\n\t\"shipTo_phone\":\"000000000\",\r\n\t\"shipTo_addressStreet\":\"Guemes\",\r\n\t\"shipTo_addressNumber\":\"4424\", \r\n\t\"shipTo_city\":\"Buenos Aires\",\r\n\t\"shipTo_country\":\"Argentina\",\r\n\t\"shipTo_instructions\":\"Something.\",\r\n\t\"packageWidth\":2,\r\n\t\"packageLarge\":2,\r\n\t\"packageHeight\":2,\r\n\t\"packageWeight\":1}"
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
        }
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/shipment/quote",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{  \r\n\t\"shipFrom_province\":\"Buenos Aires\",\r\n\t\"shipFrom_addressStreet\":\"El Salvador\",\r\n\t\"shipFrom_addressNumber\":\"5218\", \r\n\t\"shipFrom_city\":\"Buenos Aires\",\r\n\t\"shipFrom_country\":\"Argentina\",\r\n\t\"shipTo_firstName\":\"Name\",\r\n\t\"shipTo_lastName\":\"LastName\",\r\n\t\"shipTo_phone\":\"000000000\",\r\n\t\"shipTo_addressStreet\":\"Guemes\",\r\n\t\"shipTo_addressNumber\":\"4424\", \r\n\t\"shipTo_city\":\"Buenos Aires\",\r\n\t\"shipTo_country\":\"Argentina\",\r\n\t\"shipTo_instructions\":\"Something.\",\r\n\t\"packageWidth\":2,\r\n\t\"packageLarge\":2,\r\n\t\"packageHeight\":2,\r\n\t\"packageWeight\":1}",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/shipment/quote"
    
        payload := strings.NewReader("{  \r\n\t\"shipFrom_province\":\"Buenos Aires\",\r\n\t\"shipFrom_addressStreet\":\"El Salvador\",\r\n\t\"shipFrom_addressNumber\":\"5218\", \r\n\t\"shipFrom_city\":\"Buenos Aires\",\r\n\t\"shipFrom_country\":\"Argentina\",\r\n\t\"shipTo_firstName\":\"Name\",\r\n\t\"shipTo_lastName\":\"LastName\", \r\n\t\"shipTo_phone\":\"000000000\",\r\n\t\"shipTo_addressStreet\":\"Guemes\",\r\n\t\"shipTo_addressNumber\":\"4424\", \r\n\t\"shipTo_city\":\"Buenos Aires\",\r\n\t\"shipTo_country\":\"Argentina\",\r\n\t\"shipTo_instructions\":\"Something.\",\r\n\t\"packageWidth\":2,\r\n\t\"packageLarge\":2,\r\n\t\"packageHeight\":2,\r\n\t\"packageWeight\":1}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
        "shipFrom_province":"Buenos Aires",
        "shipFrom_addressStreet":"El Salvador",
        "shipFrom_addressNumber":"5218",
        "shipFrom_city":"Buenos Aires",
        "shipFrom_country":"Argentina",
        "shipTo_firstName":"Name",
        "shipTo_lastName":"LastName",
        "shipTo_phone":"000000000",
        "shipTo_addressStreet":"Guemes",
        "shipTo_addressNumber":"4424",
        "shipTo_city":"Buenos Aires",
        "shipTo_country":"Argentina",
        "shipTo_instructions":"Something.",
        "packageWidth":2,
        "packageLarge":2,
        "packageHeight":2,
        "packageWeight":1
    }
    Response Example
    {
      "quoteID": 221434,
      "price":{
        "priceId":1234,
        "transportType":"BICICLETA",
        "waitingTime":"10 mins",
        "estimatedPrice":12.50,
        "estimatedDistance":"12 km",
        "estimatedTimeToOrigin":"1 min"
      }
    }
    

    The users can quote their shipments. The quote will return a price and QuoteID that shall be used to confirm the shipment order from the 'New Shipment' endpoint.

    HTTP Request

    POST https://api.ando.la/v1/shipment/quote

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    shipFrom_addressStreet Street Address of the sender of the package.
    shipFrom_addressNumber Street Number of the sender of the package.
    shipFrom_addressFloor (optional) Location floor of the sender (string)
    shipFrom_addressApt (optional) Location number of the sender (string)
    shipFrom_city City of the sender of the package.
    shipFrom_province Province of the sender of the package.
    shipFrom_country Country of the sender of the package.
    shipTo_firstName First Name of the receiver of the package.
    shipTo_lastName Last Name of the receiver of the package.
    shipTo_email (optional) Email of the receiver of the package.
    shipTo_phone Phone number of the receiver of the package.
    shipTo_addressStreet Street Address of the receiver of the package.
    shipTo_addressNumber Street Number of the receiver of the package.
    shipTo_addressFloor (optional) Location floor of the receiver (string)
    shipTo_addressApt (optional) Location number of the receiver (string)
    shipTo_city City of the receiver of the package.
    shipTo_province (optional) Province of the receiver of the package.
    shipTo_country Country of the receiver of the package.
    shipTo_instructions Special instructions for the rider when delivering the package.
    packageWidth Integer (in cm).
    packageLarge Integer (in cm).
    packageHeight Integer (in cm).
    packageWeight Integer (in grams).
    sender_email (optional) Email of the receiver of the package.
    shippingMethod (optional) Shipping Method can be MOTO or BICICLETA
    digitalSignature (optional) Boolean (true or false), indicates if a digital signature is required by the receiver.
    currency (optional) Currency of the price of this shipment.

    New Shipment

    curl --request POST \
      --url 'https://api.ando.la/v1/shipment/new' \
      --header 'Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw' \
      --header 'Content-Type: application/json' \
      --data '{
      "quoteID":"6757"  ,
      "priceId":"6757",
      "paymentMethod": "credit_card",
      "promocode": "CODE888"
    }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "shipment",
        "new"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ quoteID: '6757', priceId:"6757", paymentMethod: "credit_card", promocode: "CODE888" }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/shipment/new")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw'
    request.body = "{\r\n  \"quoteID\":\"6757\", \r\n  \"priceId\":\"6757\", \r\n  \"paymentMethod\":\"credit_card\" \r\n, \r\n  \"promocode\":\"CODE888\" \r\n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/shipment/new"
    
    payload = "{\r\n  \"quoteID\":\"6757\"  , \r\n  \"priceId\":\"6757\", \r\n  \"paymentMethod\":\"credit_card\" \r\n, \r\n  \"promocode\":\"CODE888\" \r\n}"
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
        }
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/shipment/new",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{ \"quoteID\":\"6757\"  , \r\n  \"priceId\":\"6757\", \r\n  \"paymentMethod\":\"credit_card\" \r\n, \r\n  \"promocode\":\"CODE888\" \r\n}",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/shipment/new"
    
        payload := strings.NewReader("{\r\n  \"quoteID\":\"6757\"  , \r\n  \"priceId\":\"6757\", \r\n  \"paymentMethod\":\"credit_card\" \r\n, \r\n  \"promocode\":\"CODE888\" \r\n }")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "quoteID":"6757"  ,
      "priceId":"6757",
      "paymentMethod": "credit_card",
      "promocode": "CODE888"
    }
    Response Example 
    {
        "trackingID": "11111"
    }
    

    The users can request a new shipment. In order to start a new shipment, a quote shall be required before.

    HTTP Request

    POST https://api.ando.la/v1/shipment/new

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    quoteID Quote ID returned from the QUOTE Endpoint.
    priceId Price Id returned from the QUOTE Endpoint.
    paymentMethod Payment Method used by the customer (checking_account* or credit_card)
    promoCode (optional) Promotional code given to the user

    *ONLY E-COMMERCES

    Track a Shipment

    curl --request GET \
      --url 'https://api.ando.la/v1/shipment?trackingID=6769' \
      --header 'Authorization: Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg' \
      --header 'Content-Type: application/json'
    
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "shipment"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/shipment?trackingID=6769")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg'
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/shipment"
    
    querystring = {"trackingID":"6769"}
    
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg"
        }
    
    response = requests.request("GET", url, headers=headers, params=querystring)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/shipment?trackingID=6769",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/shipment?trackingID=6769"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer qRtl1Tlh2659xK0YTdJc4gYTNK98tzLzLXB2sZd1giiqhGWHWwGjjQsIkkr1gZgJbnqrqt0FEf9ulVb21tLDJopeOg50lNZN0Akbn6NUQynnzSw2yL7BKhxb-qKyJNOk3Cfum3cAhQilcKJUMFTC9GS4BIjXxFQ0Nk_NvIabV7CnDHXfrWoCAxwF1eqGwmhycoMwaWUi1cWfQPc6J1EZTAMfBPeNGsqNtm7oSM98RkDXG_YJ1AozMRD04oUI1uTrCIIXRXTTcrGxFIlWAbJKlzzBTMODFQu7pFJdoegBiUg")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "trackingID":"2747"
    }
    Response Example
    {
        "status": {
            "statusID": 19,
            "message": "CLOSED"
        }
    }
    

    The users can tracking a shipment status. Requires a trackingID, which was returned by 'New Shipment' endpoint. Will return a JSON with statusID and message, which will depend of shipment status itself.

    HTTP Request

    GET https://api.ando.la/v1/shipment?trackingID=6559

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    URL Parameters

    Parameter Description
    trackingID ID returned after the shipment order is confirmed from the 'New Shipment' endpoint.

    Shipment Status

    There are 25 possible status of a shipment that users can tracking through 'Track a Shipment' endpoint.

    Status Code Message
    1 Cancelled.
    2 Rejected.
    3 On Its way.
    4 Waiting for Payment.
    5 Payment Successful
    6 Payment Rejected
    7 Waiting for Rider
    8 Rider not found
    9 Traveling to Start Address
    10 The rider is at the Start Address
    11 Traveling to End Address
    12 The rider is at the End Address
    13 Package Delivered succesfully to User
    14 Package Delivered to Rider
    15 Delivered Succesfully
    16 Paid
    17 Cancelled
    18 Voided
    19 Closed
    20 Shipment Cancelled by the Rider
    21 Shipment Cancelled by the Receiver
    22 Shipment Cancelled by the Sender
    23 Waiting for Confirmation
    24 Waiting for a Second Confirmation
    25 Started

    Cancel a Shipment

    curl --request POST \
      --url 'https://api.ando.la/v1/shipment/cancel' \
      --header 'Authorization: Bearer gSJyUaU_ThBDXU_eZ0SWeuvdEK4B-Hjb-kpSFqs5ZLaw5RhA2Ibv68ubrC6_T4eu6-X6k_z6vPMN8EoyOOs1reiS3YegDPiAqwBvZZc97m1LmfGsu_e1502xR2BH0tBv5B3DseRbu187aUyznocvEUVheeVFmxjESnbAcywWT-38OaJqw5AUTOwnCm2tv8EI_xmk8S2dpqYEMOJ_djnQKrB8d-PnGiSadaV8GMn8mjraWcfculVQ25wVceVoqiOYi3KBi7i0XrjLAOgSVv_uwM5wEu7abo-p2ZsW-SsUPEE' \
      --header 'Content-Type: application/json' \
      --data '{
      "trackingID":"2747"
    }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "shipment",
        "cancel"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer gSJyUaU_ThBDXU_eZ0SWeuvdEK4B-Hjb-kpSFqs5ZLaw5RhA2Ibv68ubrC6_T4eu6-X6k_z6vPMN8EoyOOs1reiS3YegDPiAqwBvZZc97m1LmfGsu_e1502xR2BH0tBv5B3DseRbu187aUyznocvEUVheeVFmxjESnbAcywWT-38OaJqw5AUTOwnCm2tv8EI_xmk8S2dpqYEMOJ_djnQKrB8d-PnGiSadaV8GMn8mjraWcfculVQ25wVceVoqiOYi3KBi7i0XrjLAOgSVv_uwM5wEu7abo-p2ZsW-SsUPEE"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ trackingID: '2747' }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/shipment/cancel")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer gSJyUaU_ThBDXU_eZ0SWeuvdEK4B-Hjb-kpSFqs5ZLaw5RhA2Ibv68ubrC6_T4eu6-X6k_z6vPMN8EoyOOs1reiS3YegDPiAqwBvZZc97m1LmfGsu_e1502xR2BH0tBv5B3DseRbu187aUyznocvEUVheeVFmxjESnbAcywWT-38OaJqw5AUTOwnCm2tv8EI_xmk8S2dpqYEMOJ_djnQKrB8d-PnGiSadaV8GMn8mjraWcfculVQ25wVceVoqiOYi3KBi7i0XrjLAOgSVv_uwM5wEu7abo-p2ZsW-SsUPEE'
    request.body = "{\r\n  \"trackingID\":\"2747\" \r\n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/shipment/cancel"
    
    payload = "{\r\n  \"trackingID\":\"2747\" \r\n}"
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer gSJyUaU_ThBDXU_eZ0SWeuvdEK4B-Hjb-kpSFqs5ZLaw5RhA2Ibv68ubrC6_T4eu6-X6k_z6vPMN8EoyOOs1reiS3YegDPiAqwBvZZc97m1LmfGsu_e1502xR2BH0tBv5B3DseRbu187aUyznocvEUVheeVFmxjESnbAcywWT-38OaJqw5AUTOwnCm2tv8EI_xmk8S2dpqYEMOJ_djnQKrB8d-PnGiSadaV8GMn8mjraWcfculVQ25wVceVoqiOYi3KBi7i0XrjLAOgSVv_uwM5wEu7abo-p2ZsW-SsUPEE"
        }
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/shipment/cancel",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{\r\n  \"trackingID\":\"2747\" \r\n}",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer gSJyUaU_ThBDXU_eZ0SWeuvdEK4B-Hjb-kpSFqs5ZLaw5RhA2Ibv68ubrC6_T4eu6-X6k_z6vPMN8EoyOOs1reiS3YegDPiAqwBvZZc97m1LmfGsu_e1502xR2BH0tBv5B3DseRbu187aUyznocvEUVheeVFmxjESnbAcywWT-38OaJqw5AUTOwnCm2tv8EI_xmk8S2dpqYEMOJ_djnQKrB8d-PnGiSadaV8GMn8mjraWcfculVQ25wVceVoqiOYi3KBi7i0XrjLAOgSVv_uwM5wEu7abo-p2ZsW-SsUPEE",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/shipment/cancel"
    
        payload := strings.NewReader("{\r\n  \"trackingID\":\"2747\" \r\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer gSJyUaU_ThBDXU_eZ0SWeuvdEK4B-Hjb-kpSFqs5ZLaw5RhA2Ibv68ubrC6_T4eu6-X6k_z6vPMN8EoyOOs1reiS3YegDPiAqwBvZZc97m1LmfGsu_e1502xR2BH0tBv5B3DseRbu187aUyznocvEUVheeVFmxjESnbAcywWT-38OaJqw5AUTOwnCm2tv8EI_xmk8S2dpqYEMOJ_djnQKrB8d-PnGiSadaV8GMn8mjraWcfculVQ25wVceVoqiOYi3KBi7i0XrjLAOgSVv_uwM5wEu7abo-p2ZsW-SsUPEE")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "trackingID":"2747"
    }
    Response Example
    {
        "status": 200,
        "message": "Delivery cancelled"
    }
    

    The users can delete their shipments. In order to begin a new cancellation, the trackingID is required, provided after the confirmation of a new shipment.

    HTTP Request

    POST https://api.ando.la/v1/shipment/cancel

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    trackingID Integer Provided after the confirmation of the new shipment.

    MultiShipping

    New MultiShipment

    curl --request POST \
      --url 'https://api.ando.la/v1/enterprise/shipments' \
      --header 'Authorization: Bearer D93fM7thTTVrTYmqpDMT2o5ReUxL6FeOM1hoZtOcgYaS8ds1d9qjWOoOn_mUFh7RBr5DuJG36AOLHf6Eqx5IqDcyfjcVkWHw5QO8ZflZjn8B8fbabRfiEujX7tWY-0jZnO9zhQqrMuPoTuvAaGerh_SASgQRlXI6y4LNF2Pyu8Z9iO4slihAawVM5R356C83TbDPpxqPyHhksTFQTBqELtjB8bCxDcQDkfSf4AkTpFDpFL8OTP0-OKZ9AYPoNfbUnr02dDW3SbBcFqPVLgPbkYiuUJojaO4XYGbSY7QwUa4' \
      --header 'Content-Type: application/json'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "enterprise",
        "shipments"
      ],
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ 
        shipTo: [
            {
                firstName: 'John',
                lastName:  'Doe',
                email:     'user@email.com',
                phone:     '123456789',
                addressStreet: 'Belgrano',
                addressNumber:  '123',
                city:           'Buenos Aires',
                country:        'Argentina',
                province:       'CABA',
                instructions:   'Dejar en el buzón'
            },
            {
                firstName: 'Jane',
                lastName:  'Doe',
                email:     'user@email.com',
                phone:     '123456789',
                addressStreet: '9 de julio',
                addressNumber:  '123',
                city:           'Buenos Aires',
                country:        'Argentina',
                province:       'CABA',
                instructions:   'Tocar timbre'
            }
        ],
        shipFrom_city: 'Buenos Aires',
        shipFrom_country: 'Argentina',
        shipFrom_addressStreet: 'Rivadavia',
        shipFrom_addressNumber: '123',
        shipFrom_province: "CABA",
        packageWidth: 22.50,
        packageLarge: 22.50,
        packageHeight: 22.50,
        packageWeight: 1.00,
        currency: 'USD'
    }));
    
    req.end()
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/enterprise/shipments")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request["Authorization"] = 'Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw'
    request.body = "{\r\n \"shipTo\":\r\n[
    \r\n{\r\n
    \"firstName\":\"John\",\"lastName\":\"Doe\",\r\n
    \"email\":\"user@email.com\",\r\n
    \"phone\":\"123456789\",\r\n
    \"addressStreet\":\"Belgrano\",\r\n
    \"addressNumber\":\"123\",\r\n
    \"city\":\"Buenos Aires\",\r\n
    \"country\":\"Argentina\",\r\n
    \"province\":\"CABA\",\r\n
    \"instructions\":\"Dejar en el buzón\"\r\n
    },\r\n{
    \"firstName\":\"Jane\",\r\n
    \"lastName\":\"Doe\",\r\n
    \"email\":\"user@email.com\",\r\n
    \"phone\":\"123456789\",\r\n
    \"addressStreet\":\"9 de julio\",\r\n
    \"addressNumber\":\"123\",\r\n
    \"city\":\"Buenos Aires\",\r\n
    \"country\":\"Argentina\",\r\n
    \"province\":\"CABA\",\r\n
    \"instructions\":\"Tocar timbre\"\r\n
    }\r\n],\r\n
    \"shipFrom_city\":\"Buenos Aires\",\r\n
    \"shipFrom_country\":\"Argentina\",\r\n
    \"shipFrom_addressStreet\":\"Rivadavia\",\r\n
    \"shipFrom_province\":\"CABA\",\r\n
    \"shipFrom_addressNumber\":\"123\",\r\n
    \"packageWidth\":22.50,\r\n
    \"packageLarge\":22.50,\r\n
    \"packageHeight\":22.50,\r\n
    \"packageWeight\":1.00,\r\n
    \"currency: 'USD'\"\r\n
    }"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/enterprise/shipments"
    
    payload = "{\r\n \"shipTo\":\r\n[\r\n{\r\n\"firstName\":\"John\",\"lastName\":\"Doe\",\r\n\"email\":\"user@email.com\",\r\n\"phone\":\"123456789\",\r\n\"addressStreet\":\"Belgrano\",\r\n\"addressNumber\":\"123\",\r\n\"city\":\"Buenos Aires\",\r\n\"country\":\"Argentina\",\r\n\"province\":\"CABA\",\r\n\"instructions\":\"Dejar en el buzón\"\r\n},\r\n{\"firstName\":\"Jane\",\r\n\"lastName\":\"Doe\",\r\n\"email\":\"user@email.com\",\r\n\"phone\":\"123456789\",\r\n\"addressStreet\":\"9 de julio\",\r\n\"addressNumber\":\"123\",\r\n\"city\":\"Buenos Aires\",\r\n\"country\":\"Argentina\",\r\n\"province\":\"CABA\",\r\n\"instructions\":\"Tocar timbre\"\r\n}\r\n],\r\n\"shipFrom_city\":\"Buenos Aires\",\r\n\"shipFrom_country\":\"Argentina\",\r\n\"shipFrom_addressStreet\":\"Rivadavia\",\r\n\"shipFrom_province\":\"CABA\",\r\n\"shipFrom_addressNumber\":\"123\",\r\n\"packageWidth\":22.50,\r\n\"packageLarge\":22.50,\r\n\"packageHeight\":22.50,\r\n\"packageWeight\":1.00,\r\n\"currency: 'USD'\"\r\n}"
    
    headers = {
        'Content-Type': "application/json",
        'Authorization': "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw"
        }
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/enterprise/shipments",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{\r\n \"shipTo\":\r\n[\r\n{\r\n\"firstName\":\"John\",\"lastName\":\"Doe\",\r\n\"email\":\"user@email.com\",\r\n\"phone\":\"123456789\",\r\n\"addressStreet\":\"Belgrano\",\r\n\"addressNumber\":\"123\",\r\n\"city\":\"Buenos Aires\",\r\n\"country\":\"Argentina\",\r\n\"province\":\"CABA\",\r\n\"instructions\":\"Dejar en el buzón\"\r\n},\r\n{\"firstName\":\"Jane\",\r\n\"lastName\":\"Doe\",\r\n\"email\":\"user@email.com\",\r\n\"phone\":\"123456789\",\r\n\"addressStreet\":\"9 de julio\",\r\n\"addressNumber\":\"123\",\r\n\"city\":\"Buenos Aires\",\r\n\"country\":\"Argentina\",\r\n\"province\":\"CABA\",\r\n\"instructions\":\"Tocar timbre\"\r\n}\r\n],\r\n\"shipFrom_city\":\"Buenos Aires\",\r\n\"shipFrom_country\":\"Argentina\",\r\n\"shipFrom_addressStreet\":\"Rivadavia\",
      \r\n\"shipFrom_province":\"CABA\",
      \r\n\"shipFrom_addressNumber\":\"123\",\r\n\"packageWidth\":22.50,\r\n\"packageLarge\":22.50,\r\n\"packageHeight\":22.50,\r\n\"packageWeight\":1.00,\r\n\"currency: 'USD'\"\r\n}",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw",
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/enterprise/shipments"
    
      payload := strings.NewReader("{\r\n \"shipTo\":\r\n[\r\n{\r\n\"firstName\":\"John\",\"lastName\":\"Doe\",\r\n\"email\":\"user@email.com\",\r\n\"phone\":\"123456789\",\r\n\"addressStreet\":\"Belgrano\",\r\n\"addressNumber\":\"123\",\r\n\"city\":\"Buenos Aires\",\r\n\"country\":\"Argentina\",\r\n\"province\":\"CABA\",\r\n\"instructions\":\"Dejar en el buzón\"\r\n},\r\n{\"firstName\":\"Jane\",\r\n\"lastName\":\"Doe\",\r\n\"email\":\"user@email.com\",\r\n\"phone\":\"123456789\",\r\n\"addressStreet\":\"9 de julio\",\r\n\"addressNumber\":\"123\",\r\n\"city\":\"Buenos Aires\",\r\n\"country\":\"Argentina\",\r\n\"province\":\"CABA\",\r\n\"instructions\":\"Tocar timbre\"\r\n}\r\n],\r\n\"shipFrom_city\":\"Buenos Aires\",\r\n\"shipFrom_country\":\"Argentina\",\r\n\"shipFrom_addressStreet\":\"Rivadavia\",
      \r\n\"shipFrom_province\":\"CABA\",\r\n\"shipFrom_addressNumber\":\"123\",\r\n\"packageWidth\":22.50,\r\n\"packageLarge\":22.50,\r\n\"packageHeight\":22.50,\r\n\"packageWeight\":1.00,\r\n\"currency: 'USD'\"\r\n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
        req.Header.Add("Authorization", "Bearer TxuLf62rVjOrNPiGfqSkrccTkLJFHVAmafOjsZd_n8N-LgpcCe47gS-6hfN2iEcstgz_S63B3lYdbQvlD8uRYNQHEuez3dQisNp3gVlwHh27pDtCX2-d4bKnDo20_VRVO9V2PX-6xkA6YH3aSHp1SKOeQ-lYMdt-Y-NvIuRhHzrNrSZTN_qPVrEq3-hiTlgXk670chAAoeVufK8mKIYcljgAMZRPxSDZ0J0vaci8aPd0PG8N-sNPe5vq_y5DEIqVOjSHL7H4ubyzpkl2-JxIyO5B7ldDIse_jmxjWXmScmw")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
      "shipTo": [
            {
                "firstName": "John",
                "lastName":  "Doe",
                "email":     "user@email.com",
                "phone":     "123456789",
                "addressStreet": "Belgrano",
                "addressNumber":  "123",
                "city":           "Buenos Aires",
                "country":        "Argentina",
                "province":       "CABA",
                "instructions":   "Dejar en el buzón"
            },
            {
                "firstName": "Jane",
                "lastName":  "Doe",
                "email":     "user@email.com",
                "phone":     "123456789",
                "addressStreet": "9 de julio",
                "addressNumber":  "123",
                "city":           "Buenos Aires",
                "country":        "Argentina",
                "province":       "CABA",
                "instructions":   "Tocar timbre"
            }
        ],
        "shipFrom_city": "Buenos Aires",
        "shipFrom_country": "Argentina",
        "shipFrom_addressStreet": "Rivadavia",
        "shipFrom_addressNumber": "123",
        "shipFrom_province": "CABA",
        "packageWidth": 22.50,
        "packageLarge": 22.50,
        "packageHeight": 22.50,
        "packageWeight": 1.00,
        "currency": "USD"
    }
    Response Example
    [
        {
            "id": 13322,
            "userFromID": 306,
            "placeFromID": 26222,
            "placeToID": 26223,
            "activationDate": "2018-07-06T16:32:14.313Z",
            "userToID": 306,
            "mailUserTo": "user@email.com",
            "userToPhone": "123456789",
            "shipmentNumber": "",
            "creatorUserId": 306,
            "userSurnameTo": "Doe",
            "userNameTo": "John",
            "type": "LS",
            "try": 0,
            "multishipmentID": 13321
        },
        {
            "id": 13323,
            "userFromID": 306,
            "placeFromID": 26222,
            "placeToID": 26224,
            "activationDate": "2018-07-06T16:32:14.313Z",
            "userToID": 306,
            "mailUserTo": "user@email.com",
            "userToPhone": "123456789",
            "shipmentNumber": "",
            "creatorUserId": 306,
            "userSurnameTo": "Doe",
            "userNameTo": "Jane",
            "type": "LS",
            "try": 0,
            "multishipmentID": 13321
        }
    ]
    

    The users can init a new shipment with an unique origin and multiple destinations (each destination as object in an array).

    HTTP Request

    POST https://api.ando.la/v1/enterprise/shipments

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    shipTo: Array
    firstName: String First name of receiver.
    lastName: String Last Name of receiver.
    email: String Email of receiver.
    phone: String Phone of receiver.
    addressStreet: String Street of receiver.
    addressNumber: String Address number of receiver.
    city: String City of receiver.
    country: String Country of receiver.
    province: String Province of receiver.
    phone: String Phone of receiver.
    instructions: String Instructions given by receiver.
    orderNumber: (OPTIONAL) String Number of order.
    floor: (OPTIONAL) String Floor number of receiver.
    apartment: (OPTIONAL) String Apartment number of receiver.
    --------- -----------
    shipFrom_city: String City of sender.
    shipFrom_country: String Country number of sender.
    shipFrom_province: String Province number of sender.
    shipFrom_addressStreet: String Street number of sender.
    shipFrom_addressNumber: String Address number of sender.
    packageWidth: Double Width of package.
    packageLarge: Double Large of package.
    packageHeight: Double Height of package.
    packageWeight: Double Weight of package.
    currency: String Currency used in payment.
    shipFrom_Instructions: (OPTIONAL) String Instructions given by sender.
    floor: (OPTIONAL) String Floor number of sender.
    apartment: (OPTIONAL) String Apartment number of sender.

    Webhook

    Response Example
    {
       "id": 13349,
       "creatorID": 306,
       "status": { 
         "statusCode": 23, 
         "status": "Waiting for Confirmation" 
        },
       "total": 123,
       "MultishipmentByID": "13348",
       "orderNumber": "customOrderNumber" 
    }
    

    The users will receive an object with information about their shipments with multiple destinations. In order to receive it, you must send a Bearer Token in Authorization Header, which is given by request, sending an email to soporte@ando.la. Only in case that shipment status be "Cancelled", the object will return an extra property called cancelReason, that indicates the reason because was cancelled. In order to add a new webhook, you must send an email to soporte@ando.la with the subject API-WEBHOOK

    Status Codes

    There are 25 possible status of a multiple shipment that users can tracking through webhook.

    Status Code Message
    1 Cancelled.
    2 Rejected.
    3 On Its way.
    4 Waiting for Payment.
    5 Payment Successful
    6 Payment Rejected
    7 Waiting for Rider
    8 Rider not found
    9 Traveling to Start Address
    10 The rider is at the Start Address
    11 Traveling to End Address
    12 The rider is at the End Address
    13 Package Delivered succesfully to User
    14 Package Delivered to Rider
    15 Delivered Succesfully
    16 Paid
    17 Cancelled
    18 Voided
    19 Closed
    20 Shipment Cancelled by the Rider
    21 Shipment Cancelled by the Receiver
    22 Shipment Cancelled by the Sender
    23 Waiting for Confirmation
    24 Waiting for a Second Confirmation
    25 Started

    Checking Account

    Only the Business can get a Checking Account in Ando.la, whom must send an email to soporte@ando.la in order to activate it.

    Get Checking Account

    curl --request GET \
      --url 'https://api.ando.la/v1/checkingAccount/:companyID' \
      --header 'Authorization: Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo'
    
    var http = require("http");
    
    var options = {
      "method": "GET",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "account"
      ],
      "headers": {
        "Authorization": "Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/checkingAccount/:companyID")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Get.new(url)
    request["Authorization"] = 'Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo'
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/checkingAccount/:companyID"
    
    headers = {'Authorization': 'Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo'}
    
    response = requests.request("GET", url, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/checkingAccount/:companyID",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "GET",
      CURLOPT_HTTPHEADER => array(
        "Authorization: Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/checkingAccount/:companyID"
    
        req, _ := http.NewRequest("GET", url, nil)
    
        req.Header.Add("Authorization", "Bearer Ec2_giC2EuDGPvXBvQ-ej4SF4bpB4rAF9PKH8XSqMmmZ4VLh062P1s1EBFYm_xP5ox9QtFXjEw9odekbuqyKop0zEHokJJsQdrK9X-fzuVEH-0IOq-c2IgxbmCB5NBDKJR1tYIN7NEob5UG5iLgcpsjsqJzbY_257moesQ0dD0Pxhg5P_SHWn-Xd_-WC5TIq4DRUNWFcft35-o2cskrw9zt_klG8PmjJXYRP83EK7las3rKwxs_EozTZ1cOnzK_-Jjppg_gUkFBgrLi6QFRdM8FhY8fdAD5fU4f0d4UUGCo")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Response Example
    {
        "total": 10,
        "payment_day": "2018-04-10T23:44:11.719Z",
        "status": "ENABLED"
    }
    

    The Business can check their account balances, using the Bearer Token given from Login.

    HTTP Request

    GET https://api.ando.la/v1/checkingAccount/:companyID

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    URL Parameters

    Parameter Description
    Token Your Bearer Token.

    Validate MercadoPago

    curl --request POST \
      --url 'https://api.ando.la/v1/checkingAccount/:companyID/balance/mercadoPago' \
      --header 'Content-Type: application/json' \
      --data '{
        "companyID": 10,
        "total": 10
    }'
    
    var http = require("http");
    
    var options = {
      "method": "POST",
      "hostname": [
        "https://api.ando.la"
      ],
      "path": [
        "v1",
        "recover",
        "password"
      ],
      "headers": {
        "Content-Type": "application/json"
      }
    };
    
    var req = http.request(options, function (res) {
      var chunks = [];
    
      res.on("data", function (chunk) {
        chunks.push(chunk);
      });
    
      res.on("end", function () {
        var body = Buffer.concat(chunks);
        console.log(body.toString());
      });
    });
    
    req.write(JSON.stringify({ companyID: 10, total: 10 }));
    req.end();
    
    require 'uri'
    require 'net/http'
    
    url = URI("https://api.ando.la/v1/checkingAccount/:companyID/balance/mercadoPago")
    
    http = Net::HTTP.new(url.host, url.port)
    
    request = Net::HTTP::Post.new(url)
    request["Content-Type"] = 'application/json'
    request.body = "{ \n\"companyID\": 10, \n\"total\": 10 \n}"
    
    response = http.request(request)
    puts response.read_body
    
    import requests
    
    url = "https://api.ando.la/v1/checkingAccount/:companyID/balance/mercadoPago"
    
    payload = "{ \n\"companyID\": 10, \n\"total\": 10 \n}"
    headers = {'Content-Type': 'application/json'}
    
    response = requests.request("POST", url, data=payload, headers=headers)
    
    print(response.text)
    
    <?php
    
    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => "https://api.ando.la/v1/checkingAccount/:companyID/balance/mercadoPago",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => "",
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 30,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => "POST",
      CURLOPT_POSTFIELDS => "{ \n\"companyID\": 10, \n\"total\": 10 \n}",
      CURLOPT_HTTPHEADER => array(
        "Content-Type: application/json"
      ),
    ));
    
    $response = curl_exec($curl);
    $err = curl_error($curl);
    
    curl_close($curl);
    
    if ($err) {
      echo "cURL Error #:" . $err;
    } else {
      echo $response;
    }
    
    package main
    
    import (
        "fmt"
        "strings"
        "net/http"
        "io/ioutil"
    )
    
    func main() {
    
        url := "https://api.ando.la/v1/checkingAccount/:companyID/balance/mercadoPago"
    
        payload := strings.NewReader("{ \n\"companyID\": 10, \n\"total\": 10 \n}")
    
        req, _ := http.NewRequest("POST", url, payload)
    
        req.Header.Add("Content-Type", "application/json")
    
        res, _ := http.DefaultClient.Do(req)
    
        defer res.Body.Close()
        body, _ := ioutil.ReadAll(res.Body)
    
        fmt.Println(res)
        fmt.Println(string(body))
    
    }
    
    Request Example
    {
        "companyID": 10,
        "total": 10
    }
    Response Example
    {
        "link": "https://www.mercadopago.com/mla/checkout/start?pref_id=111111111"
    }
    

    The Business can add funds to their Ando.la accounts, through their MercadoPago accounts, using the companyID and total (funds to add to account). Will send a link with MercadoPago payment gateway in order to add funds.

    HTTP Request

    POST https://api.ando.la/v1/checkingAccount/:companyID/balance/mercadoPago

    Header Content
    Authorization Bearer 4b73b11dc60ee75959eca2c117614e9741dfc99a
    Content-type application/json

    BODY Parameters

    Parameter Description
    companyID ID of the company to check.
    total Funds to add to account.

    Errors

    Our API libraries raise exceptions for many reasons, such as a failed charge, invalid parameters, authentication errors, and network unavailability. We recommend writing code that gracefully handles all possible API exceptions.

    Error Code Meaning
    100 Non-existent shipment. There is not quoteID.
    429 Too Many Requests -- You're sending many requests and are unsupported by server.
    500 MercadoPago Error.
    503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
    600 The package is too big.
    601 Wrong budget params.
    602 Promo Code does not exist.
    603 Transport does not exist.
    604 No available riders using this method.
    605 Location does not exist.
    607 Wrong email/password.
    608 User already exists. Sign up is not allowed.
    609 Incomplete params.
    610 Error Starting shipping.
    611 Error Cancelling shipping.
    612 Year must be 4 digits long.
    613 The Card is invalid.
    614 Error adding Credit Card to the user.
    615 Tracking ID doesn't exist.
    616 Invalid/Expired token.
    617 Error to find history.