Skip to main content

Basic Request

Required Parameters

Optional Parameters

Type amount - Fixed Amount

To collect a specific amount:

Item Structure

For product 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:
The URL will be: https://pay.yabetoo.com/p/donate-2024

Complete Example

Response

Response Fields

Common Operations

Only the keys you send are changed:
  • an absent key leaves the field unchanged;
  • null clears the field: description, amount, minAmount, maxAmount, suggestedAmounts, expiresAt, maxRedemptions, successUrl, cancelUrl, brandingId, metadata, submitType, submitMessage. name and slug cannot be cleared (422).
The slug can be changed, under the same rules as at creation. The old URL https://pay.yabetoo.com/p/<old-slug> then stops working: any link already shared or encoded in a QR code is broken. A slug stays taken even after its link is deleted.
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.

Webhooks

Receive notifications when a payment is made via a link:
Fields sit directly under data (there is no data.object). amount is in the currency’s major unit (25000 = 25,000 XAF).

Available Events

  • A payment via a link emits payment_link.checkout.completed, not checkout.session.completed: subscribe to the payment_link.* family.
  • Updating a link emits no event.
  • subscription links go through the subscription flow and emit no payment_link.* event: listen to the subscription events instead.
See Webhooks Documentation for signature and delivery details.

Best Practices

  • Always create links server-side
  • Never store API keys client-side
  • Use webhooks to verify payments
  • Use memorable slugs for important links
  • Add a clear description
  • Set a reasonable expiration date
  • Use metadata for tracking (campaign, source, etc.)
  • Monitor redemptionCount for 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