P
P
POS25
v1.0.1 (mainnet)
Search
K
📪

API

This is an API that interacts with the POS25 system.
Token: 8d1300ea96d3cca64918f871318864c6 . Developer can using this Token to test the APIs bellow.

1. Get list chain support

get
https://api.pos25.app/v1/cf-payment
/chain
Let's see how you can call this method either through Curl or Python:
Curl
Python code
curl --location 'https://api.pos25.app/v1/cf-payment/chain' \
--header 'Authorization: Bearer 8d1300ea96d3cca64918f871318864c6'
import requests
url = "https://api.pos25.app/v1/cf-payment/chain"
payload = {}
headers = {
'Authorization': 'Bearer 8d1300ea96d3cca64918f871318864c6'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)

2. Get a list of asset support

get
https://api.pos25.app/v1/cf-payment
/asset
Let's see how you can call this method either through Curl or Python:
Curl
Python code
curl --location 'https://api.pos25.app/v1/cf-payment/asset?chain_id=534352'
import requests
url = "https://api.pos25.app/v1/cf-payment/asset?chain_id=534352"
payload = {}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
post
https://api.pos25.app/v1/cf-payment
/generate_qr
Let's see how you can call this method either through Curl or Python:
Curl
Python code
curl --location 'https://api.pos25.app/v1/cf-payment/generate_qr' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 8d1300ea96d3cca64918f871318864c6' \
--data '
{
"order_id": "010001",
"amount": "0.001",
"asset": "USDT",
"chain_id": 22222,
"currency": "USD",
"fee_value": "0",
"serial_number": "00024500706"
}
'
import requests
import json
url = "https://api.pos25.app/v1/cf-payment/generate_qr"
payload = json.dumps({
"order_id": "010001",
"amount": "0.001",
"asset": "USDT",
"chain_id": 22222,
"currency": "USD",
"fee_value": "0",
"serial_number": "00024500706"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer 8d1300ea96d3cca64918f871318864c6'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)

4. API NFC payment

post
https://api.pos25.app/v1/cf-payment
/generate_nfc
Let's see how you can call this method either through Curl or Python:
Curl
Python code
curl --location 'https://api.pos25.app/v1/cf-payment/generate_nfc' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 8d1300ea96d3cca64918f871318864c6' \
--data '{
"token": "10f932e3-b85a-4c23-8a88-f830e4bbfe06",
"order_id": "92108",
"amount": "0.01",
"serial_number": "00024500710"
}
'
import requests
import json
url = "https://api.pos25.app/v1/cf-payment/generate_nfc"
payload = json.dumps({
"token": "10f932e3-b85a-4c23-8a88-f830e4bbfe06",
"order_id": "92108",
"amount": "0.01",
"serial_number": "00024500710"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer 8d1300ea96d3cca64918f871318864c6'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)