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": "elza.boyle@example.net",
    "prefixName": "",
    "firstName": "",
    "middleName": "",
    "lastName": "",
    "password": "",
    "hasAcceptedTerms": true,
    "organizationId": 1,
    "mobile_number": "lffgze",
    "birthday": "1999-06-18",
    "gender": "tmjdgzavkpnvkbknnpra",
    "address": {
        "country": "fi",
        "region": "wjasdaekz",
        "province": "wto",
        "municity": "ikoalzpjrk",
        "barangay": "zlriwpqzjuzoaoe",
        "unit_street": "puxrgneitwsb"
    }
};

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' => 'elza.boyle@example.net',
            'prefixName' => '',
            'firstName' => '',
            'middleName' => '',
            'lastName' => '',
            'password' => '',
            'hasAcceptedTerms' => true,
            'organizationId' => 1.0,
            'mobile_number' => 'lffgze',
            'birthday' => '1999-06-18',
            'gender' => 'tmjdgzavkpnvkbknnpra',
            'address' => [
                'country' => 'fi',
                'region' => 'wjasdaekz',
                'province' => 'wto',
                'municity' => 'ikoalzpjrk',
                'barangay' => 'zlriwpqzjuzoaoe',
                'unit_street' => 'puxrgneitwsb',
            ],
        ],
    ]
);
$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: elza.boyle@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: lffgze

birthday   string  optional  

Must be a valid date. Must be a date before today. Example: 1999-06-18

gender   string  optional  

Must not be greater than 100 characters. Example: tmjdgzavkpnvkbknnpra

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

Must not be greater than 2 characters. Example: fi

region   string  optional  

Must not be greater than 100 characters. Example: wjasdaekz

province   string  optional  

Must not be greater than 100 characters. Example: wto

municity   string  optional  

Must not be greater than 100 characters. Example: ikoalzpjrk

barangay   string  optional  

Must not be greater than 100 characters. Example: zlriwpqzjuzoaoe

unit_street   string  optional  

Must not be greater than 255 characters. Example: puxrgneitwsb

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": "pkonwcaiomakopz",
    "password": ",7pjOdrtJYDIOa",
    "hasAcceptedTerms": true,
    "firstName": "dskvk",
    "middleName": "wjlnj",
    "lastName": "xqs",
    "birthday": "2005-01-15",
    "gender": "male",
    "profilePicture": "est",
    "psgcOldCode": "veniam"
};

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' => 'pkonwcaiomakopz',
            'password' => ',7pjOdrtJYDIOa',
            'hasAcceptedTerms' => true,
            'firstName' => 'dskvk',
            'middleName' => 'wjlnj',
            'lastName' => 'xqs',
            'birthday' => '2005-01-15',
            'gender' => 'male',
            'profilePicture' => 'est',
            'psgcOldCode' => 'veniam',
        ],
    ]
);
$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: pkonwcaiomakopz

password   string   

Must be at least 6 characters. Example: ,7pjOdrtJYDIOa

hasAcceptedTerms   boolean   

Must be accepted. Example: true

firstName   string  optional  

Must not be greater than 100 characters. Example: dskvk

middleName   string  optional  

Must not be greater than 100 characters. Example: wjlnj

lastName   string  optional  

Must not be greater than 100 characters. Example: xqs

birthday   string  optional  

Must be a valid date. Must be a date before today. Example: 2005-01-15

gender   string  optional  

Example: male

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

Example: est

psgcOldCode   string  optional  

