Skip to main content

Capitec Pay Recurring

Capitec Pay Recurring enables merchants to collect recurring payments from customers with a single, upfront consent, known as enrollment. Ideal for subscription services, customers approve the first request in the Capitec app, and future payments occur automatically within agreed-upon limits.

Transactions can be initiated using either the client’s phone number or ID number that is linked to their Capitec bank app, with the phone number being the most commonly used identifier. Capitec Pay is exclusively available to Capitec Bank users in South Africa.

Phone_number: A standard South African mobile number consists of 10 digits, starts with a zero (0) and no country code, "Example 0891234567"

Key Features​

  • Enrollment (One-Time Consent): Customers approve the recurring mandate once
  • Secure Authentication: Approval is handled securely within the customer's Capitec app. The customer has five minutes to approve the mandate before the transaction times out.
  • Flexible Billing: Supports fixed amounts, variable amounts within a set range, and other billing models. Merchants approved for flexible charging during onboarding can charge for price changes, plan upgrades or downgrades and ad hoc once-off purchases without updating the enrollment (see Flexible charging on approved enrollments).
  • Minimum amount per transaction: R1
  • Maximum amount per transaction: R100 000
  • Refund date range: Refunds can be processed within 180 days.

By following this basic integration guide, you will understand how to create enrollments and accept Capitec Pay recurring payments in your checkout by using EBANX’s Direct API. To complete a payment with Capitec Pay, you will need a few API calls that will create an enrollment for your customer, the recurring payment, and provide the necessary information for the customer to complete the transaction.

Note
For Direct API Integration, the merchant is responsible for ensuring the user experience required by Capitec Bank. This includes:
  • Displaying Capitec Pay as a standalone payment method, using the official Capitec Pay logo.

  • Displaying a field for the user to enter their phone number.

  • Implementing and displaying a payment instructions countdown timer (5 minutes).

  • Providing both success and failure screens to the user.

  • Capitec Pay should be presented as a standalone payment method on the merchant's checkout page with the correct Capitec Pay logo. It should NOT be nested under any payment method, such as bank transfer, etc.

Check the UX flow and Capitec Pay mandatory UX requirements, or for further information contact our integration specialists.


How it works​

Capitec Pay Recurring supports two enrollment flows, depending on whether the merchant needs to create a new enrollment or pass an existing one that was already approved through Capitec.

Standard enrollment flow​

In this flow, EBANX requests Capitec to create a new enrollment. The customer receives a push notification in the Capitec Bank app and must approve the mandate within five minutes. Once approved, EBANX confirms the enrollment and the merchant can start processing recurring charges.

The standard enrollment flow covers the following enrollment options:

  • Enrollment with variable amount (min and max)
  • Enrollment with a fixed amount
  • Enrollment with payable_now_amount
  • Enrollment with First Payment (enrollment and first payment in a single request)
StepActionEndpointDescription
1Create Enrollment/ws/userenrollmentRegister the customer and define the subscription terms (amount, frequency)
2Customer Approval(Via Capitec Bank App)The customer receives a push notification and has five minutes to approve the mandate
3Query Enrollment Status/ws/userenrollments/queryPoll this endpoint to confirm if the enrollment was accepted
4Recurring Payments/ws/directMerchant schedules payments based on the enrollment
5Enrollment cancellation/ws/userenrollmentWhere applicable, merchants can cancel the enrollment
Note
  • Enrollment mandates can be canceled by the merchant using the /ws/userenrollment endpoint, or they can be canceled by the user via the Capitec Bank App. If a cancellation is initiated by the user, EBANX will send a webhook notification update to the merchant.
  • Merchants can update an existing enrollment without requiring the end user to accept a new mandate by calling the /ws/userenrollment endpoint.

Pass existing enrollment flow (sharable tokens)​

This flow supports Capitec's sharable token functionality, where a merchant creates an enrollment with one partner (partner A) and later wants to process recurring charges through EBANX. Sharable tokens allow the merchant to reuse an existing approved Capitec enrollment across different partners without requiring the customer to approve a new mandate.

In this flow, the merchant already has an approved Capitec enrollment and wants to pass it to EBANX. Because the enrollment is already active on Capitec's side, EBANX does not communicate with Capitec during the enrollment creation. Instead, EBANX creates the enrollment internally and links the provided consent_id (enrollment identifier) and consent_receipt (enrollment agreement identifier) to it, enabling the merchant to process recurring charges through EBANX.

Note

EBANX requires that an enrollment must be registered before any recurring charge can be executed. Even if the enrollment was originally created by another partner, the merchant must pass and register the enrollment with EBANX in order to process future recurring payments.

StepActionEndpointDescription
1Pass Enrollment/ws/userenrollmentCreate the enrollment in EBANX by providing the consent_id and consent_receipt from the existing Capitec enrollment
2Recurring Payments/ws/directMerchant schedules payments based on the passed enrollment
3Enrollment cancellation (optional)/ws/userenrollmentWhere applicable, merchants can cancel the enrollment
Note
  • The merchant only needs to use this flow when passing a Capitec enrollment that is already approved and in use (for example, an enrollment originally created through a different partner). This is part of Capitec's sharable token support.
  • Since the enrollment is already approved on Capitec's side, no customer approval step is required and no push notification is sent to the Capitec Bank app.
  • The consent_id and consent_receipt are passed as-is to Capitec when processing recurring charges. EBANX does not modify these values.
  • If one of these fields (consent_id or consent_receipt) is provided, both must be informed. The merchant can omit both when using a standard enrollment flow.

