Skip to content

Get Service Inventory

GET /api-access/api/service-inventory/momo-providers

Get service inventory for mobile money providers.

Authentication

Required Headers:

Authorization: HMAC-SHA256 PUBLIC_KEY:PRIVATE_KEY
X-Origin: third-party-api
X-Timestamp: 2025-10-12T14:30:00.000Z
Content-Type: application/json

Request

Query Parameters:

ParameterTypeRequiredDescriptionAvailable Values
countrystringNoThe country to get the mobile money providers forbj, bf, ci, gw, ml, ne, sn, tg

Response

Success Response (200):

json
{
  "data": [
    {
      "country": "string",
      "currency": "string",
      "transaction_type": "payin",
      "enabled": true,
      "operator": "string"
    }
  ],
  "success": true,
  "message": "string",
  "detail": {}
}

Response Fields:

FieldTypeDescription
dataarrayArray of service inventory objects
data[].countrystringCountry code
data[].currencystringCurrency code
data[].transaction_typestringTransaction type (e.g., payin, payout)
data[].enabledbooleanWhether the service is enabled
data[].operatorstringMobile money operator name

Example

bash
curl -X GET "https://sandbox.mara.boo/api-access/api/service-inventory/momo-providers?country=bj" \
  -H "Authorization: HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY" \
  -H "X-Origin: third-party-api" \
  -H "X-Timestamp: 2025-10-12T14:30:00.000Z" \
  -H "Content-Type: application/json"
javascript
const response = await fetch('https://sandbox.mara.boo/api-access/api/service-inventory/momo-providers?country=bj', {
  method: 'GET',
  headers: {
    'Authorization': 'HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY',
    'X-Origin': 'third-party-api',
    'X-Timestamp': '2025-10-12T14:30:00.000Z',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
python
import requests

response = requests.get(
    'https://sandbox.mara.boo/api-access/api/service-inventory/momo-providers',
    params={'country': 'bj'},
    headers={
        'Authorization': 'HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY',
        'X-Origin': 'third-party-api',
        'X-Timestamp': '2025-10-12T14:30:00.000Z',
        'Content-Type': 'application/json'
    }
)

data = response.json()

Error Responses

Status CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid authentication
403Forbidden - Missing required headers
500Internal Server Error