Skip to content

Meta

Request

GET https://api-dev.spay.ng/api/v1/meta/institutions
Authorization: Bearer <access-token>
Accept: application/json
curl
curl 'https://api-dev.spay.ng/api/v1/meta/institutions' \
-H "Authorization: Bearer $SPAY_ACCESS_TOKEN" \
-H "Accept: application/json"

No request body.

Response: 200 OK

[
{
"institutionCode": "999488",
"name": "Indulge MFB"
},
{
"institutionCode": "000013",
"name": "Example Bank"
}
]

Response fields

FieldTypeDescription
[].institutionCodestringThe institution’s code, sent as destinationBankCode.
[].namestringThe institution’s name.
  • Spay’s own institution is listed first.

Errors

HTTP statusBody
401{"error":{"code":"63","message":"Missing, invalid or expired access token"}}
403{"error":{"code":"63","message":"Operation not permitted"}}
503{"error":{"code":"91","message":"Service unavailable"}}

Request

GET https://api-dev.spay.ng/api/v1/meta/account-types
Authorization: Bearer <access-token>
Accept: application/json
curl
curl 'https://api-dev.spay.ng/api/v1/meta/account-types' \
-H "Authorization: Bearer $SPAY_ACCESS_TOKEN" \
-H "Accept: application/json"

No request body.

Response: 200 OK

[
{
"id": "33333333-3333-4333-8333-333333333333",
"name": "POS_BUSINESS",
"description": "POS Business Account",
"customerType": "BUSINESS",
"currency": "NGN"
}
]

Response fields

FieldTypeDescription
[].idstring, UUIDThe account type’s id. Pass it as accountTypeId when opening an account.
[].namestringA short code for the account type.
[].descriptionstringThe label to show.
[].customerTypeenum: RETAIL, BUSINESSThe kind of customer the type is for.
[].currencystring, NGNThe account currency.

Errors

HTTP statusBody
401{"error":{"code":"63","message":"Missing, invalid or expired access token"}}
403{"error":{"code":"63","message":"Operation not permitted"}}
503{"error":{"code":"91","message":"Service unavailable"}}