Skip to main content
POST
/
v1
/
pay
/
:username
cURL
curl --request POST \
  --url https://api.fiber.so/v1/pay/:username \
  --header 'Content-Type: application/json' \
  --data '
{
  "asset": "USD",
  "amount": 500000.005,
  "memo": "<string>"
}
'
{
  "id": "ad1db6ed-32ea-4054-ba0b-7df45665bc9c",
  "address": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
  "link": "https://pay.fiber.so/ad1db6ed-32ea-4054-ba0b-7df45665bc9c",
  "status": "pending",
  "acceptedTokens": [
    {
      "chainId": 1,
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "symbol": "USDC",
      "name": "USD Coin"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.fiber.so/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

username
string
required

The username to create a payment link for

Body

application/json

Payment details to send to the recipient

asset
enum<enum>
default:USD
required

The asset to send the payment in, only USD is supported.

Available options:
USD
amount
number
required

The amount to send the payment in

Required range: 0.01 <= x <= 1000000
memo
string

The memo to send with the payment

Maximum string length: 255

Response

Payment link created successfully

id
string

The ID of the payment link

Example:

"ad1db6ed-32ea-4054-ba0b-7df45665bc9c"

address
string

The address to send the payment to

Example:

"0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97"

The link to the payment page

Example:

"https://pay.fiber.so/ad1db6ed-32ea-4054-ba0b-7df45665bc9c"

status
enum<string>

The status of the payment link

Available options:
completed,
pending
Example:

"pending"

acceptedTokens
object[]

The assets that are accepted for the payment link