Mono Colombia

Generate a URL to activate a plastic card

Create a URL to activate a plastic card

POST
/v1/cards/activation_links

Authorization

authorization

AuthorizationBearer <token>

In: header

Header Parameters

x-idempotency-key?string

Idempotency key in UUID v4 format

Formatuuid
Example"f30f1d0b-795f-49f5-80dc-41a7bffccfde"

Request Body

application/json

Attributes for activate plastic card

account_idstring

Account ID acc_5tgliBmzjZ6mpQPRbQjfKj or lacc_5tgliBmzjZ6mpQPRbQjfKj

Match^[A-Za-z]{2,6}_[\w-]{22}$
Example"acc_5tgliBmzjZ6mpQPRbQjfKj"
cardholder_idstring

Cardholder ID

Match^[A-Za-z]{2,6}_[\w-]{22}$
Example"carh_5tgliBmzjZ6mpQPRbQjfKj"
configuration_group_idstring

Card Config Group ID

Match^[A-Za-z]{2,6}_[\w-]{22}$
Example"ccg_5tgliBmzjZ6mpQPRbQjfKj"
nickname?string|null

Card nickname

Length5 <= length
Example"Travel card"
spending_control_id?string|null

Spending Control ID with type card

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

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.cert.monoban.co/v1/cards/activation_links" \  -H "Content-Type: application/json" \  -d '{    "account_id": "acc_5tgliBmzjZ6mpQPRbQjfKj",    "cardholder_id": "carh_5tgliBmzjZ6mpQPRbQjfKj",    "configuration_group_id": "ccg_5tgliBmzjZ6mpQPRbQjfKj"  }'
{
  "account_id": "acc_5tgliBmzjZ6mpQPRbQjfKj",
  "card_id": "car_5tgliBmzjZ6mpQPRbQjfKj",
  "cardholder_id": "carh_5tgliBmzjZ6mpQPRbQjfKj",
  "configuration_group_id": "ccg_5tgliBmzjZ6mpQPRbQjfKj",
  "id": "pca_5tgliBmzjZ6mpQPRbQjfKj",
  "inserted_at": "2022-01-01T01:00:00Z",
  "nickname": "Travel card",
  "spending_control_id": "spc_5tgliBmzjZ6mpQPRbQjfKj",
  "state": "pending",
  "updated_at": "2022-01-01T01:00:00Z",
  "url": "https://api.cuentamono.com/v1/cards/activation_links/pca_02wI65FjIGkn1xKeYMqdey"
}
{
  "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"
}