Mono Colombia

Get list of collection intents

This endpoint allows you to list your collection intents, optionally filtered by state, account. and collection link id

GET
/v1/collection_intents

Authorization

authorization

AuthorizationBearer <token>

In: header

Query Parameters

page_number?integer

Page number

Default1
Example1
page_size?integer

Page size

Default10
Example10
account_id?string

Account ID (Base 62 format)

Match^[A-Za-z]{2,6}_[\w-]{22}$
Example"clink_5tgliBmzjZ6mpQPRbQjfKj"
collection_link_id?string

Collection link ID (Base 62 format)

Match^[A-Za-z]{2,6}_[\w-]{22}$
Example"clink_5tgliBmzjZ6mpQPRbQjfKj"
state?string

State of the collection intents

Default"all"
Value in"all" | "created" | "in_progress" | "approved_in_provider" | "account_credited" | "failed"
Example"approved_in_provider"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.cert.monoban.co/v1/collection_intents"
{
  "collection_intents": [
    {
      "account_id": "acc_5tgliBmzjZ6mpQPRbQjfKj",
      "amount": {
        "amount": 100000000,
        "currency": "COP"
      },
      "bank_code": "1007",
      "id": "cint_5tgliBmzjZ6mpQPRbQjfKj",
      "inserted_at": "2022-01-01T01:00:00Z",
      "ip": "88.221.182.60",
      "note": "February payment",
      "payer": {
        "document_number": "1099711789",
        "document_type": "CC",
        "email": "someone@gmail.com",
        "name": "Martina Brooks",
        "person_type": "natural",
        "phone_number": "+573000000000"
      },
      "payment": {
        "provider": "pse",
        "transaction_id": "1115065899",
        "url": "https://registro.desarrollo.pse.com.co/PSENF/index.html?enc=123"
      },
      "realtime_transfer": false,
      "redirect_url": "https://my-page/voucher/ID_123",
      "reference": "REF. #5578136",
      "state": "created",
      "updated_at": "2022-01-01T01:00:00Z"
    }
  ],
  "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"
}