Mono Colombia

Create wallet user batch

Creates a batch of wallet users, each one with its account and, when requested, its virtual card.

Each user is identified by its external_id, so a batch can be sent again safely:

  • If the external_id already belongs to a wallet user, or to a previous user of the same request that was accepted, the user is returned as a duplicated user and nothing is created for it.
  • If a user has a validation error, it is returned as a rejected user without affecting the other users or the batch processing.
  • The other users are returned as accepted users in the processing state and are created asynchronously. You can use the endpoint /v1/core/wallet/users to get the state of each one, or subscribe to the wallet_user_created and wallet_user_failed webhooks to be notified of each one.

Considerations:

  1. The minimum number of users allowed per batch is 1.
  2. The maximum number of users allowed per batch is 1.000.
  3. A request that does not match this schema is not processed: the response is a 422 and no user is created.
  4. The client must have a wallet; otherwise the response is a 403 with the feature_not_enabled error code.
POST
/v1/core/wallet/user_batches

Autorización

AutorizaciónBearer <token>

En: header

Cuerpo de la solicitud

application/json

Batch of wallet users

Definiciones de TypeScript

Usa el tipo request body en TypeScript.

usersarray<object>

It contains a list with the wallet users to create

Items1 <= items <= 1000

Cuerpo de la respuesta

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.sandbox.cuentamono.com/v1/core/wallet/user_batches" \  -H "Content-Type: application/json" \  -d '{    "users": [      {        "address": {          "city": "Chapinero",          "country": "CO",          "line_1": "Calle 97 # 15-24",          "state": "Bogota D.C",          "zip_code": "110221"        },        "birth_date": "1990-04-15",        "create_virtual_card": false,        "currency_code": "COP",        "document_number": "1020304050",        "document_type": "CC",        "email": "ana.gomez@example.com",        "external_id": "00001",        "first_name": "Ana",        "last_name": "Gómez",        "nationality": "CO",        "phone": "+573001234567",        "tag_format": "email"      }    ]  }'
{
  "accepted_users": [
    {
      "address": {
        "city": "Bogotá",
        "country": "CO",
        "extra": null,
        "line_1": "Calle 93 # 11-26",
        "line_2": null,
        "state": "Cundinamarca",
        "zip_code": "110221"
      },
      "birth_date": "1990-04-15",
      "create_virtual_card": true,
      "currency_code": "COP",
      "document_number": "1020304050",
      "document_type": "CC",
      "email": "ana.gomez@example.com",
      "external_id": "00001",
      "first_name": "Ana",
      "id": "wusr_5tgliBmzjZ6mpQPRbQjfKj",
      "inserted_at": "2026-11-25T15:04:05.000000Z",
      "last_name": "Gómez",
      "middle_name": null,
      "nationality": "CO",
      "phone": "+573001234567",
      "second_last_name": null,
      "state": "processing",
      "state_reason": null,
      "tag_format": "email",
      "updated_at": "2026-11-25T15:04:05.000000Z"
    }
  ],
  "duplicated_users": [
    {
      "address": {
        "city": "Bogotá",
        "country": "CO",
        "extra": null,
        "line_1": "Calle 93 # 11-26",
        "line_2": null,
        "state": "Cundinamarca",
        "zip_code": "110221"
      },
      "birth_date": "1990-04-15",
      "create_virtual_card": true,
      "currency_code": "COP",
      "document_number": "1020304051",
      "document_type": "CC",
      "email": "luis.rojas@example.com",
      "external_id": "00002",
      "first_name": "Luis",
      "id": "wusr_02zQx9O2ngBg0WY5R0hU4P",
      "inserted_at": "2026-11-20T10:00:00.000000Z",
      "last_name": "Rojas",
      "middle_name": null,
      "nationality": "CO",
      "phone": "+573001234568",
      "second_last_name": null,
      "state": "active",
      "state_reason": null,
      "tag_format": "email",
      "updated_at": "2026-11-21T08:30:00.000000Z"
    }
  ],
  "id": "wusb_5tgliBmzjZ6mpQPRbQjfKj",
  "inserted_at": "2026-11-25T15:04:05.000000Z",
  "rejected_users": [
    {
      "error_code": "already_taken",
      "external_id": "00003",
      "message": "email already belongs to a wallet user"
    }
  ],
  "state": "created",
  "updated_at": "2026-11-25T15:04:05.000000Z"
}
{
  "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 Content",
  "errors": [
    {
      "error_code": "invalid_format",
      "message": "#/users/0/phone: Invalid format. Expected ~r/^\\+[1-9]\\d{1,14}$/",
      "path": "/users/0/phone",
      "url": ""
    },
    {
      "error_code": "invalid_format",
      "message": "#/users/0/email: Invalid format. Expected ~r/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+){1,2}$/",
      "path": "/users/0/email",
      "url": ""
    }
  ],
  "id": "log_5tgliBmzjZ6mpQPRbQjfKj",
  "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"
}