Enrollment with First Payment

Capitec Pay Recurring supports Enrollment with First Payment with the Charge after approval model: you can create the enrollment and the first payment in a single /ws/direct request.

Requirements​

  • API authentication - All API requests must be authenticated using JWS (JSON Web Signature). The legacy integration_key is being deprecated — if you still use it, follow the Migration Guide to transition to JWS. If you don't have credentials yet, complete the Merchant Signup Form.
  • Familiarity with EBANX Direct - This setup follows the same general structure as other payment methods, with a few unique parameters.
  • Branding Assets - Capitec Pay must be displayed as a standalone payment method. Contact our Integration Specialists for the official logo and branding guidelines.

Instructions​

To complete a Capitec Pay enrollment and recurring payments, follow the steps below.

  1. Select your environment
    ​

    Select the appropriate environment for your integration. Use the sandbox environment for testing, or the production environment for live transactions. Use the URL for your HTTP requests based on your selection.

    Check the method's availability for your country and tenant in Payment Methods by Country. Questions about tenant and environment? Check our API Operability and API Endpoints.

    Cross-border sandbox
    https://sandbox.ebanxpay.com/ws/direct
  2. Subscription enrollment parameters
    ​

    To start the recurring payment process, enroll the subscription using the /ws/userenrollment endpoint. This step involves collecting essential customer details and subscription parameters to establish the recurring billing agreement. Once the process is complete, the customer will be enrolled for the recurring payment cycle.

    There are different enrollment options available:

    • Enrollment with variable amount (min and max)
    • Enrollment with a fixed amount
    • Enrollment with payable_now_amount
    • Enrollment with First Payment, creating the enrollment and the first payment in a single request
    • Pass existing enrollment with consent_id and consent_receipt (for merchants passing an already-approved Capitec enrollment via sharable tokens)

    The enrollment is valid until the expiry date (if one is set) or until the enrollment is revoked by the user or the merchant.

    You will need to specify the following parameters in your enrollment request:

    Basic parameters​

    These apply to all enrollment options.

    ParameterRequirementDescription
    integration_keyRequiredYour integration key
    payment_type_codeRequiredMust be capitec-pay-recurring
    operationRequiredMust be enrollment

    Enrollment Data​

    The field phone_number, linked to the customer’s Capitec Bank account, is mandatory to initiate the transaction. Optionally, the ID number associated with the account can also be provided in the field document. Below is a list of the required parameters, which further down shows specific additional fields required depending on the enrollment option used. In the payload, only the subscription information will change depending on the enrollment option.

    ParameterRequirementDescription
    countryRequiredMust be za
    emailRequiredCustomer’s e-mail
    nameRequiredCustomer’s name
    phone_numberRequiredCustomer’s phone number linked to Capitec Account
    documentOptionalCustomer's South African ID number
    merchant_enrollment_codeRequiredUnique enrollment code
    subscription_nameRequiredDescriptor of the service being provided, which will be displayed in the customer's banking app
    expiration_dateOptionalWhen provided, it defines when the enrollment is no longer valid, and no further payments will be charged ( YYYY-MM-DD 00:00:00)
    frequencyRequiredThe billing cycle of the enrollment. Available frequencies are daily; weekly; fortnightly; monthly; yearly; biennially. For on demand, merchants can use daily frequency
    start_dateRequiredThe scheduled date for the first transaction that starts the enrollment ( YYYY-MM-DD)

    Note
    • The merchant must collect the customer's full name and email address on a separate UX screen, outside of the Capitec Pay payment method flow screen.
    • If the merchant is unable to collect the customer's full name and email address, they may pass dummy values for these fields.

    Flexible charging on approved enrollments​

    Flexible charging is approved by Capitec for each merchant during merchant onboarding, and not every merchant qualifies. Once it is approved, it applies to all your enrollments; you don't need a separate approval per enrollment or per charge. To check whether flexible charging is enabled for your account, contact the EBANX Sales Engineering team before you use it.

    If flexible charging is enabled for your account, Capitec allows you to charge outside the frequency, minimum amount (min_amount), maximum amount (max_amount) and payable now amount (payable_now_amount) approved in the enrollment, without updating the enrollment. This applies to all enrollment options. Flexible charging supports use cases such as:

    • Price changes: charge a new amount after a price increase or decrease, without updating the enrollment.
    • Plan upgrades and downgrades: charge the new plan price, including any prorated amount for the change.
    • Ad hoc once-off purchases: charge add-ons, extra services or in-app purchases on the same enrollment.
    • Variable or usage-based billing: charge amounts that change from one billing cycle to the next.
    • Extra charges within a billing period: charge more than once within the enrollment frequency, for example an add-on purchased mid-cycle.
    • Charges before the start date: charge setup fees, deposits or other upfront amounts above the approved payable_now_amount.

    If flexible charging is not enabled for your account, each charge must stay within the amount and frequency the customer approved. To charge an amount outside the approved range, you must first update the enrollment with operation: update_subscription (see Updating an Existing Enrollment and Handling price changes).

    In both cases, the amounts and frequency you send in the enrollment are what the customer sees and approves in the Capitec app.

    Customer communication (mandatory) if flexible charging is enabled:

    • At sign-up: before the customer approves the enrollment, clearly inform them on your checkout or sign-up page that the amount and frequency of charges may change, for example after a price change, a plan upgrade or an ad hoc once-off purchase.
    • Before each change: tell the customer before you charge a higher amount or an extra charge.
    Capitec monitors flexible charging

    Capitec monitors how merchants use flexible charging. Charges that are much higher or more frequent than the customer approved, or that the customer was not told about at sign-up or before the charge, are considered abuse. Abuse may lead Capitec to terminate Capitec Pay services for your business.


    Enrollment Option one: Variable amount (min and max)​

    This option allows merchants to specify minimum and maximum amounts, which then determines the allowed range for future charges. Use this to charge variable amounts within a pre-approved range. The minimum amount can be set to 1 ZAR and the maximum amount as required. The min_amount and max_amount define the range the customer approves in the Capitec app. If flexible charging is not enabled for your account, each charge must be within this range. If it is enabled, see Flexible charging on approved enrollments.

    Note

    UX recommendation on variable amounts: If you use the variable option and set a maximum above the current subscription price, we recommend communicating this clearly in the checkout UX. The customer should be told that the consent carries a higher maximum authorized amount to accommodate future price changes or eligible additional charges, while making clear that the current subscription amount is what will actually be charged on a regular basis. If flexible charging is enabled for your account, also tell customers that price changes or once-off purchases may be charged to this enrollment.


    In addition to the above basic and enrollment parameters, the following additional parameters will be required:


    ParameterRequirementDescription
    min_amountRequiredMinimum amount (per payment) during the validity of the subscription plan (in ZAR currency)
    max_amountRequiredMaximum amount (per payment) during the validity of the subscription plan (in ZAR currency)

    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment/' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "payment_type_code": "capitec-pay-recurring",
    "operation": "enrollment",
    "enrollment": {
    "country": "za",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "document": "{{tax_id}}",
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "subscription_name": "Descriptor of the subscription",
    "expiration_date": "2026-12-30",
    "frequency": "monthly",
    "min_amount": "100",
    "max_amount": "500",
    "start_date": "2026-12-15"
    }
    }
    }'

    Check a response example below:


    JSON
    {
    "status": "SUCCESS",
    "redirect_url": "no-redirect",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "country": "za",
    "name": "John Doe",
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "subscription": {
    "frequency": "monthly",
    "min_amount": "100",
    "max_amount": "500",
    "expiration_date": "2026-12-30",
    "subscription_name": "Descriptor of the subscription.",
    "start_date": "2026-12-15",
    "consent_id": "cd3bd512-338e-4327-b5c1-fc7face3c7b5",
    "consent_receipt": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    },
    "open_date": "2025-10-13 17:43:53"
    }
    }
    Note

    The consent_id and consent_receipt fields in the enrollment response are the sharable tokens that merchants can use to process recurring charges with a different partner through the Pass existing enrollment flow (sharable tokens).


    Enrollment Option two: Fixed amount​

    This option allows the merchants to specify a fixed amount during enrollment. Use this option when the recurring charge is always the same. If flexible charging is not enabled for your account, every price change requires an enrollment update.

    In addition to the basic parameters and enrollment information, the following additional parameters will be required:


    ParameterRequirementDescription
    fixed_amountRequiredThe exact amount to be charged on each payment

    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment/' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "payment_type_code": "capitec-pay-recurring",
    "operation": "enrollment",
    "enrollment": {
    "country": "za",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "document": "{{tax_id}}",
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "subscription_name": "Descriptor of the subscription.",
    "expiration_date": "2026-12-30",
    "frequency": "monthly",
    "fixed_amount": "100",
    "start_date": "2026-12-15"
    }
    }
    }'

    Check a response example below:


    JSON
    {
    "status": "SUCCESS",
    "redirect_url": "no-redirect",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "country": "za",
    "name": "John Doe",
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "subscription": {
    "frequency": "monthly",
    "fixed_amount": "100",
    "expiration_date": "2026-12-30",
    "subscription_name": "Descriptor of the subscription.",
    "start_date": "2026-12-15",
    "min_amount": "100",
    "max_amount": "100",
    "consent_id": "cd3bd512-338e-4327-b5c1-fc7face3c7b5",
    "consent_receipt": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    },
    "open_date": "2025-10-13 17:43:53"
    }
    }
    Note

    The consent_id and consent_receipt fields in the enrollment response are the sharable tokens that merchants can use to process recurring charges with a different partner through the Pass existing enrollment flow (sharable tokens).


    Enrollment Option three: Enrollment with payable_now_amount​

    This option should be used when a subscription has a future start_date, but the merchant needs to authorize and collect one or more payments before that official start date. A common scenario is charging an initial setup fee, a deposit, or a one-time administrative cost or any other use case where there is an amount to be paid before the subscription start date. To be more clear, this should be used when the merchant sets a future start_date but still wants to create one or more payments after the subscription is approved and before the start_date.


    Step 1 Enrollment

    Merchant sends an enrollment request with the future start_date and includes the payable_now_amount. A successful response confirms that the subscription and payable now amount authorization has been approved. This step does not charge the customer.

    Step 2 Execute the Charge

    After receiving a successful enrollment confirmation, the merchant must make a separate call to the ws/direct endpoint to process the payment. Merchants can initiate one or multiple charges. If flexible charging is not enabled for your account, the total can't exceed the value defined in payable_now_amount.


    In addition to the basic parameters and enrollment information, the following additional parameters will be required:

    ParameterRequirementDescription
    payable_now_amountRequiredThe total amount (in ZAR) the customer approves to be charged before the subscription start_date. If flexible charging is not enabled for your account, this is the maximum you can charge before the start_date. It could be due now or any time before the start date.

    Example of this scenario: The merchant wants to create an enrollment with the start_date set to 2025-12-01, but would like to create a payment before that. So, they provide the payable_now_amount, which will determine the total amount that can be charged before 2025-12-01 if flexible charging is not enabled for your account. However, this is only an AUTHORIZATION for early charges; to actually create these charges before 2025-12-01, the merchant must use the ws/direct endpoint as defined in the common flow.


    Here is an example of an enrollment request with a future start_date and a payable_now_amount of 30 ZAR:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment/' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "payment_type_code": "capitec-pay-recurring",
    "operation": "enrollment",
    "enrollment": {
    "country": "za",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "document": "{{tax_id}}",
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "subscription_name": "Descriptor of the subscription.",
    "expiration_date": "2027-12-31",
    "frequency": "monthly",
    "min_amount": "50",
    "max_amount": "1000",
    "start_date": "2025-12-10"
    },
    "capitec": {
    "payable_now_amount": "30"
    }
    }
    }'

    Check a response example


    JSON
    {
    "status": "SUCCESS",
    "redirect_url": "no-redirect",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "country": "za",
    "name": "John Doe",
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "subscription": {
    "frequency": "monthly",
    "expiration_date": "2027-12-31",
    "subscription_name": "Descriptor of the subscription.",
    "start_date": "2025-12-10",
    "min_amount": "50",
    "max_amount": "1000",
    "consent_id": "cd3bd512-338e-4327-b5c1-fc7face3c7b5",
    "consent_receipt": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    },
    "open_date": "2025-10-13 17:43:53"
    }
    }

    By creating the subscription with this payload, this will create an enrollment that has its start date on 2025-12-10, with an amount between 50 and 1000 ZAR. However, since the payable_now_amount was provided, Capitec allows multiple payments to be created before 2025-12-10. If flexible charging is not enabled for your account, their total can't exceed the value set by the payable_now_amount field. Thus, after receiving the subscription confirmation, the merchant will be able to use the ws/direct endpoint with this subscription, even before the defined start_date to create the payment, for example the merchant could create one payment of 30 ZAR, or 3 payments of 10 ZAR each, etc.


    Note
    • Separate Payment Action: Remember, including payable_now_amount only authorizes the charge. A second, explicit call to ws/direct is required to capture the payment.
    • More than one charge can be made before the start_date. If flexible charging is not enabled for your account, the total can't exceed the payable_now_amount. The charge does not need to be created immediately after the enrollment, but it must be made before the start date.
    • Notifications: EBANX will notify you of the enrollment status once confirmed by Capitec. You can also query the enrollment status at any time using the ws/userenrollments/query endpoint.
    • Subscription Start: The recurring subscription charges (e.g., the monthly 50-1000 ZAR) will only begin on or after the start_date defined in the enrollment using the normal ws/direct flow.
    Note

    The consent_id and consent_receipt fields in the enrollment response are the sharable tokens that merchants can use to process recurring charges with a different partner through the Pass existing enrollment flow (sharable tokens).


    Enrollment Option four: Enrollment with First Payment​

    This option creates the enrollment and the first payment in a single request to the ws/direct endpoint. Use it when the subscription starts immediately. Capitec uses the Charge after approval model of Enrollment with First Payment: the payment stays pending (PE) until the customer approves the mandate in the Capitec Bank app, and then EBANX requests the first charge automatically.

    The enrollment data is sent inside the enrollment object of the payment request, using the same fields described in the enrollment options above.


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/direct' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "operation": "request",
    "payment": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "country": "za",
    "payment_type_code": "capitec-pay-recurring",
    "merchant_payment_code": "{{unique_merchant_code}}",
    "currency_code": "ZAR",
    "amount_total": "99.85",
    "phone_number": "5555555555",
    "document": "{{tax_id}}",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "subscription_name": "{{subscription_name}}",
    "expiration_date": "{{YYYY-MM-DD HH:mm:ss}}",
    "frequency": "{{frequency}}",
    "min_amount": "{{min_amount}}",
    "max_amount": "{{max_amount}}",
    "start_date": "{{YYYY-MM-DD}}"
    }
    }
    }
    }'

    Check the response example of the initial request below:


    JSON
    {
    "payment": {
    "hash": "59acc5f00945fa382ab051651440826da7701533249b3a475",
    "country": "za",
    "merchant_payment_code": "{{unique_merchant_code}}",
    "order_number": null,
    "status": "PE",
    "status_date": "{{YYYY-MM-DD HH:mm:ss}}",
    "open_date": "{{YYYY-MM-DD HH:mm:ss}}",
    "confirm_date": null,
    "transfer_date": null,
    "amount_br": "99.85",
    "amount_ext": "99.85",
    "amount_iof": "1",
    "currency_rate": "1",
    "currency_ext": "ZAR",
    "currency_ext_base": "ZAR",
    "due_date": "{{YYYY-MM-DD}}",
    "instalments": "1",
    "payment_type_code": "capitec-pay-recurring",
    "pre_approved": false,
    "capture_available": null,
    "customer": {
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "name": "John Doe",
    "birth_date": null,
    "country": "za",
    "phone_number": "5555555555"
    },
    "subscription": {
    "subscription_name": "{{subscription_name}}",
    "start_date": "{{YYYY-MM-DD}}",
    "expiration_date": "{{YYYY-MM-DD HH:mm:ss}}",
    "frequency": "{{frequency}}",
    "retry": null,
    "min_amount": "{{min_amount}}",
    "max_amount": "{{max_amount}}"
    },
    "enrollment": {
    "status": "pending",
    "merchant_enrollment_code": "{{unique_enrollment_code}}"
    }
    },
    "status": "SUCCESS"
    }
    Note
    • After the approval, the payment moves to confirmed (CO) if the charge is paid, or to canceled (CA) if it is not.
    • Differently from the payable_now_amount option, where each charge before the start_date must be requested explicitly by the merchant, in this option the first charge is requested by EBANX.
    • Additional information such as the consent_id, the consent_receipt and the account number is returned only for a successful Enrollment with First Payment.

    This option supports Capitec's sharable token functionality. It is used when the merchant already has an approved Capitec enrollment (e.g., created through a different partner) and wants to pass it to EBANX to process recurring charges. By sending the consent_id and consent_receipt inside the capitec object, the merchant can register the enrollment in EBANX without triggering a new enrollment request to Capitec and without requiring customer approval in the Capitec Bank app.

    Note
    • The merchant should only use this option when they have an existing Capitec enrollment that is already approved and in use. For new enrollments that require customer approval, use one of the standard enrollment options above.
    • EBANX requires that an enrollment must be registered before any recurring charge can be executed. Even if the enrollment was originally created by another partner, the merchant must pass and register it with EBANX in order to process future recurring payments.

    In addition to the basic parameters and enrollment information, the following additional parameters are required inside the capitec object:

    ParameterRequirementDescription
    consent_idConditionally requiredThe enrollment identifier in Capitec. This value is passed as-is to Capitec when processing recurring charges.
    consent_receiptConditionally requiredThe enrollment agreement identifier. This value is passed as-is to Capitec when processing recurring charges.
    Note

    If one of these fields (consent_id or consent_receipt) is provided, both are required. The merchant should not inform consent_id without consent_receipt (and vice versa). Both fields can be omitted when using a standard enrollment flow.


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment/' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "payment_type_code": "capitec-pay-recurring",
    "operation": "enrollment",
    "enrollment": {
    "country": "za",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "document": "{{tax_id}}",
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "subscription_name": "Descriptor of the subscription",
    "expiration_date": "2026-12-30",
    "frequency": "monthly",
    "min_amount": "100",
    "max_amount": "500",
    "start_date": "2026-12-15"
    },
    "capitec": {
    "consent_id": "value-from-existing-capitec-enrollment",
    "consent_receipt": "value-from-existing-capitec-enrollment-agreement"
    }
    }
    }'

    Check a response example below:


    JSON
    {
    "status": "SUCCESS",
    "redirect_url": "no-redirect",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "country": "za",
    "name": "John Doe",
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "phone_number": "0121234567",
    "subscription": {
    "frequency": "monthly",
    "min_amount": "100",
    "max_amount": "500",
    "expiration_date": "2026-12-30",
    "subscription_name": "Descriptor of the subscription.",
    "start_date": "2026-12-15",
    "consent_id": "value-from-existing-capitec-enrollment",
    "consent_receipt": "value-from-existing-capitec-enrollment-agreement"
    },
    "open_date": "2025-10-13 17:43:53"
    }
    }
    Note
    • When using this option, no push notification is sent to the customer and no approval is required in the Capitec Bank app.
    • The enrollment is created directly in EBANX with an accepted status, allowing the merchant to immediately start processing recurring charges.
    • The consent_id and consent_receipt values are stored and included in all subsequent charge requests to Capitec.

  3. Displaying payment instructions
    ​

    The merchant should display an instructions page to inform users that they must open the Capitec Bank app and complete the payment within five minutes, calculated from the open_date in the response. On the same page, include a visible countdown timer starting from 5 minutes and counting down to zero, so the customer can clearly see how much time remains to complete the payment. The instructions page should be displayed as per the image below.


    Check the example below:


    Once a customer completes the approval in the Capitec Bank app, EBANX will send you a status update notification and the merchant should handle this on the UX.


    Note

    The payment instruction page is displayed only during the initial enrollment process, allowing the user to approve the mandate. Once the mandate has been approved, recurring payments are processed automatically without requiring further user approval. Therefore, merchants do not need to display the payment instruction page when executing recurring payments.


  4. Enrollment Status
    ​

    During any enrollment status change, EBANX will notify the merchant via our async webhook notification, for example, operation=enrollment_status_change&notification_type=update&merchant_enrollment_code={{unique_enrollment_code}}

    Additionally, EBANX allows merchants to actively retrieve user enrollment status before performing a new transaction. Using the ID provided in merchant_enrollment_code, use the ws/userenrollments/query endpoint to get the latest status of the enrollment.


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollments/query' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}"
    }
    }'

    A successful request will return a JSON response like the one below, with status accepted for customer-approved enrollments. Other possible enrollment statuses include not_accepted, pending, expired, not_found, and revoked, depending on the actions taken by the merchant or customer.


    JSON
    {
    "status": "SUCCESS",
    "payment_type": "capitec-pay-recurring",
    "enrollment": {
    "status": "accepted",
    "email": "john.doe@example.com"
    },
    "subscription": {
    "subscription_name": "Descriptor of the subscription.",
    "start_date": "2025-07-26",
    "expiration_date": "2025-12-31 00:00:00",
    "frequency": "weekly",
    "retry": null,
    "fixed_amount": "100.00",
    "consent_id": "cd3bd512-338e-4327-b5c1-fc7face3c7b5",
    "consent_receipt": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    }
    }
    Note

    The subscription object in the query response will include the consent_id and consent_receipt fields when these attributes exist and are linked to the enrollment. These values are the sharable tokens associated with the enrollment and are required for processing recurring charges.

  5. Process Recurring Payments
    ​

    Once an enrollment is accepted, you can charge the customer on each billing cycle using the /ws/direct endpoint.

    Note
    • If the start date of the payment is on the 29th, 30th, or 31st and the recurring month does not have 29, 30, or 31 days, the payment will occur on the last day of that month.
    • If the payment fails, the merchant should make a new API call on using the /ws/direct end point.
    • The merchant can retry the failed payment once every 60 minutes until the next occurrence
    • If the first payment date (start_date), enrollment creation date and recurring payment date are on the same day (current date), and the system fails to deduct any amount due to insufficient funds, the payment request will fail. This means that the enrollment will be considered invalid and future recurring payments will not be possible.

    Scheduling a recurring payment with Capitec Pay requires the following fields:



    ParameterRequirementDescription
    integration_keyRequiredYour unique and secret integration key, used to authenticate the request.
    merchant_payment_codeRequiredUnique merchant payment code
    amount_totalRequiredTotal amount to be charged. If flexible charging is not enabled for your account, it must be within the amount approved in the enrollment.
    currency_codeRequiredMust be ZAR
    payment_type_codeRequiredMust be capitec-pay-recurring
    countryRequiredMust be za
    emailRequiredCustomer’s email
    nameRequiredCustomer’s name
    phone_numberRequiredCustomer’s phone number linked to Capitec Bank
    documentOptionalCustomers ID
    merchant_enrollment_codeRequiredThe enrollment code generated in the previous steps. The enrollment must have an accepted status to be used in recurring payments

    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/direct' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "payment": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "country": "za",
    "payment_type_code": "capitec-pay-recurring",
    "merchant_payment_code": "{{unique_merchant_code}}",
    "currency_code": "ZAR",
    "amount_total": "100",
    "phone_number": "0121234567",
    "document": "{{tax_id}}",
    "merchant_enrollment_code": "{{unique_enrollment_code}}"
    }
    }'

    A successful request will return a JSON response like the one below. The Capitec Pay Recurring payment will have a pending (PE) status and will be confirmed later by the customer's bank.


    JSON
    {
    "payment": {
    "hash": "59acc5f00945fa382ab051651440826da7701533249b3a475",
    "country": "za",
    "merchant_payment_code": "{{unique_merchant_code}}",
    "order_number": null,
    "status": "PE",
    "status_date": null,
    "open_date": "{{YYYY-MM-DD HH:mm:ss}}",
    "confirm_date": null,
    "transfer_date": null,
    "amount_br": "100.00",
    "amount_ext": "100.00",
    "amount_iof": "0.00",
    "currency_rate": "1.0000",
    "currency_ext": "ZAR",
    "due_date": "{{YYYY-MM-DD}}",
    "instalments": "1",
    "payment_type_code": "capitec-pay-recurring",
    "pre_approved": false,
    "capture_available": null,
    "customer": {
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "name": "John Doe",
    "birth_date": null
    },
    "enrollment": {
    "status": "pending",
    "merchant_enrollment_code": "{{unique_enrollment_code}}"
    },
    "subscription": {
    "subscription_name": "{{subscription_name}}",
    "start_date": "{{YYYY-MM-DD}}",
    "expiration_date": "{{YYYY-MM-DD HH:mm:ss}}",
    "frequency": "weekly",
    "retry": null,
    "fixed_amount": "100.00"
    }
    },
    "status": "SUCCESS"
    }
  6. Confirming the payment
    ​

    As soon as the payment is confirmed by the customer's bank, the payment status is modified from PE to CO, and a Status Update notification webhook is sent.

    Shell
    # Sent by EBANX to the merchant notification URL
    curl -X POST \
    --location 'https://merchant.example.com/callback' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --data-urlencode 'operation=payment_status_change' \
    --data-urlencode 'notification_type=update' \
    --data-urlencode 'hash_codes={{unique_payment_hash}}' \
    --data-urlencode 'merchant_payment_code={{unique_merchant_code}}'

    Using the hash provided in the payment response, use the /ws/query endpoint to get the latest status of the payment


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/query' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "your_ebanx_integration_key",
    "hash": "unique_payment_hash-123"
    }'

    A successful request will return a JSON response like the one below, with a status of CO for the successful recurring payment.

    JSON
    {
    "payment": {
    "hash": "68dc290b3dd5011c2a01bc9d68d55fd561d97f81e744e469",
    "country": "za",
    "merchant_payment_code": "unique-paymentid-abc-00123",
    "order_number": null,
    "status": "CO",
    "status_date": null,
    "open_date": "2025-09-30 19:01:31",
    "confirm_date": null,
    "transfer_date": null,
    "amount_br": "155.00",
    "amount_ext": "155.00",
    "amount_iof": "0.00",
    "currency_rate": "1.0000",
    "currency_ext": "ZAR",
    "due_date": "2025-10-03",
    "instalments": "1",
    "payment_type_code": "capitec-pay-recurring",
    "pre_approved": false,
    "capture_available": null,
    "customer": {
    "document": "{{tax_id}}",
    "email": "john.doe@example.com",
    "name": "John Doe",
    "birth_date": null
    },
    "subscription": {
    "subscription_name": "Descriptor of the subscription.",
    "start_date": "2026-07-01",
    "expiration_date": "2027-01-01 00:00:00",
    "frequency": "weekly",
    "retry": null,
    "fixed_amount": "155.00"
    },
    "enrollment": {
    "merchant_enrollment_code": "unique-enrollment-abc-123"
    },
    "ewallet": {
    "account_number": "100xxxxx000"
    }
    },
    "status": "SUCCESS"
    }

    The response includes the following additional field:

    FieldDescription
    ewallet.account_numberUser's Capitec Bank account number that the payment was paid from. Only returned when a charge is successful.

    Now, for each new billing cycle, repeat steps 5 and 6 above.

  7. Enrollment Cancellation
    ​

    If you need to revoke/cancel a subscription for a customer, you can send a request with operation: cancel, which will immediately cancel the subscription.


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "operation": "cancel",
    "payment_type_code": "capitec-pay-recurring",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}"
    }
    }'

    Check a response example below:


    JSON
    {
    "status": "SUCCESS",
    "enrollment": {
    "status": "revoked"
    }
    }
  8. Updating an Existing Enrollment
    ​

    Note
    • If flexible charging is not enabled for your account (check with the EBANX Sales Engineering team): use this endpoint to change the approved amounts before you charge a new price, for example after a price increase, an upgrade or a downgrade.
    • If flexible charging is enabled for your account: you don't need to update the enrollment to charge a new amount. You can still use it to change the amounts the customer sees in the Capitec app, for example after a plan change.
    • Global maximum limit: if flexible charging is not enabled for your account, Capitec may still apply a global maximum amount limit for recurring payments, as well as a percentage variation that can be applied once the maximum limit is reached. For more information, contact the EBANX Sales Engineering team.
    • Access to the enrollment update endpoint is approved by Capitec during merchant onboarding. After that, you can update enrollments at any time without a new approval for each update. If you're not sure whether your account has access, contact the EBANX Sales Engineering team.

    Merchants can update an existing enrollment without requiring the end user to accept a new mandate by calling the ws/userenrollment endpoint. If flexible charging is not enabled for your account, you must update the enrollment when the new price falls outside the approved amounts, in scenarios such as:

    • Price increase or decrease
    • Subscription plan upgrade
    • Subscription plan downgrade


    Handling price changes​

    • Flexible charging enabled: send the new amount_total on the normal /ws/direct charge. You don't need to call update_subscription, and the customer doesn't need to approve again.

    • Flexible charging not enabled: you must update the enrollment before you charge an amount outside what the customer approved. Call /ws/userenrollment with operation: update_subscription, then send the new amount_total on /ws/direct. The customer doesn't need to approve the update again. This applies to:

      • a fixed amount enrollment, for any price change;
      • a variable amount enrollment, when the new price is above max_amount or below min_amount.

      Charges within the approved min_amount/max_amount range don't need an update. Charges outside the approved enrollment that are sent without an update will be declined.


    Option one: Updating minimum and maximum amount (variable)​

    This option is used when there is a need to adjust the minimum and maximum amount already defined in an existing enrollment. Merchants are encouraged to consider potential changes when setting up the initial enrollment to minimize future updates. If flexible charging is not enabled for your account, charges must stay within the updated min and max values.


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "operation": "update_subscription",
    "payment_type_code": "capitec-pay-recurring",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "expiration_date": "2026-01-01",
    "min_amount": "100",
    "max_amount": "3000"
    }
    }
    }'

    Check a response example below:


    JSON
    {
    "status": "SUCCESS",
    "enrollment": {
    "merchant_enrollment_code": "a9b152ca-67fa-4881-a746-ee368801b55f",
    "subscription": {
    "min_amount": "100",
    "max_amount": "3000",
    "expiration_date": "2026-01-01"
    }
    }
    }

    Option two: Updating a fixed amount (fixed)​

    This option is used when the fixed amount defined during the initial enrollment needs to be updated. If flexible charging is not enabled for your account and you expect recurring changes in the subscription amount, use the variable amount option instead.


    Check a request example below:


    Shell
    curl -X POST \
    --location 'https://sandbox.ebanxpay.com/ws/userenrollment' \
    --header 'Content-Type: application/json' \
    --data '{
    "integration_key": "{{integration_key}}",
    "operation": "update_subscription",
    "payment_type_code": "capitec-pay-recurring",
    "enrollment": {
    "merchant_enrollment_code": "{{unique_enrollment_code}}",
    "subscription": {
    "expiration_date": "2026-01-01",
    "fixed_amount": "500"
    }
    }
    }'

    Check a response example below:


    JSON
    {
    "status": "SUCCESS",
    "enrollment": {
    "merchant_enrollment_code": "a9b152ca-67fa-4881-a746-ee368801b55f",
    "subscription": {
    "min_amount": "500",
    "max_amount": "500",
    "expiration_date": "2026-01-01",
    "fixed_amount": "500"
    }
    }
    }

    Notifications


    Status

    • After receiving a notification that status has changed, retrieve the payment status.

    • When a payment is confirmed, the status will change from pending (PE) to confirmed (CO). If the customer does not complete the payment, the status will eventually change to canceled (CA).


  9. Congratulations!
    ​

    You have successfully integrated Capitec Pay Recurring.

    For more information, refer to the
    Direct API reference guidechevron_right

