Use self-serve prepaid

Self-serve prepaid lets customers purchase prepaid on demand.

Before you use self-serve prepaid, you must complete the following tasks in Smile, among others:
  • configure prepaid
  • make prepaid blocks available for self-service
  • set up payment types
The following self-serve prepaid workflow lets you dynamically discover available prepaid blocks and payment types, so you can change your prepaid offerings in Smile without changing your code:
  1. authenticate() checks the customer's credentials and returns the subscription USN.
    Note: This method is located on the authentication endpoint.
  2. getSelfServePrepaidList() returns a list of the prepaid blocks a customer can purchase.
  3. getPrepaidPaymentTypes() returns a list of payment methods available to the customer.
  4. getQuote() returns a quote to purchase a prepaid block with a specific payment method.
  5. addSelfServePrepaid() adds a prepaid block to a subscription and charges for the prepaid.