Guides
Payment links
Create shareable links for WhatsApp, Instagram or email, with deposits and expiry dates.
A payment link is a hosted page your customer can open on any phone and pay by card or transfer. It's the fastest way to get paid without a website.
Create a link
Create a payment link
curl https://sandbox.cswitchcba.com/v1/payment-links \
-H "Authorization: Bearer $CSWITCH_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Silk wrap dress, size 10", "amount": 6500000, "allow_part_payment": true}'Options
- Leave out
amountto let the customer enter one, for donations or tips. - Set
expires_atfor sales, events and limited stock. - Set
allow_part_paymentto let customers pay a deposit first.
Every payment through a link triggers the same payment.successful webhook as checkout, with the link's ID in the payload.