POS25
  • πŸ‘‹Welcome to POS25
  • Features
    • πŸ–₯️Offline payment
      • πŸ”³QR code scanning
      • ✨NFC tap to pay
      • πŸ—ƒοΈCard
  • ☁️Online payment
    • πŸ›…Checkout page
    • πŸ’³Card EMV acceptance
    • πŸ”³QR payment
  • Page
  • πŸ“’Contract Addresses
  • API Integration
    • πŸ“ͺAPI
    • 1. Get list chains support
    • 2. Get list of assets support
    • 3. Create link payment (Support QR code)
    • 4. NFC payment
  • SDK Integration
    • πŸ› οΈTypescript SDK
    • πŸ› οΈPython SDK
    • βš™οΈMobile SDK
    • πŸ› οΈHow to use SDK
    • πŸ•ΈοΈChange log
  • Reference documents
    • πŸ–₯️For Developers
  • Terms
  • Privacy
Powered by GitBook
On this page
  1. API Integration

2. Get list of assets support

Get a list of asset support

GET https://api.pos25.app/v1/cf-payment/asset

The API will retrieve a list of chain assets that the user passes in via chain_id

Query Parameters

Name
Type
Description

chain_id*

String

chain_id that pos25 supports

Headers

Name
Type
Description

Authorization*

String

Bearer <Token>

{
    "data": [
        {
            "asset": "USDT",
            "chain": "SCROLL",
            "chain_id": 534352,
            "decimal": 6,
            "logo": "https://s3.ap-southeast-1.amazonaws.com/static.atomsolution.vn/usdt.png"
        }
    ],
    "errors": [],
    "msg": "",
    "error_code": ""
}

{
    "data": {},
    "errors": [
        {
            "user": "Invalid"
        }
    ],
    "msg": "Forbidden",
    "error_code": "E_FORBIDDEN"
}

{
    "data": {},
    "errors": [
        {
            "chain_id": [
                "Missing data for required field."
            ]
        }
    ],
    "msg": "Invalid params",
    "error_code": "E_BAD_REQUEST"
}

Let's see how you can call this method either through Curl or Python:

curl --location 'https://api.pos25.app/v1/cf-payment/asset?chain_id=534352'
Previous1. Get list chains supportNext3. Create link payment (Support QR code)

Last updated 1 year ago