List cards
List cards. the result will include the cards with the paging information
Authorization
authorization
AuthorizationBearer <token>
In: header
Query Parameters
page_number?integer
Number of the page
Default
1Range
1 <= valueExample
1page_size?integer
Amount of registers that must be listed by page
Default
10Range
10 <= value <= 500Example
10account_id?array<string>|string
Filter by one or many account IDs.
type?string
Filter by one or many account IDs.
Value in
"virtual" | "plastic"Example
"virtual"state?array<string>|string
Filter by one or many account IDs.
Default
["active","frozen"]Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.cert.monoban.co/v1/cards"{
"cards": [
{
"account_id": "lacc_5tgliBmzjZ6mpQPRbQjfKj",
"cardholder": {
"address": {
"city": "Chapinero",
"country": "CO",
"extra": "Location near the southeast corner in front of the ABC mall. deliver to the security guard pedro pruebas",
"line_1": "Calle 97 # 15-24",
"line_2": "Apto. 208",
"state": "Bogota D.C",
"zip_code": "110221"
},
"birthdate": "1941-09-09",
"document": {
"country_code": "CO",
"number": "1023711432",
"person_type": "natural",
"type": "CC"
},
"email": "someone@gmail.com",
"first_name": "Dennis",
"id": "carh_5tgliBmzjZ6mpQPRbQjfKj",
"last_name": "Alistair",
"middle_name": "Mac",
"nationality": "CO",
"phone_number": "+573000000000",
"second_last_name": "Ritchie"
},
"cardholder_id": "carh_5tgliBmzjZ6mpQPRbQjfKj",
"configuration_group_id": "ccg_5tgliBmzjZ6mpQPRbQjfKj",
"id": "car_5tgliBmzjZ6mpQPRbQjfKj",
"last_four": "0745",
"nickname": "Travel card",
"spending_controls": {
"card_target": "spc_5tgliBmzjZ6mpQPRbQjfKj",
"configuration_group_target": "spc_5tgliBmzjZ6mpQPRbQjfKj"
},
"state": "active",
"type": "virtual"
}
],
"pagination": {
"page_number": 1,
"page_size": 10,
"total_items": 100,
"total_pages": 10
}
}{
"code": "400 Bad Request",
"errors": [
{
"error_code": "validation_error",
"message": "Generic changeset errors",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Malformed request"
}{
"code": "401 Unauthorized",
"errors": [
{
"error_code": "expired_token",
"message": "The token is expired, inactive, or doesn't exist.",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Authorization header is missing or invalid."
}{
"code": "403 Forbidden",
"errors": [
{
"error_code": "not_authorized",
"message": "Not authorized to have access to this resource.",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Not authorized to have access to this resource"
}{
"code": "422 Unprocessable Entity",
"errors": [
{
"error_code": "missing_field",
"message": "The field is missing on the request body or parameters.",
"path": "#/path/to/field",
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Validation errors"
}