Error Codes​

The following error codes may appear in the payment.transaction_status.description_code field when a Capitec Pay Recurring charge is declined, or in the reason_code field when an enrollment is canceled. For the full list of common APM response codes, see APM Response Codes.

CodeDescriptionSuggested merchant handling
PAYMENT_NOT_VALIDInvalid payment schedulingCheck the payment schedule fields (due date, frequency) and retry with valid values.
DEFAULT_ERRORUnknown acquirer errorDo not retry automatically; contact EBANX support for more details.
NO_ACCEPTEDNot acceptedAsk the customer to re-enroll or choose another payment method.
INVALID_AMOUNTValue sent in the amount field is incorrectValidate the amount against the enrollment limits and retry.
INSUFFICIENT_FUNDS_OR_DAILY_LIMITInsufficient funds or limit restrictions in the user's accountRetry later or reduce the charge amount.
INVALID_DUE_DATEInvalid due dateVerify the due date is valid and in the future, then retry.
USER_ACCOUNT_CLOSEDUser account is closed or blockedStop all charges; request a new payment method.
MAX_AMOUNT_EXCEEDEDPayment declined as the amount exceeds the maximum threshold defined by the payerEnsure the amount is within the enrollment min/max or the customer's bank limit.

Capitec Pay UX flow​