Example: veniam

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', 'r');
body.append('password', 'WIuR-+1Ee@eiB1L');
body.append('hasAcceptedTerms', '1');
body.append('firstName', 's');
body.append('middleName', 'hr');
body.append('lastName', 'mnawzuxjwubolrbpmcpr');
body.append('birthday', '2021-06-24');
body.append('gender', 'female');
body.append('email', 'halie92@example.com');
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' => 'r'
            ],
            [
                'name' => 'password',
                'contents' => 'WIuR-+1Ee@eiB1L'
            ],
            [
                'name' => 'hasAcceptedTerms',
                'contents' => '1'
            ],
            [
                'name' => 'firstName',
                'contents' => 's'
            ],
            [
                'name' => 'middleName',
                'contents' => 'hr'
            ],
            [
                'name' => 'lastName',
                'contents' => 'mnawzuxjwubolrbpmcpr'
            ],
            [
                'name' => 'birthday',
                'contents' => '2021-06-24'
            ],
            [
                'name' => 'gender',
                'contents' => 'female'
            ],
            [
                'name' => 'email',
                'contents' => 'halie92@example.com'
            ],
            [
                'name' => 'photoId',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpqDMrAp', '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: r

password   string   

Must be at least 6 characters. Example: WIuR-+1Ee@eiB1L

hasAcceptedTerms   boolean   

Must be accepted. Example: true

firstName   string   

Must not be greater than 100 characters. Example: s

middleName   string  optional  

Must not be greater than 100 characters. Example: hr

lastName   string   

Must not be greater than 100 characters. Example: mnawzuxjwubolrbpmcpr

birthday   string   

Must be a valid date. Must be a date before today. Example: 2021-06-24

gender   string   

Example: female

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/phpqDMrAp

email   string  optional  

Must be a valid email address. Example: halie92@example.com

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.

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', 'region');
body.append('filterValue', 'ipsa');
body.append('notifTitle', 'ckzozpgz');
body.append('notifText', 'mlzfnofppl');
body.append('notifType', 'push');
body.append('notifPicURL', 'http://swift.net/architecto-libero-quis-vel-et-illum-aut-omnis');
body.append('notifAction', 'consequatur');
body.append('notifAction2', 'fugit');
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' => 'region'
            ],
            [
                'name' => 'filterValue',
                'contents' => 'ipsa'
            ],
            [
                'name' => 'notifTitle',
                'contents' => 'ckzozpgz'
            ],
            [
                'name' => 'notifText',
                'contents' => 'mlzfnofppl'
            ],
            [
                'name' => 'notifType',
                'contents' => 'push'
            ],
            [
                'name' => 'notifPicURL',
                'contents' => 'http://swift.net/architecto-libero-quis-vel-et-illum-aut-omnis'
            ],
            [
                'name' => 'notifAction',
                'contents' => 'consequatur'
            ],
            [
                'name' => 'notifAction2',
                'contents' => 'fugit'
            ],
            [
                'name' => 'notifPic',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpH5SlLL', '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: region

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

Example: ipsa

notifTitle   string   

Must not be greater than 100 characters. Example: ckzozpgz

notifText   string   

Must not be greater than 1000 characters. Example: mlzfnofppl

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/phpH5SlLL

notifPicURL   string  optional  

Example: http://swift.net/architecto-libero-quis-vel-et-illum-aut-omnis

notifAction   string  optional  

Example: consequatur

notifAction2   string  optional  

Example: fugit

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/phpgtBdIi', 'r')
            ],
            [
                'name' => 'id_back',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/php68PirV', '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/phpgtBdIi

id_back   file   

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

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": 90
};

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' => 90,
        ],
    ]
);
$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: 90

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": "quia"
};

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' => 'quia',
        ],
    ]
);
$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: quia

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": 2,
    "date": "2001-08-17"
};

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' => 2,
            'date' => '2001-08-17',
        ],
    ]
);
$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: 2

date   string   

Must be a valid date. Must be a date before or equal to today. Example: 2001-08-17

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', 'tomorrow');
body.append('timeperiodId', '1');
body.append('type', 'out');
body.append('location[latitude]', '-90');
body.append('location[longitude]', '-179');
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' => 'tomorrow'
            ],
            [
                'name' => 'timeperiodId',
                'contents' => '1'
            ],
            [
                'name' => 'type',
                'contents' => 'out'
            ],
            [
                'name' => 'location[latitude]',
                'contents' => '-90'
            ],
            [
                'name' => 'location[longitude]',
                'contents' => '-179'
            ],
            [
                'name' => 'picture',
                'contents' => fopen('/private/var/folders/rm/1p8k5565461_h64wr236zg2r0000gn/T/phpKrRltw', '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: tomorrow

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

Example: 1

type   string   

Example: out

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

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

longitude   number  optional  

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

picture   file  optional  

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

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": 19
};

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' => 19,
        ],
    ]
);
$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: 19

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