Yedpay

Description (Show Fixed Code)

Show the selected Fixed Code. (GET)

End Point

https://api.yedpay.com/v1/fixedcode/barcodes/{{fixed_code_id}}

Variable

# Name Type Description
1 fixed_code_id String Fixed Code'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 fixed code information Success or Fail
2 data Array Include all fixed code's information (id, company_id, store_id, name, etc.)

Success Response - data

# Name Type Description
1 id String Id of the Fixed Code
2 code String Code of the Fixed Code
3 company_id String Company Id of the Fixed Code
4 store_id String Store Id of the Fixed Code
5 name String Name of the Fixed Code
6 subtitle_name String Subtitle of the Fixed Code
7 amount Float Amount of the Fixed Code
8 gateway Integer Id of the Gateway used to Generate the transaction
9 wallet String Wallet of the Gateway (Only for Alipay)
10 available_gateway Integer Id of the Gateway used to Generate the transaction
11 is_fixed_amount Boolean The Code is Fixed Amount or Not
12 status String Status of the Fixed Code
13 qrcode Array Include Links for:
- zh
- en

Example Success Response

            {
                "success": true,
                "data": {
                    "id": "BbBbBbBbBbBbBbBb",
                    "code": "DdDdDdDdDdDdDdDd",
                    "company_id": "XxXxXxXxXxXxXxXxXx",
                    "store_id": "YyYyYyYyYyYyYyYyYy",
                    "name": "fixedCode2",
                    "subtitle_name": "",
                    "amount": "0.10",
                    "gateway": 1,
                    "wallet": "CN",
                    "available_gateway": "1,8",
                    "is_fixed_amount": false,
                    "status": "Active",
                    "_links": {
                        "checkout": {
                            "zh": "https://qr.yedpay.com/payment/zh/DdDdDdDdDdDdDdDd",
                            "en": "https://qr.yedpay.com/payment/en/DdDdDdDdDdDdDdDd"
                        },
                        "qrcode": {
                            "zh": "https://api.yedpay.com/v1/qr/yedpay/zh/DdDdDdDdDdDdDdDd",
                            "en": "https://api.yedpay.com/v1/qr/yedpay/en/DdDdDdDdDdDdDdDd"
                        }
                    }
                }
            }
        

Example Error Response

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

v1.30.0-20191113 © The Payment Cards Group Limited. All rights reserved.