Create Subscription
Sets up a recurring charge. Switch creates the subscription at the provider; the provider charges the customer each cycle and Switch credits the wallet when it does.
Body
customerId
*StringCustomer ID to create the subscription for.
currency
*String3-letter ISO currency code.
amount
*NumberAmount charged each cycle in major units.
interval
*StringBilling interval. One of: "DAILY", "WEEKLY", "MONTHLY", "QUARTERLY" (Flutterwave only), "ANNUALLY".
callbackUrl
*StringUsed only if enrollment requires a checkout. The customer is redirected here after completing the first payment.
provider
StringProvider to use. Omit to auto-select.
description
StringDescription shown on the subscription (e.g. plan name).
POST
/ v2/wallet/subscriptions
Endpoint URL(TEXT)
Request Body
Response(JSON)
// Click 'Try now' to see the response