All URIs are relative to https://api.paystack.co
| Method | HTTP request | Description |
|---|---|---|
| avs | GET /address_verification/states | List States (AVS) |
| fetch_banks | GET /bank | Fetch Banks |
| list_countries | GET /country | List Countries |
| resolve_account_number | GET /bank/resolve | Resolve Account Number |
| resolve_card_bin | GET /decision/bin/{bin} | Resolve Card BIN |
Response avs(type=type, country=country, currency=currency)
List States (AVS)
- Bearer Authentication (bearerAuth):
import paystack
from pprint import pprint
# Set your API key based on domain (test or live mode)
paystack.api_key = 'sk_domain_xxxxxxxx'
# List States (AVS)
response = paystack.Verification.avs(
)
pprint(response)| Name | Type | Description | Notes |
|---|---|---|---|
| type | str | [optional] | |
| country | str | [optional] | |
| currency | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Request successful | - |
| 401 | Unauthorized operation | - |
| 404 | Entity not found | - |
| 0 | Server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response fetch_banks(country=country, pay_with_bank_transfer=pay_with_bank_transfer, use_cursor=use_cursor, per_page=per_page, next=next, previous=previous, gateway=gateway)
Fetch Banks
- Bearer Authentication (bearerAuth):
import paystack
from pprint import pprint
# Set your API key based on domain (test or live mode)
paystack.api_key = 'sk_domain_xxxxxxxx'
# Fetch Banks
response = paystack.Verification.fetch_banks(
)
pprint(response)| Name | Type | Description | Notes |
|---|---|---|---|
| country | str | [optional] | |
| pay_with_bank_transfer | bool | [optional] | |
| use_cursor | bool | [optional] | |
| per_page | int | [optional] | |
| next | str | [optional] | |
| previous | str | [optional] | |
| gateway | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Request successful | - |
| 401 | Unauthorized operation | - |
| 404 | Entity not found | - |
| 0 | Server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response list_countries()
List Countries
- Bearer Authentication (bearerAuth):
import paystack
from pprint import pprint
# Set your API key based on domain (test or live mode)
paystack.api_key = 'sk_domain_xxxxxxxx'
# List Countries
response = paystack.Verification.list_countries()
pprint(response)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Request successful | - |
| 401 | Unauthorized operation | - |
| 404 | Entity not found | - |
| 0 | Server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response resolve_account_number(account_number=account_number, bank_code=bank_code)
Resolve Account Number
- Bearer Authentication (bearerAuth):
import paystack
from pprint import pprint
# Set your API key based on domain (test or live mode)
paystack.api_key = 'sk_domain_xxxxxxxx'
# Resolve Account Number
response = paystack.Verification.resolve_account_number(
)
pprint(response)| Name | Type | Description | Notes |
|---|---|---|---|
| account_number | int | [optional] | |
| bank_code | int | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Request successful | - |
| 401 | Unauthorized operation | - |
| 404 | Entity not found | - |
| 0 | Server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response resolve_card_bin(bin)
Resolve Card BIN
- Bearer Authentication (bearerAuth):
import paystack
from pprint import pprint
# Set your API key based on domain (test or live mode)
paystack.api_key = 'sk_domain_xxxxxxxx'
bin = 'bin_example' # str |
# Resolve Card BIN
response = paystack.Verification.resolve_card_bin(
bin,
)
pprint(response)| Name | Type | Description | Notes |
|---|---|---|---|
| bin | str |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Request successful | - |
| 401 | Unauthorized operation | - |
| 404 | Entity not found | - |
| 0 | Server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]