Skip to main content
POST
/
v1
/
payment-links
Create a payment link
curl --request POST \
  --url https://api.modempay.com/v1/payment-links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "title": "<string>",
    "amount": 123,
    "currency": "GMD",
    "description": "<string>",
    "metadata": {}
  }
}
'
{
  "id": "<string>",
  "url": "<string>",
  "amount": 123,
  "currency": "<string>"
}

Authorizations

Authorization
string
header
required

Use your Modem Pay secret key.

  • Test environment: Use your sk_test_... key.
  • Production environment: Only use sk_live_... on your personal, secure machine. Do NOT share or commit your production keys.

Headers

X-No-Effect
boolean

Body

application/json
data
object
required

Response

201 - application/json

Payment link created

id
string
url
string<uri>
amount
number
currency
string