Creates a new subscription for recurring card payments.
monthly: Monthly paymentsyearly: Yearly paymentscustom: Custom periodicity according to plan configurationYYYY-MM-DD format (e.g., “2026-01-01”).| Field | Type | Rules | Description |
|---|---|---|---|
token | string | required, max:60 | Card subscription token |
plan_name | string | required, max:20 | Subscription plan name |
periodicity | string | required | Subscription periodicity |
customer_data | object | required | Customer data |
customer_data.legal_doc | string | required, max:15 | Customer legal document number |
customer_data.legal_doc_type | string | required | Legal document type |
customer_data.phone_code | string | required, max:4 | Country phone code |
customer_data.phone_number | string | required, max:20 | Customer phone number |
customer_data.email | string | required, email, max:255 | Customer email address |
customer_data.full_name | string | required, max:50 | Customer full name |
start_date | string | required, date_format:Y-m-d | Subscription start date (format: YYYY-MM-DD) |
dailyweeklybiweeklymonthlythreefortnightsbimonthlyquarterlyfourmonthshalfyearlyyearlycustomCC - Cédula de CiudadaníaCE - Cédula de ExtranjeríaNIT - Número de Identificación TributariaTI - Tarjeta de IdentidadPAS - Pasaporte+57 - Colombia:attribute es obligatorio. - Required field missing:attribute debe ser una cadena de texto. - Invalid data type (expected string):attribute debe ser un número. - Invalid data type (expected numeric):attribute debe ser un arreglo. - Invalid data type (expected array):attribute debe ser una dirección de correo electrónico válida. - Invalid email format:attribute no puede tener más de :max caracteres. - Maximum length exceeded:attribute debe ser mayor o igual a :min. - Minimum value not met:attribute debe tener el formato YYYY-MM-DD. - Invalid date format:attribute no es válido. - Invalid value"CREATED" when the subscription is created successfullytrue when successful, false when there is an error| Status Code | Description | Response Body |
|---|---|---|
200 OK | Successful operation or business error | status: true for success, status: false for business error |
400 Bad Request | Missing required header (X-Merchant-ID or X-Request-ID) | Simple error message |
401 Unauthorized | Authentication failed (invalid Token-Top or Authorization) | code: "UNAUTHORIZED" |
403 Forbidden | Inactive merchant | code: "ACCESS_DENIED" |
404 Not Found | Merchant not found | code: "NOT_FOUND" |
422 Unprocessable Entity | Validation error in request data | code: "VALIDATION_ERROR" |
500 Internal Server Error | Internal server error | code: "SERVICE_ERROR" |
| Code | Description |
|---|---|
CREATED | Subscription created successfully |
VALIDATION_ERROR | Validation error in sent data |
UNAUTHORIZED | Authentication error |
NOT_FOUND | Merchant not found |
ACCESS_DENIED | Inactive merchant |
SUBSCRIPTION_CREATION_FAILED | Business error when creating subscription (provider, invalid token, etc.) |
SERVICE_ERROR | Internal server error |
Unique identifier of the Merchant invoking Card Payment services. Should not be used to authenticate end users.
Tracking identifier associated with the request, used to establish a correlation_id between ecosystem components.
Token for authentication.
Basic authentication.
Subscription created successfully or business error. Check 'status' field in the body.
Response when creating a subscription. The 'status' field can be true (success) or false (business error) even with HTTP 200.
Response code. Values: 'CREATED' (success), 'SUBSCRIPTION_CREATION_FAILED' (business error)
"CREATED"
Operation status. true for success, false for error
true
Descriptive message about the result
"Suscripción creada exitosamente"