Skip to main content
Use an sk_test_ key on https://buy.api.yabetoopay.com — there is a single host, the key carries the mode. A subscription created in test stays in test for its whole life.
1

Create a product and its recurring price

A subscription is built on a price of type: "recurring". The cadence is carried by billingInterval and billingIntervalCount.
The API does not make billingInterval and billingIntervalCount mandatory on a recurring price. Always set them: a recurring price without a cadence creates a subscription that never renews, with no error.
Field details: Prices.
2

Create the subscription with the customer's Mobile Money number

The customer is found or created by email. Their payment method becomes their default one: it is the one requested at every renewal.
The response comes back after the payment request — the call waits for the operator’s answer.
201
If the customer declines or does not answer, the response is still a 201: paymentStatus.success is false and the subscription is unpaid. See Create through the API.
3

Listen to webhooks

Two events tell the subscription’s story:The full list: Webhooks.
4

Simulate the renewal

In test mode, a test clock moves the subscription to its due date without waiting a month.

Next

Lifecycle

The six statuses and their transitions.

Hosted page

Let the customer subscribe on their own.

Billing cycle

What happens at each due date, and when.

API reference

The object and its ten endpoints.