Skip to main content
POST
Create payment link
Share the returned url by SMS, WhatsApp or email. The customer opens it, enters their number (or confirms a pre-filled one) and pays by STK Push.
  • Omit amount to let the customer type it.
  • Payments appear as STK transactions and are sent to callbackUrl like any STK Push.
  • expiry is one of 1h, 6h, 24h, 72h, 168h, 720h or never (the default).
  • Live keys only. Test keys get 403 NOT_AVAILABLE_IN_TEST_MODE. MCP keys need paylinks:write.
  • An account can have up to 10 payment links (active or disabled). The 11th returns 400 PAYLINK_LIMIT_REACHED. Delete a link you no longer need to make room.

Authorizations

Authorization
string
header
required

Paste your PalPluss API key in the username field and leave the password field empty — it is ignored.

Get your key from console → API Keys. Live keys start with pp_live_, test keys (simulated money) with pp_test_.

In your own code, send the key directly: Authorization: Basic YOUR_API_KEY

Body

application/json
amount
number

Fixed amount. Omit to let the customer enter it.

Required range: x >= 1
phone_number
string

Pre-fill the customer's phone.

customer_name
string
Maximum string length: 120
external_reference
string
Maximum string length: 120
channel_id
string<uuid>

Channel to collect into (default channel if omitted).

callbackUrl
string<uri>
expiry
enum<string>
default:never
Available options:
1h,
6h,
24h,
72h,
168h,
720h,
never

Response

Payment link created.

success
boolean
required
Example:

true

data
object
required

Response payload. Shape varies by endpoint.

requestId
string<uuid>
required

Unique identifier for this API request. Include in support tickets.

Example:

"c1b2a3d4-e5f6-7890-abcd-ef1234567890"