Create a Payment Link
Basic Request
Required Parameters
Optional Parameters
Link Types
- Fixed Amount
- Variable Amount
- Products
- Subscription
Item Structure
Forproduct and subscription types, you can define items:
Advanced Options
Limit Usage
Collect Addresses
Allow Promo Codes
Customize the Payment Button
submitMessage is shown below the button as plain text (no HTML, line breaks kept). Surrounding whitespace is trimmed; an empty string is treated as null, a whitespace-only string is rejected with 422. A checkout session opened from the link inherits its submitType.
Custom Redirect URLs
Custom Slug
Create a memorable URL:https://pay.yabetoo.com/p/donate-2024
Complete Example
Response
Response Fields
Common Operations
Retrieve a Link
Update a Link
- an absent key leaves the field unchanged;
nullclears the field:description,amount,minAmount,maxAmount,suggestedAmounts,expiresAt,maxRedemptions,successUrl,cancelUrl,brandingId,metadata,submitType,submitMessage.nameandslugcannot be cleared (422).
minAmount greater than maxAmount is refused with 422, at creation as on update.
Items (product and subscription links): when items is sent, it is the full new list. An item carrying its id is updated, an item without id is created, an existing item left out is removed. An id that is unknown, repeated, or sent with a different productId is refused with 422.
Deactivate a Link
Delete a Link
List Links
Webhooks
Receive notifications when a payment is made via a link:data (there is no data.object). amount is in the currency’s
major unit (25000 = 25,000 XAF).
Available Events
See Webhooks Documentation for signature and delivery details.
Best Practices
Security
Security
- Always create links server-side
- Never store API keys client-side
- Use webhooks to verify payments
User Experience
User Experience
- Use memorable slugs for important links
- Add a clear description
- Set a reasonable expiration date
Management
Management
- Use metadata for tracking (campaign, source, etc.)
- Monitor
redemptionCountfor limited offers - Deactivate links rather than deleting them
Next Steps
Share a Link
Learn how to share your links effectively
Webhooks
Configure real-time notifications