Country
A country where Kashimi supports payment providers.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/capabilities/providers/countries |
list |
The list of provider countries has been retrieved successfully |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
countrys, err := client.Country(nil).List(nil, nil)
if err != nil {
panic(err)
}
fmt.Println(countrys)
Lua
Construct client as shown in the Lua setup, then call the operations:
local countrys, err = client:Country():list()
PHP
Construct client as shown in the PHP setup, then call the operations:
$countrys = $client->Country()->list();
Python
Construct client as shown in the Python setup, then call the operations:
countrys = client.Country().list()
Ruby
Construct client as shown in the Ruby setup, then call the operations:
countrys = client.Country.list()
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const countrys = await client.Country().list()
Fields
| Field | Type | Required | Description |
|---|
list
GET /api/v1/capabilities/providers/countries
Operation ID: ProvidersController_getCountries_v1.
Authentication: credential (bearer).
Responses
200: The list of provider countries has been retrieved successfully
application/json
The response is array of string.
401: Your access token was either not passed with the request, or it is invalid (for example expired or malformed). Make sure to pass the token in the Authorization header, and obtain a new one if it has expired
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes | Error message |
statusCode |
number |
Yes | HTTP status code |
title |
string |
Yes | Name of the error |
Example response:
{
"message": "Unauthorized",
"statusCode": 401,
"title": "Unauthorized"
}
403: You do not have the necessary permissions to perform this action
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes | Error message |
statusCode |
number |
Yes | HTTP status code |
title |
string |
Yes | Name of the error |
Example response:
{
"message": "Access denied",
"statusCode": 403,
"title": "Forbidden"
}