Lists payins
Lists the requesting client's payins, paginated. Results are ordered by
creation date descending (newest first) unless sort is provided, and can
be narrowed with the filters below.
Authorization
authorization In: header
Query Parameters
Number of the page
11 <= value1Amount of registers that must be listed by page
1010 <= value <= 50010Sort order (defaults to newest first by creation date)
{"field":"inserted_at","type":"desc"}Filter by payment method
"co_breb""co_breb"Filter by payin state
"created" | "awaiting_payment" | "approved_in_provider" | "subaccount_credited" | "rejected" | "failed""created"Filter by distribution trigger
"on_approval" | "on_funds_delivery" | "on_tenant_request""on_approval"Filter by the parent intent's tenant-side identifier
"0ccea785-eec1-412a"Filter by parent intent
^[A-Za-z]{2,7}_[\w-]{22}$"cpint_5tgliBmzjZ6mpQPRbQjfKj"Filter by parent template
^[A-Za-z]{2,7}_[\w-]{22}$"cpitpl_5tgliBmzjZ6mpQPRbQjfKj"Filter by subaccount that owns the payin
^[A-Za-z]{2,7}_[\w-]{22}$"lacc_5tgliBmzjZ6mpQPRbQjfKj"Filter by funding account
^[A-Za-z]{2,7}_[\w-]{22}$"facc_5tgliBmzjZ6mpQPRbQjfKj"Method-specific filters, namespaced by payment method
(e.g. method_data[co_breb][recipient][key_value]).
Filter by payin metadata key-value pairs
{
"id": 3,
"reference": 123
}Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.sandbox.cuentamono.com/v1/core/payins"{
"pagination": {
"page_number": 1,
"page_size": 10,
"total_items": 100,
"total_pages": 10
},
"payins": [
{
"instrument": {
"data": {
"currency_code": "COP",
"number": "94628800123",
"participant_nit": "890903938",
"type": "savings_account"
},
"kind": "co_breb_account",
"payer": {
"data": {
"document_number": "1023711432",
"document_type": "CC",
"names": "Lupita",
"person_type": "natural",
"surnames": "Pérez Gómez"
},
"kind": "co_person"
}
},
"recipient_data": {
"key_type": "alphanumeric",
"key_value": "@MN1A2B3C4D5E",
"payment_id": "CO.COM.CRB.TRXIDP1234567891234"
},
"transaction_data": {
"end_to_end_id": "0198c2f3-9d4a-7b21-9e5f-3a8b2c4d6e7f"
},
"amount": {
"amount": 100000000,
"currency": "COP"
},
"calculated_fees": {
"payin": {
"amount": {
"amount": 100000000,
"currency": "COP"
},
"id": "fee_5tgliBmzjZ6mpQPRbQjfKj"
},
"payin_payer_spread": {
"amount": {
"amount": 100000000,
"currency": "COP"
},
"id": "fee_5tgliBmzjZ6mpQPRbQjfKj"
},
"payin_subaccount_spread": {
"amount": {
"amount": 100000000,
"currency": "COP"
},
"id": "fee_5tgliBmzjZ6mpQPRbQjfKj"
}
},
"funding_account_id": "facc_5tgliBmzjZ6mpQPRbQjfKj",
"funding_amount": {
"amount": 100000000,
"currency": "COP"
},
"funds_delivery_method": "co_breb",
"funds_delivery_mode": "automatic",
"funds_delivery_status": "completed",
"funds_destination": "funding_account",
"id": "cpin_5tgliBmzjZ6mpQPRbQjfKj",
"inserted_at": "2022-01-01T01:00:00Z",
"intent_id": "cpint_5tgliBmzjZ6mpQPRbQjfKj",
"merchant_amount": {
"amount": 100000000,
"currency": "COP"
},
"metadata": {
"id": 3,
"reference": 123
},
"method": "co_breb",
"redirect_url": "https://merchant.example.com/checkout/return",
"settlement_batch_id": "cpisb_5tgliBmzjZ6mpQPRbQjfKj",
"state": "subaccount_credited",
"state_reason": null,
"subaccount_amount": {
"amount": 100000000,
"currency": "COP"
},
"subaccount_disbursement_trigger": "on_approval",
"subaccount_id": "lacc_5tgliBmzjZ6mpQPRbQjfKj",
"template_id": "cpitpl_5tgliBmzjZ6mpQPRbQjfKj",
"updated_at": "2022-01-01T01:00:00Z"
}
]
}{
"code": "401 Unauthorized",
"errors": [
{
"error_code": "missing_authorization_header",
"message": "`Authorization` header is missing.",
"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 Content",
"errors": [
{
"error_code": "invalid_enum",
"message": "The field contains an invalid value.",
"path": "#/path/to/field",
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Validation errors"
}