MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Base URL

Environment Base URL
Development https://api-dev.getpass.ph
Staging https://api-staging.getpass.ph
UAT https://api-uat.getpass.ph
Production https://api-prod.getpass.ph

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_ACCESS_TOKEN}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your Authentication dashboard.

Authentication

Authentication

GETPRO Login

Use this endpoint to login as a driver for the GETPRO app.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/login/getpro"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": null,
    "password": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/login/getpro';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'username' => null,
            'password' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful.",
    "details": {
        "tokens": {
            "AccessToken": "eyJraWQiOiJxWWpnVU...",
            "ExpiresIn": 43200,
            "TokenType": "Bearer",
            "RefreshToken": "eyJjdHkiOiJKV1QiL...",
            "IdToken": "eyJraWQiOiJZb05wXC84UW..."
        },
        "monitor": {}
    }
}
 

Request      

POST api/v1/auth/login/getpro

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

GETPASS Username.

password   string   

GETPASS Password.

LGU Sign Up

Use this endpoint to sign up a user for the LGU app.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/lgu/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "",
    "email": "pkshlerin@example.net",
    "prefixName": "",
    "firstName": "",
    "middleName": "",
    "lastName": "",
    "password": "",
    "hasAcceptedTerms": true,
    "organizationId": 1,
    "mobile_number": "jq",
    "birthday": "2019-03-26",
    "gender": "tnoznresaphcnr",
    "address": {
        "country": "sy",
        "region": "mzqijnjoyddxcvvtgmaa",
        "province": "goxeasid",
        "municity": "dhdpzgzvdbhnwtiqtsm",
        "barangay": "gmkdqux",
        "unit_street": "cbvmmcsinuxnrdsk"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lgu/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'username' => '',
            'email' => 'pkshlerin@example.net',
            'prefixName' => '',
            'firstName' => '',
            'middleName' => '',
            'lastName' => '',
            'password' => '',
            'hasAcceptedTerms' => true,
            'organizationId' => 1.0,
            'mobile_number' => 'jq',
            'birthday' => '2019-03-26',
            'gender' => 'tnoznresaphcnr',
            'address' => [
                'country' => 'sy',
                'region' => 'mzqijnjoyddxcvvtgmaa',
                'province' => 'goxeasid',
                'municity' => 'dhdpzgzvdbhnwtiqtsm',
                'barangay' => 'gmkdqux',
                'unit_street' => 'cbvmmcsinuxnrdsk',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful.",
    "details": {
        "username": "snow6"
    }
}
 

Request      

POST api/v1/auth/lgu/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Must match the regex /^[a-z][a-z0-9]{2,}$/.

email   string  optional  

Must be a valid email address. Example: pkshlerin@example.net

prefixName   string   
Must be one of:
  • mr
  • ms
  • mrs
firstName   string   

Must not be greater than 100 characters.

middleName   string  optional  

Must not be greater than 100 characters.

lastName   string   

Must not be greater than 100 characters.

password   string   

Must be at least 6 characters.

hasAcceptedTerms   boolean   

Must be accepted. Example: true

organizationId   number   

Example: 1

mobile_number   string  optional  

Must match the regex /^09\d{9}$/. Must not be greater than 11 characters. Example: jq

birthday   string  optional  

Must be a valid date. Must be a date before today. Example: 2019-03-26

gender   string  optional  

Must not be greater than 100 characters. Example: tnoznresaphcnr

Must be one of:
  • male
  • female
address   object  optional  
country   string  optional  

Must not be greater than 2 characters. Example: sy

region   string  optional  

Must not be greater than 100 characters. Example: mzqijnjoyddxcvvtgmaa

province   string  optional  

Must not be greater than 100 characters. Example: goxeasid

municity   string  optional  

Must not be greater than 100 characters. Example: dhdpzgzvdbhnwtiqtsm

barangay   string  optional  

Must not be greater than 100 characters. Example: gmkdqux

unit_street   string  optional  

Must not be greater than 255 characters. Example: cbvmmcsinuxnrdsk

Love Bus Sign Up

Use this endpoint to sign up a user for the Love Bus app.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/lovebus/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "cfntfbdyqgqhkbwxuuxdsylre",
    "password": "*orTi&[,9T5{Ul\/IEH",
    "hasAcceptedTerms": true,
    "firstName": "enrhmzbnqgftstjwplyd",
    "middleName": "vlljxfxitzadjqb",
    "lastName": "p",
    "birthday": "2015-03-11",
    "gender": "female",
    "profilePicture": "iure",
    "psgcOldCode": "rerum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'username' => 'cfntfbdyqgqhkbwxuuxdsylre',
            'password' => '*orTi&[,9T5{Ul/IEH',
            'hasAcceptedTerms' => true,
            'firstName' => 'enrhmzbnqgftstjwplyd',
            'middleName' => 'vlljxfxitzadjqb',
            'lastName' => 'p',
            'birthday' => '2015-03-11',
            'gender' => 'female',
            'profilePicture' => 'iure',
            'psgcOldCode' => 'rerum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful.",
    "details": {
        "userId": 1,
        "username": "snow6"
    }
}
 

Request      

POST api/v1/auth/lovebus/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Must match the regex /^[A-Za-z0-9]+$/. Must not be greater than 25 characters. Example: cfntfbdyqgqhkbwxuuxdsylre

password   string   

