Preview: the API is being built and these endpoints may change
GET/api/v1/vendor-only-plans
List vendor-only plans
Your own plans, sold only through your vendors, to sell by code.
Returns your active vendor-only plans. These are your own plans, sold only through your vendor accounts and never through SIMs, so they are not in List plans.
To sell one, send its code as product_code:
- Data: Buy data with the code and the number.
- Airtime: Send airtime with the code, the number and
amount, whole naira from 50 to 50,000. - Electricity: Pay electricity with
amount, whole naira from 1,000 to 500,000. - Cable: Pay cable TV. The bouquet sets the price.
What you pay
The vendor's price comes from your wallet at that vendor. Your SimConnectNG wallet pays only the fee for the plan's network and service: a percentage of the vendor's price, or of the amount for airtime and electricity, between a minimum and a maximum. See the fees under Prices in the dashboard. A live sale with no fee set for that network and service is refused. In test mode it is free and runs on the test vendor.
Request
curl https://api.simconnectng.com/api/v1/vendor-only-plans \
-H "Authorization: Bearer $SIMCONNECT_KEY"Response
{
"success": true,
"data": {
"items": [
{ "code": "vendor:mtn-sme-1gb", "name": "MTN SME 1GB", "network": "mtn", "service": "data" },
{ "code": "vendor:dstv-padi", "name": "DStv Padi", "network": "dstv", "service": "cable_tv" }
]
},
"message": "OK",
"code": "OK"
}Error
Selling a code that is not yours, or is switched off:
{
"success": false,
"data": { "errors": [{ "field": "product_code", "message": "is not one of your vendor-only plans, or it is switched off" }] },
"message": "Invalid request",
"code": "VALIDATION_FAILED"
}Give this to your coding agent
Read https://simconnectng.com/docs/api/list-vendor-only-plans.md and implement "List vendor-only plans" (GET /api/v1/vendor-only-plans) in this project.
Read the API key from the SIMCONNECT_KEY environment variable.
Every response is { success, data, message, code }; on an error data is null (or carries data.errors), so branch on code.