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

1. Get list chains support

Get list chain support

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

The API will respond list of blockchain that POS25 support. Information includes name, chain_id, and link logo.

Headers

Name
Type
Description

Authorization*

String

Bearer <Token>

{
    "data": [
        {
            "name": "SCROLL",
            "chain_id": 534352,
            "logo": "https://s2.coinmarketcap.com/static/img/coins/64x64/26998.png"
        },
        {
            "name": "NAUTILUS",
            "chain_id": 22222,
            "logo": "https://pbs.twimg.com/profile_images/1626750544642727937/qNCwFLUt_400x400.jpg"
        },
        {
            "name": "BASE",
            "chain_id": 8453,
            "logo": "https://bridge.base.org/icons/base.svg"
        },
        {
            "name": "SUI",
            "chain_id": 101,
            "logo": "https://static.atomsolution.vn/sui.png"
        }
    ],
    "errors": [],
    "msg": "",
    "error_code": ""
}

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

{
    "data": {},
    "errors": [
        {
            "field": "Some error message"
        }
    ],
    "msg": "",
    "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/chain' \
--header 'Authorization: Bearer 8d1300ea96d3cca64918f871318864c6'
PreviousAPINext2. Get list of assets support

Last updated 1 year ago