Yedpay

Description (Company's Store List)

Show the information of the store related with that company. (GET)

Can include the follow parameters separated by comma "," adding the parameter "include" in the url to get more information:

  • * daily_balance - provide the daily balance of the store
  • * logo_info - provides Logo information
To include available gateways for creating transactions, add parameter "include_gateways" with value 1 / true

Example:

https://api.yedpay.com/v1/companies/{{company_id}}/stores?include=daily_balance,logo_info&include_gateways=1

End Point

https://api.yedpay.com/v1/companies/{{company_id}}/stores

Variable

# Name Type Description
1 company_id String Company's ID

Request Header

# Key Value Description
1 Authorization Bearer {{access_token}} Login Token

Body

# Name Type Description

Response

# Name Type Description
1 success Boolean Request Success or Fail
2 data Array Include all Store's Information (ID, Name, Phone etc..)
3 meta Array Include all pagination's Information (total, count, per_page etc..)

Success Response - data

# Name Type Description
1 id String Id of the Store
2 name String Name of the Store
3 phone String Phone of the Store
4 address String Address of the Store
5 logo String Logo of the Store
6 logo_url String Url of the Logo
7 created_at DateTime Date time the store was created
8 _permission Array Permission of the User
9 _links Array Include Links for:
- store

Example Success Response

            Normal Response:
            {
                "success": true,
                "data": [
                    {
                        "id": "JwoMPpKy",
                        "name": "xxxx",
                        "phone": "7287381",
                        "address": "Kowloon",
                        "logo": "xxxxxxxxxx",
                        "logo_url": "xxxxxxxxxx",
                        "created_at": "2099-01-02 12:00:00"
                    }
                ],
                "meta": {
                    "pagination": {
                        "total": 1,
                        "count": 1,
                        "per_page": 40,
                        "current_page": 1,
                        "total_pages": 1,
                        "links": []
                    }
                }
            }

            Include Available Gateway Response:
            {
                "success": true,
                "data": [
                    {
                        "id": "JwoMPpKy",
                        "name": "xxxx",
                        "phone": "7287381",
                        "address": "Kowloon",
                        "logo": "xxxxxxxxxx",
                        "logo_url": "xxxxxxxxxx",
                        "created_at": "2099-01-02 12:00:00",
                        "available_gateways": {
                            "1_1": false,
                            "2_1": true,
                            "4_1": true,
                            "6_1": true,
                            "8_1": true
                        }
                    }
                ],
                "meta": {
                    "pagination": {
                        "total": 1,
                        "count": 1,
                        "per_page": 40,
                        "current_page": 1,
                        "total_pages": 1,
                        "links": []
                    }
                }
            }
        

Example Error Response

            {
                "success": false,
                "message": "Unauthenticated.",
                "status": 500
            }
        

v1.22.0-20190710 © The Payment Cards Group Limited. All rights reserved.