EllyPay Gateway API
  • Introduction
  • Getting Started
    • Registration
    • Error Handling
    • Authentication
    • Merchant Account Credentials
      • Generate Secret Key
      • Regenerate Security Keys
    • Supported Countries
    • Transaction Limits
    • Sandbox Test Accounts
    • RSA Public Keys
  • Utility Functions
    • Balance Inquiry
    • Payment Options
    • Payout Bank Codes
    • Transaction Status Verification
    • Handling Notifications/Callbacks
      • Callback Events
  • Funds Collection
    • Getting Started
    • Mobile Money Collection
  • Funds Payout
    • Getting Started
    • Mobile Money Payouts
    • Bank Account Transfers
  • Service Payments
    • Getting Started
    • Services List
    • Service Packages List
    • Service Choices List
    • Account Validation
    • Payment Confirmation
  • Callbacks
    • HMAC Signature Verification
    • RSA Signature Verification
  • Knowledge Base
    • Availing Payout Funds
    • Availing Service Payment Funds
    • Funds Settlement
    • Cross Currency Transactions
Powered by GitBook
On this page
  • Get Service Packages List
  • Sample Service Packages Request
  1. Service Payments

Service Packages List

Some services have packages OR a price list that describes the available items for payment/subscription. This section describes how a service's price/package list can be obtained.

Obtaining a packages list relates to services returned here and the value for has_packages is true

Get Service Packages List

GET https://gwapisdbx.ellypayapp.com/service-payments/service-packages?serviceCode=

Returns the list of service packages based on the service code. The service code is passed as query parameter to retrieve the packages accordingly.

Query Parameters

Name
Type
Description

serviceCode*

String

The service code for the service whose packages are to be obtained in the request.

Headers

Name
Type
Description

public-key*

String

The Public Key as shared in the approval email

Sample Service Packages Request

curl https://gwapisdbx.ellypayapp.com/service-payments/service-packages?serviceCode=MTNData \
   -H "Accept: application/json" \
   -H "x-api-version: 1" \
   -H "public-key: your-public-key"
{
    "code": 200,
    "status": "success",
    "message": "Request completed successfully.",
    "data": [
        {
            "code": "MTNData_33067121",
            "name": "MTN 70MB Daily Bundle",
            "currency": "UGX",
            "price": 500
        },
        {
            "code": "MTNData_9259874",
            "name": "MTN 25MB Monthly Bundle",
            "currency": "UGX",
            "price": 1500
        },
        {
            "code": "MTNData_40297551",
            "name": "MTN 512MB Monthly Bundle",
            "currency": "UGX",
            "price": 5500
        },
        {
            "code": "MTNData_49894758",
            "name": "MTN 165MB Daily Bundle",
            "currency": "UGX",
            "price": 1000
        }
    ]
}
Parameter
Type
Description

code

string

The unique code for the service package. During validation, this would be the service code.

name

string

The name of the service package

currency

string

The currency in which the service payment is done

price

Number

The cost of the service package. This is what the merchant pays for the package

{
  "code": 400,
  "status": "error",
  "message": "unrecognized service code",
  "data": {}
}
PreviousServices ListNextService Choices List

Last updated 8 months ago