Find successful subaccount operation
Find successful subaccount operation by external_id
Authorization
authorization
AuthorizationBearer <token>
In: header
Query Parameters
external_idstring
Filter by external id field
Example
"00001"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.cert.monoban.co/v1/ledger/subaccount_operations/find_successful_by?external_id=00001"{
"amount": {
"amount": 100000000,
"currency": "COP"
},
"calculated_fees": {
"account_to_account_fx": {
"amount": {
"amount": 100000000,
"currency": "COP"
},
"id": "fee_5tgliBmzjZ6mpQPRbQjfKj"
},
"account_to_account_fx_spread": {
"amount": {
"amount": 100000000,
"currency": "COP"
},
"id": "fee_5tgliBmzjZ6mpQPRbQjfKj"
}
},
"description": "string",
"destination_account_id": "lacc_5tgliBmzjZ6mpQPRbQjfKj",
"external_id": "string",
"fx_rate": "123.45",
"id": "accop_5tgliBmzjZ6mpQPRbQjfKj",
"metadata": {
"id": 3,
"reference": 123
},
"operation_type": "topup",
"origin_account_id": "lacc_5tgliBmzjZ6mpQPRbQjfKj",
"reference": "string",
"source_amount": {
"amount": 100000000,
"currency": "COP"
},
"state": "created",
"state_reasons": "insufficient_funds",
"target_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": "404 Not Found",
"errors": [
{
"error_code": "item_not_found",
"message": "The item doesn't exist",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Resource not defined"
}{
"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"
}