Resolves a Bre-B target
Endpoint to resolve a Bre-B target for payouts synchronously
Authorization
authorization
AuthorizationBearer <token>
In: header
Request Body
application/json
Attributes to resolve a Bre-B target
account_idstring
A core account identifier
Match
^[A-Za-z]{2,6}_[\w-]{22}$Example
"lacc_5tgliBmzjZ6mpQPRbQjfKj"formatstring
Format of the target value. Only 'plain_key' is supported currently.
Value in
"plain_key"Example
"plain_key"valuestring
The target value to resolve
Length
6 <= lengthExample
"@joe123"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.cert.monoban.co/v1/core/payouts/co_breb/targets/resolve" \ -H "Content-Type: application/json" \ -d '{ "account_id": "lacc_5tgliBmzjZ6mpQPRbQjfKj", "format": "plain_key", "value": "@joe123" }'{
"creditor": {
"document_number": "123456789",
"document_type": "CC",
"full_name": "JHON DOE SMITH JOHNSON",
"type": "natural"
},
"creditor_account": {
"currency_code": "COP",
"number": "00001213132",
"type": "savings_account"
},
"id": "bbtgt_5tgliBmzjZ6mpQPRbQjfKj",
"key_type": "alphanumeric",
"key_value": "@joe123",
"payment_id": "1234",
"resolution_type": "plain_key",
"spbvi": "CRB",
"transaction_amount": {
"amount": 100000000,
"currency": "COP"
}
}{
"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"
}{
"code": "503 Service Unavailable",
"errors": [
{
"error_code": "service_is_unavailable",
"message": "The service is unavailable, Please try again later",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Service unavailable"
}