Must be at least 6 characters. Example: *orTi&[,9T5{Ul/IEH

hasAcceptedTerms   boolean   

Must be accepted. Example: true

firstName   string  optional  

Must not be greater than 100 characters. Example: enrhmzbnqgftstjwplyd

middleName   string  optional  

Must not be greater than 100 characters. Example: vlljxfxitzadjqb

lastName   string  optional  

Must not be greater than 100 characters. Example: p

birthday   string  optional  

Must be a valid date. Must be a date before today. Example: 2015-03-11

gender   string  optional  

Example: female

Must be one of:
  • male
  • female
profilePicture   string  optional  

Example: iure

psgcOldCode   string  optional  

Example: rerum

Love Bus Web Sign Up

Use this endpoint to sign up a user for the Love Bus web app.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/lovebus/web-register"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('username', 'qmyivxvanhgmnquirlof');
body.append('password', '~aHW%T,Gcxrp|');
body.append('hasAcceptedTerms', '1');
body.append('firstName', 'vhlqebhzzycmbdcxg');
body.append('middleName', 'cljkkrisbil');
body.append('lastName', 'eencsdlzxlpa');
body.append('birthday', '2017-08-04');
body.append('gender', 'male');
body.append('email', 'botsford.boyd@example.net');
body.append('photoId', document.querySelector('input[name="photoId"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/web-register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'username',
                'contents' => 'qmyivxvanhgmnquirlof'
            ],
            [
                'name' => 'password',
                'contents' => '~aHW%T,Gcxrp|'
            ],
            [
                'name' => 'hasAcceptedTerms',
                'contents' => '1'
            ],
            [
                'name' => 'firstName',
                'contents' => 'vhlqebhzzycmbdcxg'
            ],
            [
                'name' => 'middleName',
                'contents' => 'cljkkrisbil'
            ],
            [
                'name' => 'lastName',
                'contents' => 'eencsdlzxlpa'
            ],
            [
                'name' => 'birthday',
                'contents' => '2017-08-04'
            ],
            [
                'name' => 'gender',
                'contents' => 'male'
            ],
            [
                'name' => 'email',
                'contents' => 'botsford.boyd@example.net'
            ],
            [
                'name' => 'photoId',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpWJrDFR', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful.",
    "details": {
        "username": "snow6"
    }
}
 

Request      

POST api/v1/auth/lovebus/web-register

Headers

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

username   string   

Must match the regex /^[A-Za-z0-9]+$/. Must not be greater than 25 characters. Example: qmyivxvanhgmnquirlof

password   string   

Must be at least 6 characters. Example: ~aHW%T,Gcxrp|

hasAcceptedTerms   boolean   

Must be accepted. Example: true

firstName   string   

Must not be greater than 100 characters. Example: vhlqebhzzycmbdcxg

middleName   string  optional  

Must not be greater than 100 characters. Example: cljkkrisbil

lastName   string   

Must not be greater than 100 characters. Example: eencsdlzxlpa

birthday   string   

Must be a valid date. Must be a date before today. Example: 2017-08-04

gender   string   

Example: male

Must be one of:
  • male
  • female
photoId   file   

Must be an image. Must not be greater than 5048 kilobytes. Example: /private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpWJrDFR

email   string  optional  

Must be a valid email address. Example: botsford.boyd@example.net

Love Bus Social token exchange

Use this endpoint to exchange tokens with a social identity provider.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/lovebus/login/google"
);

const params = {
    "token": "EAAGmIgdECYkBO3gZApYQS8fugLD...",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/login/google';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'token' => 'EAAGmIgdECYkBO3gZApYQS8fugLD...',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful.",
    "details": {
        "tokens": {
            "AccessToken": "eyJraWQiOiJxWWpnVU...",
            "ExpiresIn": 43200,
            "TokenType": "Bearer",
            "RefreshToken": "eyJjdHkiOiJKV1QiL...",
            "IdToken": "eyJraWQiOiJZb05wXC84UW..."
        },
        "user": {},
        "others": {}
    }
}
 

Request      

GET api/v1/auth/lovebus/login/{provider}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

provider   string   

Example: google

Must be one of:
  • apple
  • facebook
  • google

Query Parameters

token   string   

Provider token. Example: EAAGmIgdECYkBO3gZApYQS8fugLD...

Love Bus Login

Use this endpoint to login love bus

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/lovebus/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/lovebus/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/lovebus/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Social token exchange

Use this endpoint to exchange tokens with a social identity provider.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/login/google"
);

const params = {
    "token": "EAAGmIgdECYkBO3gZApYQS8fugLD...",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/login/google';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'token' => 'EAAGmIgdECYkBO3gZApYQS8fugLD...',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful.",
    "details": {
        "tokens": {
            "AccessToken": "eyJraWQiOiJxWWpnVU...",
            "ExpiresIn": 43200,
            "TokenType": "Bearer",
            "RefreshToken": "eyJjdHkiOiJKV1QiL...",
            "IdToken": "eyJraWQiOiJZb05wXC84UW..."
        },
        "user": {},
        "others": {}
    }
}
 

Request      

GET api/v1/auth/login/{provider}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

provider   string   

Example: google

Must be one of:
  • apple
  • facebook
  • google

Query Parameters

token   string   

Provider token. Example: EAAGmIgdECYkBO3gZApYQS8fugLD...

GETPASS Login

Use this endpoint to login GETPASS

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Generate access token

Use this endpoint to generate access token using your client id and client secret

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/partners/v1/oauth2/token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "grant_type": null,
    "client_id": null,
    "client_secret": null,
    "scope": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/partners/v1/oauth2/token';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'grant_type' => null,
            'client_id' => null,
            'client_secret' => null,
            'scope' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/partners/v1/oauth2/token

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

grant_type   string   

client_credentials.

client_id   string   

Your client id.

client_secret   string   

Your client secret.

scope   string   

Your scope.

Endpoints

GET api/test

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/test"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/test';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/test

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

POST api/v1/data-deletion

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/data-deletion"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/data-deletion';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/data-deletion

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

GET api/v1/ticket-draw

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/ticket-draw"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/ticket-draw';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/ticket-draw

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

GETPRO

APIs for GETPRO

Get Monitor features and functions

requires authentication

Use this endpoint to get all features and functions.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/getpro/driver/features-functions"
);

