Endpoint
Headers
Bearer token. Format:
Bearer <token>The ID of the organization whose payment methods you want to retrieve.
Response
true on a successful request.Array of saved payment method objects.
Retrieve all payment methods saved to the active organization. Returns masked card details (last 4 digits, expiry) and registered M-Pesa phone numbers.
GET /v1/billing/methods
Bearer <token>true on a successful request.Show properties
card or mobile_money.visa, mastercard). null for mobile money methods.null for mobile money methods.null for mobile money methods.null for mobile money methods.mpesa). null for card methods.null for card methods.curl --request GET \
--url https://api.nyotaimara.com/v1/billing/methods \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <org-id>'
{
"success": true,
"data": [
{
"id": "pm_01j9k2x...",
"channel": "card",
"cardType": "visa",
"last4": "4242",
"expMonth": 12,
"expYear": 2027,
"network": null,
"phone": null
},
{
"id": "pm_01j9k3y...",
"channel": "mobile_money",
"cardType": null,
"last4": null,
"expMonth": null,
"expYear": null,
"network": "mpesa",
"phone": "+254712345678"
}
]
}