This demo illustrates the end-to-end payment experience with Capitec Pay recurring. The journey begins on the merchant's checkout page, where the customer selects Capitec Pay and enters their mobile number. After submitting the request, a push notification is sent to their Capitec Bank app. The user reviews and approves the payment directly within the app, and approves the consent as a way to confirm the enrollment.

While the merchant's UX flow is the same, the user's experience varies based on their Capitec Bank App login status: logged out or logged in.

User logged out of the Capitec Bank App

User already logged in the Capitec Bank App

Capitec Pay mandatory UX requirements​

Warning

Mandatory requirement: These UX guidelines are a mandatory requirement by Capitec. All merchants must comply before going live.

  • Flexible charging disclosure: if flexible charging is enabled for your account, your checkout or sign-up page must tell the customer, before they approve the enrollment, that the amount and frequency of charges may change (for example after a price change, a plan upgrade or an ad hoc once-off purchase). See Flexible charging on approved enrollments.

For the full mandatory UX requirements (checkout display, branding, phone number validation, instruction screen, error handling, and implementation checklist), refer to the Capitec Pay mandatory UX requirements section.

For recurring-specific differences (Capitec app approval screen and merchant confirmation screen), see the Recurring payment differences subsection.

Resources​

Use the following resources when testing in your sandbox environment.

Need help?

Help Image