const params = {
    "vehicleId": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/getpro/driver/features-functions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'vehicleId' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

GET api/v1/getpro/driver/features-functions

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

vehicleId   number   

The id of the vehicle. Example: 1

Get Monitor settings

requires authentication

Use this endpoint to get settings for monitor

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/getpro/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/getpro/settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

GET api/v1/getpro/settings

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Social Work

This is for Social Work

Find Subject via Fuzzy

requires authentication

Use this endpoint to find a subject for social work via Fuzzy.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/getpro/social-work/subjects"
);

const params = {
    "filter["search"]": "Juan Cruz",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/getpro/social-work/subjects';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'filter["search"]' => 'Juan Cruz',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

GET api/v1/getpro/social-work/subjects

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter["search"]   string   

Search any. Example: Juan Cruz

Find Subject

requires authentication

Use this endpoint to find a subject for social work.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/getpro/social-work/find-subject"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/getpro/social-work/find-subject';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

GET api/v1/getpro/social-work/find-subject

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

userId   integer  optional  

User Id.

firstName   string  optional  

First Name.

lastName   string  optional  

Last Name.

municity   string  optional  

City name.

GETPRO Handoff

Issues and revokes per-device signing capabilities used to sign trip-handoff envelopes. Tokens are short-lived and auto-rotated when re-issued for a deviceId.

Issue a handoff capability token for a device.

requires authentication

Auto-revokes any prior active capability for the same deviceId. Returns the 32-byte signing key once — the client must persist it.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/handoff/capabilities"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "deviceId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/capabilities';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'deviceId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/handoff/capabilities

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

deviceId   string   

Stable identifier for the device.

Revoke a specific capability. The bearer's userId must own the capability.

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/handoff/capabilities//revoke"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/capabilities//revoke';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/handoff/capabilities/{id}/revoke

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

Capability UUID.

Record an initiated handoff session.

requires authentication

Idempotent by sessionId.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/handoff/sessions"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null,
    "tripCode": null,
    "reason": null,
    "deviceId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/sessions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
            'tripCode' => null,
            'reason' => null,
            'deviceId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/handoff/sessions

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

UUID of the session.

tripCode   string   

Server-assigned trip code being handed off.

reason   string   

BREAKDOWN | DRIVER_RELIEF | OTHER.

deviceId   string   

Source device id.

expiresAt   string  optional  

Optional ISO-8601 expiry; default = now() + 15min.

Look up a handoff session by id.

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/handoff/sessions/"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/sessions/';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (405):

Show headers
allow: POST
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "The GET method is not supported for route api/v1/handoff/sessions. Supported methods: POST.",
    "exception": "Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php",
    "line": 122,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php",
            "line": 107,
            "function": "requestMethodNotAllowed",
            "class": "Illuminate\\Routing\\AbstractRouteCollection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php",
            "line": 41,
            "function": "getRouteForMethods",
            "class": "Illuminate\\Routing\\AbstractRouteCollection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php",
            "line": 162,
            "function": "handleMatchedRoute",
            "class": "Illuminate\\Routing\\AbstractRouteCollection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 761,
            "function": "match",
            "class": "Illuminate\\Routing\\RouteCollection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "findRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/handoff/sessions/{id}

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

Session UUID.

Commit a handoff (envelope + ack).

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/handoff/commit"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "envelope": {
        "v": "1",
        "envelope_id": "ae3b5bee-7342-39f6-b589-5063ffa3379d",
        "session_id": "310e1130-bacb-308b-86a9-43628ad1afe2",
        "reason": "OTHER",
        "source": {
            "device_id": "sxbs",
            "driver_id": "nwslmkudioy",
            "vehicle_id": "vtblfagruirkn"
        },
        "target": {
            "device_id": "vmudzhjgw",
            "driver_id": "jifkg"
        },
        "trip": {
            "id": "quasi",
            "trip_code": "gvobeeowtylkxfnz",
            "route_id": "et",
            "vehicle_id": "dolorem",
            "driver_id": "non",
            "origin_id": "ipsam",
            "current_stop_id": "ipsam",
            "start_time": "sint",
            "status": "perferendis"
        },
        "taps": [
            "aut"
        ],
        "unsynced_events": [
            "incidunt"
        ],
        "totals": {
            "tap_count": 16,
            "last_lamport": 4
        },
        "capability_token_id": "8547f3b7-e4c1-32f4-96ee-a20f229631cf",
        "transferred_at": "2026-05-11T04:02:46",
        "signature": "ahhmzcbngfjejs"
    },
    "ack": {
        "v": "1",
        "envelope_id": "049a4032-8ac5-3a38-9120-ff862b4e6b90",
        "applied_at": "2026-05-11T04:02:46",
        "target_device_id": "voluptatum",
        "target_capability_token_id": "f3017114-eeef-3075-bc72-d3db6cd60f51",
        "signature": "kuhty"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/handoff/commit';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'envelope' => [
                'v' => '1',
                'envelope_id' => 'ae3b5bee-7342-39f6-b589-5063ffa3379d',
                'session_id' => '310e1130-bacb-308b-86a9-43628ad1afe2',
                'reason' => 'OTHER',
                'source' => [
                    'device_id' => 'sxbs',
                    'driver_id' => 'nwslmkudioy',
                    'vehicle_id' => 'vtblfagruirkn',
                ],
                'target' => [
                    'device_id' => 'vmudzhjgw',
                    'driver_id' => 'jifkg',
                ],
                'trip' => [
                    'id' => 'quasi',
                    'trip_code' => 'gvobeeowtylkxfnz',
                    'route_id' => 'et',
                    'vehicle_id' => 'dolorem',
                    'driver_id' => 'non',
                    'origin_id' => 'ipsam',
                    'current_stop_id' => 'ipsam',
                    'start_time' => 'sint',
                    'status' => 'perferendis',
                ],
                'taps' => [
                    'aut',
                ],
                'unsynced_events' => [
                    'incidunt',
                ],
                'totals' => [
                    'tap_count' => 16,
                    'last_lamport' => 4,
                ],
                'capability_token_id' => '8547f3b7-e4c1-32f4-96ee-a20f229631cf',
                'transferred_at' => '2026-05-11T04:02:46',
                'signature' => 'ahhmzcbngfjejs',
            ],
            'ack' => [
                'v' => '1',
                'envelope_id' => '049a4032-8ac5-3a38-9120-ff862b4e6b90',
                'applied_at' => '2026-05-11T04:02:46',
                'target_device_id' => 'voluptatum',
                'target_capability_token_id' => 'f3017114-eeef-3075-bc72-d3db6cd60f51',
                'signature' => 'kuhty',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/handoff/commit

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

envelope   object   

Full HandoffEnvelope (see envelope schema).

v   integer   

Example: 1

Must be one of:
  • 1
envelope_id   string   

Must be a valid UUID. Example: ae3b5bee-7342-39f6-b589-5063ffa3379d

session_id   string   

Must be a valid UUID. Example: 310e1130-bacb-308b-86a9-43628ad1afe2

reason   string   

Example: OTHER

Must be one of:
  • BREAKDOWN
  • DRIVER_RELIEF
  • OTHER
source   object   
device_id   string   

Must be at least 8 characters. Must not be greater than 128 characters. Example: sxbs

driver_id   string   

Must not be greater than 128 characters. Example: nwslmkudioy

vehicle_id   string   

Must not be greater than 128 characters. Example: vtblfagruirkn

target   object   
device_id   string   

Must be at least 8 characters. Must not be greater than 128 characters. Example: vmudzhjgw

driver_id   string   

Must not be greater than 128 characters. Example: jifkg

trip   object   
id   string   

Example: quasi

trip_code   string   

Must not be greater than 64 characters. Example: gvobeeowtylkxfnz

route_id   string   

Example: et

vehicle_id   string   

Example: dolorem

driver_id   string   

Example: non

origin_id   string   

Example: ipsam

current_stop_id   string   

Example: ipsam

start_time   string   

Example: sint

status   string   

Example: perferendis

taps   string[]  optional  
id   string   

Must be a valid UUID. Example: 2fb61794-738b-34b6-9a40-d92830214b22

tap_at   string   

Example: est

unsynced_events   string[]  optional  
event_type   string   

Example: modi

idempotency_key   string   

Example: rerum

device_timestamp   string   

Example: eum

totals   object   
tap_count   integer   

Example: 16

last_lamport   integer   

Example: 4

capability_token_id   string   

Must be a valid UUID. Example: 8547f3b7-e4c1-32f4-96ee-a20f229631cf

transferred_at   string   

Must be a valid date. Example: 2026-05-11T04:02:46

signature   string   

Must not be greater than 512 characters. Example: ahhmzcbngfjejs

ack   object   

HandoffAck signed by the receiver.

v   integer   

Example: 1

Must be one of:
  • 1
envelope_id   string   

Must be a valid UUID. The value and envelope.envelope_id must match. Example: 049a4032-8ac5-3a38-9120-ff862b4e6b90

applied_at   string   

Must be a valid date. Example: 2026-05-11T04:02:46

target_device_id   string   

Example: voluptatum

target_capability_token_id   string   

Must be a valid UUID. Example: f3017114-eeef-3075-bc72-d3db6cd60f51

signature   string   

Must not be greater than 512 characters. Example: kuhty

GETPRO Pairing

QR-pairing login: tablet shows QR + 2-digit matching code; the driver scans on GETPASS and approves. Cognito tokens are issued via Custom Auth flow once the tablet observes APPROVED status.

Init pairing session

Called by the GETPRO tablet to start a QR-pairing login.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/init"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "deviceId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/init';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'deviceId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/init

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

deviceId   string   

Stable identifier for the tablet (Capacitor Device.getId()).

Exchange pairing session for Cognito tokens

Called by the GETPRO tablet after polling observes APPROVED status. Triggers Cognito Custom Auth flow; the Verify Lambda calls /internal/verify to validate. Returns the same envelope as /v1/auth/login/getpro so the tablet can reuse existing token-handling code unchanged.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/exchange"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null,
    "deviceId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/exchange';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
            'deviceId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/exchange

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

Pairing session UUID.

deviceId   string   

Tablet device ID (must match the one used in /init).

Internal — verify pairing session

Called by the Cognito Verify Auth Challenge Lambda only. Protected by HMAC via pairing.hmac middleware. Single-use: the session is deleted regardless of validity to prevent replay.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/verify"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null,
    "username": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/verify';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
            'username' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/internal/verify

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

Pairing session UUID.

username   string   

Cognito username being authenticated.

Internal — fetch current pairing-session state

Called by the get-api WebSocket Lambda when a tablet subscribes, to bootstrap initial state and close the race window between /init's NotifyPairingStatusJob and the WS subscribe arrival. Protected by HMAC.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/state"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/internal/state';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/internal/state

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

Pairing session UUID.

Get pairing session status

Polled by the GETPRO tablet at config('pairing.poll_interval_ms').

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/01HK7M0X9Z6Y4S5N7QH8B3VRGF"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": "12e8f0e1-6252-33a0-bbc8-c091012f7c06"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/01HK7M0X9Z6Y4S5N7QH8B3VRGF';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => '12e8f0e1-6252-33a0-bbc8-c091012f7c06',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/auth/getpro/pairing/{sessionId}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sessionId   string   

Pairing session UUID. Example: 01HK7M0X9Z6Y4S5N7QH8B3VRGF

Body Parameters

sessionId   string   

Must be a valid UUID. Example: 12e8f0e1-6252-33a0-bbc8-c091012f7c06

Scan pairing session

requires authentication

Called by the driver's GETPASS phone after scanning the QR. Authed via Bearer IdToken.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/scan"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/scan';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/scan

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

Pairing session UUID parsed from the QR payload.

Approve pairing session

requires authentication

Called by the driver's GETPASS phone after visually confirming the matching code.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/approve"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/approve';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/approve

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

Pairing session UUID.

Deny pairing session

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/deny"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "sessionId": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/auth/getpro/pairing/deny';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'sessionId' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/auth/getpro/pairing/deny

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

sessionId   string   

Pairing session UUID.

GETSET

Create Notification

requires authentication

Use this endpoint to create push notification

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/partners/v1/getset/create-notification"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('filterBy', 'organization');
body.append('filterValue', 'quo');
body.append('notifTitle', 'embhywljdyilpwrvi');
body.append('notifText', 'bn');
body.append('notifType', 'push');
body.append('notifPicURL', 'http://maggio.org/');
body.append('notifAction', 'nihil');
body.append('notifAction2', 'veniam');
body.append('notifPic', document.querySelector('input[name="notifPic"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/partners/v1/getset/create-notification';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'filterBy',
                'contents' => 'organization'
            ],
            [
                'name' => 'filterValue',
                'contents' => 'quo'
            ],
            [
                'name' => 'notifTitle',
                'contents' => 'embhywljdyilpwrvi'
            ],
            [
                'name' => 'notifText',
                'contents' => 'bn'
            ],
            [
                'name' => 'notifType',
                'contents' => 'push'
            ],
            [
                'name' => 'notifPicURL',
                'contents' => 'http://maggio.org/'
            ],
            [
                'name' => 'notifAction',
                'contents' => 'nihil'
            ],
            [
                'name' => 'notifAction2',
                'contents' => 'veniam'
            ],
            [
                'name' => 'notifPic',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpS8BJ7O', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/partners/v1/getset/create-notification

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

filterBy   string   

Example: organization

Must be one of:
  • users
  • organization
  • region
  • province
  • city
filterValue   string   

Example: quo

notifTitle   string   

Must not be greater than 100 characters. Example: embhywljdyilpwrvi

notifText   string   

Must not be greater than 1000 characters. Example: bn

notifType   string   

Example: push

Must be one of:
  • push
  • link
  • app
notifPic   file  optional  

Must be an image. Must not be greater than 1048 kilobytes. Example: /private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpS8BJ7O

notifPicURL   string  optional  

Example: http://maggio.org/

notifAction   string  optional  

Example: nihil

notifAction2   string  optional  

Example: veniam

KYC

Submit Government ID

requires authentication

Use this endpoint to submit government id

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/kyc/submit-gov-id"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('id_type', '');
body.append('id_number', '');
body.append('id_front', document.querySelector('input[name="id_front"]').files[0]);
body.append('id_back', document.querySelector('input[name="id_back"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/kyc/submit-gov-id';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'id_type',
                'contents' => ''
            ],
            [
                'name' => 'id_number',
                'contents' => ''
            ],
            [
                'name' => 'id_front',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpX2AGM2', 'r')
            ],
            [
                'name' => 'id_back',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpGF4hOF', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

POST api/v1/kyc/submit-gov-id

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

id_type   string   

Must not be greater than 100 characters.

id_number   string   

Must not be greater than 100 characters.

id_front   file   

Must be an image. Must not be greater than 2048 kilobytes. Example: /private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpX2AGM2

id_back   file   

Must be an image. Must not be greater than 2048 kilobytes. Example: /private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpGF4hOF

Retrieve identities

requires authentication

Use this endpoint to retrieve identities

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/kyc/retrieve-identities"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/kyc/retrieve-identities';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

GET api/v1/kyc/retrieve-identities

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Loyalty Program

Get rider's loyalty dashboard data

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/rewards/loyalty/dashboard"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/dashboard';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/rewards/loyalty/dashboard

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get rider's loyalty leaderboard data

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/rewards/loyalty/leaderboard"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/leaderboard';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/rewards/loyalty/leaderboard

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Loyalty Program Ranking

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/rewards/loyalty/ranking"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/ranking';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/rewards/loyalty/ranking

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Convert loyalty reward points to GET wallet points

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/rewards/loyalty/convert"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount": 74
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/convert';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'amount' => 74,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/rewards/loyalty/convert

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

amount   integer   

Must be at least 1. Example: 74

Loyalty Program History

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/rewards/loyalty/history"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/history';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/rewards/loyalty/history

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Loyalty Program Grow Motion

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/rewards/loyalty/grow"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/rewards/loyalty/grow';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/rewards/loyalty/grow

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Map Tracker

Get Vehicle Information Use this endpoint to get vehicle information.

requires authentication

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/vehicle-info"
);

const params = {
    "vid": "b268",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/vehicle-info';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'vid' => 'b268',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'a.alertTypeOther' in 'field list' (Connection: mysql, SQL: \n            WITH latest_trip AS (\n                SELECT *\n                FROM trips\n                WHERE vehicleId = (\n                    SELECT id FROM vehicles WHERE vid = b268\n                    LIMIT 1\n                )\n                ORDER BY id DESC\n                LIMIT 1\n            ),\n\n            tap_data AS (\n                SELECT\n                    ti.id AS tapInId,\n                    ti.tripId,\n                    ti.riderId,\n                    u.name AS riderName,\n                    u.userSenior,\n                    u.userPWD,\n                    u.userStudent,\n                    ti.originStopId,\n                    s.name AS originStopName,\n                    ti.tapAt AS tapInAt,\n                    to2.destinationStopId,\n                    s2.name AS destinationStopName,\n                    to2.tapAt AS tapOutAt,\n                    ti.quantity,\n                    TIMESTAMPDIFF(SECOND, ti.tapAt, to2.tapAt) AS rideDurationSeconds,\n                    TIMESTAMPDIFF(MINUTE, ti.tapAt, to2.tapAt) AS rideDurationMinutes,\n                    CASE\n                        WHEN to2.tapInId IS NULL THEN 1\n                        ELSE 0\n                    END AS isActive\n                FROM tap_in ti\n                LEFT JOIN tap_out to2 ON to2.tapInId = ti.id\n                LEFT JOIN users u ON u.id = ti.riderId\n                LEFT JOIN stops s ON s.id = ti.originStopId\n                LEFT JOIN stops s2 ON s2.id = to2.destinationStopId\n                WHERE ti.tripId = (SELECT id FROM latest_trip)\n            ),\n\n            trip_activity_data AS (\n                SELECT\n                    ta.tripId,\n                    ta.stopId,\n                    s.name AS stopName,\n                    ta.status,\n                    ta.createdAt,\n                    ta.updatedAt,\n                    ta.longitude,\n                    ta.latitude,\n                    ta.odometer,\n                    ta.soc,\n                    TIMESTAMPDIFF(\n                        SECOND,\n                        LAG(ta.createdAt) OVER (PARTITION BY ta.tripId ORDER BY ta.createdAt),\n                        ta.createdAt\n                    ) AS durationSeconds,\n                    TIMESTAMPDIFF(\n                        MINUTE,\n                        LAG(ta.createdAt) OVER (PARTITION BY ta.tripId ORDER BY ta.createdAt),\n                        ta.createdAt\n                    ) AS durationMinutes\n                FROM trip_activity ta\n                LEFT JOIN stops s ON s.id = ta.stopId\n                WHERE ta.tripId = (SELECT id FROM latest_trip)\n            )\n\n            SELECT\n                v.id AS vehicleId,\n                v.plateNumber,\n                v.vid,\n                v.status AS vehicleStatus,\n                v.maxSeat,\n                v.maxStand,\n\n                t.id AS tripId,\n                t.tripCode,\n                t.status AS tripStatus,\n                t.startTime,\n                t.endTime,\n\n                r.id AS routeId,\n                r.name AS routeName,\n                u.name AS driverName,\n                o.name AS originName,\n                d.name AS destinationName,\n                cs.name AS currentStopName,\n\n                (SELECT COUNT(*) FROM tap_data WHERE isActive = 1) AS passengerCount,\n\n                (\n                    SELECT JSON_ARRAYAGG(\n                        JSON_OBJECT(\n                            'tapInId', tapInId,\n                            'riderId', riderId,\n                            'riderName', riderName,\n                            'originStopId', originStopId,\n                            'originStopName', originStopName,\n                            'tapInAt', tapInAt,\n                            'userSenior', userSenior,\n                            'userPWD', userPWD,\n                            'userStudent', userStudent,\n                            'quantity', quantity\n                        )\n                    )\n                    FROM tap_data\n                    WHERE isActive = 1\n                ) AS activePassengers,\n\n                (\n                    SELECT JSON_ARRAYAGG(\n                        JSON_OBJECT(\n                            'tapInId', tapInId,\n                            'riderId', riderId,\n                            'riderName', riderName,\n                            'originStopId', originStopId,\n                            'originStopName', originStopName,\n                            'tapInAt', tapInAt,\n                            'tapOutAt', tapOutAt,\n                            'destinationStopId', destinationStopId,\n                            'destinationStopName', destinationStopName,\n                            'rideDurationSeconds', rideDurationSeconds,\n                            'rideDurationMinutes', rideDurationMinutes,\n                            'userSenior', userSenior,\n                            'userPWD', userPWD,\n                            'userStudent', userStudent,\n                            'quantity', quantity\n                        )\n                    )\n                    FROM tap_data\n                    WHERE isActive = 0\n                ) AS tappedOutPassengers,\n\n                (\n                    SELECT JSON_ARRAYAGG(\n                        JSON_OBJECT(\n                            'stopId', stopId,\n                            'stopName', stopName,\n                            'status', status,\n                            'createdAt', createdAt,\n                            'updatedAt', updatedAt,\n                            'longitude', longitude,\n                            'latitude', latitude,\n                            'odometer', odometer,\n                            'soc', soc,\n                            'durationSeconds', durationSeconds,\n                            'durationMinutes', durationMinutes\n                        )\n                    )\n                    FROM trip_activity_data\n                ) AS tripActivity,\n\n                (\n                    SELECT JSON_ARRAYAGG(\n                        JSON_OBJECT(\n                            'id', a.id,\n                            'alertTime', a.alertTime,\n                            'alertVehicle', a.alertVehicle,\n                            'alertMonitor', a.alertMonitor,\n                            'alertStatus', a.alertStatus,\n                            'alertType', a.alertType,\n                            'alertTypeOther', a.alertTypeOther,\n                            'alertSource', a.alertSource,\n                            'alertDetail', a.alertDetail,\n                            'alertResponse', a.alertResponse,\n                            'alertTrip', a.alertTrip,\n                            'alertSubject', a.alertSubject,\n                            'alertCreate', a.alertCreate,\n                            'dateResponded', a.dateResponded,\n                            'dateClosed', a.dateClosed,\n                            'alertResponder', a.alertResponder,\n                            'alertCloser', a.alertCloser,\n                            'alertBy', a.alertBy,\n                            'updatedOn', a.updatedOn,\n                            'updatedBy', a.updatedBy,\n                            'alertLocation', a.alertLocation,\n                            'alertStatusInc', a.alertStatusInc,\n                            'incStatus', a.incStatus,\n                            'incFault', a.incFault,\n                            'incAction', a.incAction,\n                            'incOffense', a.incOffense,\n                            'incType', a.incType,\n                            'incTypeOther', a.incTypeOther,\n                            'incMonitor', a.incMonitor,\n                            'incTime', a.incTime,\n                            'incLocation', a.incLocation,\n                            'incVehicle', a.incVehicle,\n                            'incRoute', a.incRoute,\n                            'incArea', a.incArea,\n                            'incDetails', a.incDetails,\n                            'detailOther', a.detailOther,\n                            'detailThird', a.detailThird,\n                            'detailWitness', a.detailWitness,\n                            'detailAuthority', a.detailAuthority,\n                            'accountSubject', a.accountSubject,\n                            'accountOperations', a.accountOperations,\n                            'accountOther', a.accountOther,\n                            'accountThird', a.accountThird,\n                            'accountWitness', a.accountWitness,\n                            'accountAuthority', a.accountAuthority,\n                            'alertRoute', a.alertRoute,\n                            'alertArea', a.alertArea,\n                            'typeEmployment', a.typeEmployment\n                        )\n                    )\n                    FROM alert a\n                    WHERE a.alertVehicle = v.id\n                    AND a.alertTrip = t.id\n                    ORDER BY a.id DESC\n                ) AS alerts\n\n            FROM latest_trip t\n            JOIN vehicles v ON v.id = t.vehicleId\n            LEFT JOIN routes r ON r.id = t.routeId\n            LEFT JOIN users u ON u.id = t.driverId\n            LEFT JOIN stops o ON o.id = t.originId\n            LEFT JOIN stops d ON d.id = t.destinationId\n            LEFT JOIN stops cs ON cs.id = t.currentStopId\n        )",
    "exception": "Illuminate\\Database\\QueryException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
    "line": 813,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
            "line": 767,
            "function": "runQueryCallback",
            "class": "Illuminate\\Database\\Connection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
            "line": 398,
            "function": "run",
            "class": "Illuminate\\Database\\Connection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
            "line": 344,
            "function": "select",
            "class": "Illuminate\\Database\\Connection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php",
            "line": 456,
            "function": "selectOne",
            "class": "Illuminate\\Database\\Connection",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php",
            "line": 357,
            "function": "__call",
            "class": "Illuminate\\Database\\DatabaseManager",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/app/Http/Controllers/V1/Demo/MapTrackerController.php",
            "line": 38,
            "function": "__callStatic",
            "class": "Illuminate\\Support\\Facades\\Facade",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 46,
            "function": "vehicle_info",
            "class": "App\\Http\\Controllers\\V1\\Demo\\MapTrackerController",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 260,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 206,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 806,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/app/Http/Middleware/ForceJsonResponse.php",
            "line": 19,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "App\\Http\\Middleware\\ForceJsonResponse",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/vehicle-info

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

vid   string   

The vid of the vehicle. Example: b268

Maya

Points Top Up

requires authentication

Use this endpoint to top up points via Paymaya

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/maya/points-top-up"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/maya/points-top-up';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, success):


{
    "message": "Request was successful."
}
 

Request      

POST api/v1/maya/points-top-up

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

items   integer[]   
quantity   integer   

Example: 0

amount   number   

Example: 0

Promo

Redeem Promo

requires authentication

Use this endpoint to redeem the promo.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/promo/redeem"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "qrcode": "quod"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/promo/redeem';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'qrcode' => 'quod',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/promo/redeem

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

qrcode   string   

Example: quod

Time Recording

Authentication

Get User Organization with Timerec

requires authentication

Use this endpoint to get the user's organizations with time recording function

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/timerec/organizations"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/organizations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/timerec/organizations

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Time Record History

requires authentication

Use this endpoint to get the time records of the user by time period.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/timerec/list/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/list/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/timerec/list/{timeperiodId}

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

timeperiodId   Time period id   

Example: 1

Check Time Record

requires authentication

Use this endpoint to check the time record for the specific date.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/timerec/check"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "timeperiodId": 6,
    "date": "2002-01-25"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/check';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'timeperiodId' => 6,
            'date' => '2002-01-25',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/timerec/check

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

timeperiodId   integer   

Example: 6

date   string   

Must be a valid date. Must be a date before or equal to today. Example: 2002-01-25

Button State for Time Record

requires authentication

Use this endpoint to get the button state for the time record.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/timerec/button-states-dates/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/button-states-dates/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/timerec/button-states-dates/{timeperiod_id}

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

timeperiod_id   integer   

The ID of the timeperiod. Example: 1

Save Time Record

requires authentication

Use this endpoint to save the time record.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/timerec/submit"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('dateType', 'yesterday');
body.append('timeperiodId', '20');
body.append('type', 'break');
body.append('location[latitude]', '-89');
body.append('location[longitude]', '-180');
body.append('picture', document.querySelector('input[name="picture"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/submit';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'dateType',
                'contents' => 'yesterday'
            ],
            [
                'name' => 'timeperiodId',
                'contents' => '20'
            ],
            [
                'name' => 'type',
                'contents' => 'break'
            ],
            [
                'name' => 'location[latitude]',
                'contents' => '-89'
            ],
            [
                'name' => 'location[longitude]',
                'contents' => '-180'
            ],
            [
                'name' => 'picture',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpa1wPnm', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/timerec/submit

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

dateType   string   

Example: yesterday

Must be one of:
  • today
  • yesterday
  • tomorrow
timeperiodId   integer   

Example: 20

type   string   

Example: break

Must be one of:
  • in
  • out
  • break
  • return from break
location   object  optional  
latitude   number  optional  

Must be between -90 and 90. Example: -89

longitude   number  optional  

Must be between -180 and 180. Example: -180

picture   file  optional  

Must be an image. Must not be greater than 2048 kilobytes. Example: /private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpa1wPnm

Submit Time Record

requires authentication

Use this endpoint to submit the time record.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/timerec/submit"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "timeperiodId": 16
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/timerec/submit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'timeperiodId' => 16,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

PUT api/v1/timerec/submit

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

timeperiodId   integer   

Example: 16

Transport

Stop Check-In

requires authentication

Use this endpoint to check in a rider at a specific stop on a trip. The rider must be authenticated and cannot have an existing active check-in at the same stop. The stop must belong to the trip's route and both the trip and stop must be active.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/transport/trips/{trip_id}/stops/{stop_id}/checkin

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trip_id   integer   

The ID of the trip. Example: 1

stop_id   integer   

The ID of the stop. Example: 1

Cancel Stop Check-In

requires authentication

Use this endpoint to cancel an active check-in at a specific stop. Only the rider who created the check-in can cancel it, and only active check-ins can be canceled.

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin/cancel"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/transport/trips/1/stops/1/checkin/cancel';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/transport/trips/{trip_id}/stops/{stop_id}/checkin/cancel

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trip_id   integer   

The ID of the trip. Example: 1

stop_id   integer   

The ID of the stop. Example: 1

Yangtse

Yangtse token

requires authentication

Use this endpoint to get authorization token from yangtse

Example request:
const url = new URL(
    "https://api-dev.getpass.ph/api/v1/yangtse/auth-token"
);

const headers = {
    "Authorization": "Bearer {YOUR_ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-dev.getpass.ph/api/v1/yangtse/auth-token';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_ACCESS_TOKEN}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Error executing \"GetItem\" on \"https://dynamodb.ap-southeast-1.amazonaws.com\"; AWS HTTP error: Client error: `POST https://dynamodb.ap-southeast-1.amazonaws.com` resulted in a `400 Bad Request` response:\n{\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request i (truncated...)\n UnrecognizedClientException (client): The security token included in the request is invalid. - {\"__type\":\"com.amazon.coral.service#UnrecognizedClientException\",\"message\":\"The security token included in the request is invalid.\"}",
    "exception": "Aws\\DynamoDb\\Exception\\DynamoDbException",
    "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
    "line": 196,
    "trace": [
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php",
            "line": 97,
            "function": "parseError",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 209,
            "function": "Aws\\{closure}",
            "class": "Aws\\WrappedHttpHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 174,
            "function": "callHandler",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/RejectedPromise.php",
            "line": 49,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/TaskQueue.php",
            "line": 52,
            "function": "GuzzleHttp\\Promise\\{closure}",
            "class": "GuzzleHttp\\Promise\\RejectedPromise",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 163,
            "function": "run",
            "class": "GuzzleHttp\\Promise\\TaskQueue",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php",
            "line": 189,
            "function": "tick",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 251,
            "function": "execute",
            "class": "GuzzleHttp\\Handler\\CurlMultiHandler",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 227,
            "function": "invokeWaitFn",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 272,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 229,
            "function": "invokeWaitList",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/guzzlehttp/promises/src/Promise.php",
            "line": 69,
            "function": "waitIfPending",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 58,
            "function": "wait",
            "class": "GuzzleHttp\\Promise\\Promise",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/aws/aws-sdk-php/src/AwsClientTrait.php",
            "line": 86,
            "function": "execute",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/DynamoDbStore.php",
            "line": 95,
            "function": "__call",
            "class": "Aws\\AwsClient",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 107,
            "function": "get",
            "class": "Illuminate\\Cache\\DynamoDbStore",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 169,
            "function": "get",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php",
            "line": 96,
            "function": "attempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 154,
            "function": "tooManyAttempts",
            "class": "Illuminate\\Cache\\RateLimiter",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 89,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 805,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 784,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 748,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 737,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 200,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 144,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/bref/laravel-bridge/src/Http/Middleware/ServeStaticAssets.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Bref\\LaravelBridge\\Http\\Middleware\\ServeStaticAssets",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 51,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 110,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
            "line": 62,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\HandleCors",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 183,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 119,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 175,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 144,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 300,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 288,
            "function": "callLaravelOrLumenRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 91,
            "function": "makeApiCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 44,
            "function": "makeResponseCall",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
            "line": 35,
            "function": "makeResponseCallIfConditionsPass",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 236,
            "function": "__invoke",
            "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 163,
            "function": "iterateThroughStrategies",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
            "line": 95,
            "function": "fetchResponses",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 125,
            "function": "processRoute",
            "class": "Knuckles\\Scribe\\Extracting\\Extractor",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 72,
            "function": "extractEndpointsInfoFromLaravelApp",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
            "line": 50,
            "function": "extractEndpointsInfoAndWriteToDisk",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
            "line": 53,
            "function": "get",
            "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 36,
            "function": "handle",
            "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
            "line": 41,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 93,
            "function": "unwrapIfClosure",
            "class": "Illuminate\\Container\\Util",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
            "line": 35,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 662,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 212,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Command/Command.php",
            "line": 279,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
            "line": 181,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 1049,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 318,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/symfony/console/Application.php",
            "line": 169,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
            "line": 196,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 1183,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/viscion/Desktop/GETProject/Sourcecode/laravel-getpass-api/artisan",
            "line": 13,
            "function": "handleCommand",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        }
    ]
}
 

Request      

GET api/v1/yangtse/auth-token

Headers

Authorization      

Example: Bearer {YOUR_ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json