Crear plan
POST https://api.geopagos.io/api/v1.0/plans
Body — application/json
| Campo | Tipo | Requerido | Notas |
|---|---|---|---|
| name | string | Sí | — |
| description | string | No | — |
| pricing_type | string | Sí | Valores: fixed, dynamic |
| amount | number | Condicional | Requerido si pricing_type es fixed |
| currency | string | Sí | — |
| billing_frequency | string | Sí | Valores: weekly, monthly, bimonthly, quarterly, yearly |
| billing_cycles | number | No | Cantidad total de ciclos de facturación |
| billing_day | number | No | Día del mes/semana en que se factura |
| prorate | boolean | No | — |
| billing_month | number | No | — |
| trial_period_days | number | No | — |
| status | string | No | Valores: active, inactive |
| redirect_url | string | No | — |
| external_reference | string | No | — |
| merchant_name | string | Sí | — |
| merchant_fiscal_id | string | No | — |
| merchant_id | number | Sí | — |
| image_content | string | No | Imagen en base64 |
| image_file_name | string | No | — |
| background_color | string | No | — |
Ejemplo de request
curl -X POST "https://api.geopagos.io/api/v1.0/plans" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Plan Mensual",
"pricing_type": "fixed",
"amount": 1000,
"currency": "ARS",
"billing_frequency": "monthly",
"merchant_name": "Mi Comercio",
"merchant_id": 456
}'
Response 2xx — mismo esquema que un ítem de GET /plans.