List spending control's targets
You can use this endpoint to list spending control's targets
Authorization
authorization
AuthorizationBearer <token>
In: header
Path Parameters
spending_control_idstring
Spending control ID (Base 62 format)
Match
^[A-Za-z]{2,6}_[\w-]{22}$Example
"spc_5tgliBmzjZ6mpQPRbQjfKj"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
10Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.cert.monoban.co/v1/spending_controls/spc_5tgliBmzjZ6mpQPRbQjfKj/targets"{
"pagination": {
"page_number": 1,
"page_size": 10,
"total_items": 100,
"total_pages": 10
},
"target_type": "card",
"targets": [
"car_5tgliBmzjZ6mpQPRbQjfKj"
]
}{
"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"
}