SiPagoDocs
Docs para IA

Crear plan

POST https://api.geopagos.io/api/v1.0/plans

Body — application/json

CampoTipoRequeridoNotas
namestringSí—
descriptionstringNo—
pricing_typestringSíValores: fixed, dynamic
amountnumberCondicionalRequerido si pricing_type es fixed
currencystringSí—
billing_frequencystringSíValores: weekly, monthly, bimonthly, quarterly, yearly
billing_cyclesnumberNoCantidad total de ciclos de facturación
billing_daynumberNoDía del mes/semana en que se factura
proratebooleanNo—
billing_monthnumberNo—
trial_period_daysnumberNo—
statusstringNoValores: active, inactive
redirect_urlstringNo—
external_referencestringNo—
merchant_namestringSí—
merchant_fiscal_idstringNo—
merchant_idnumberSí—
image_contentstringNoImagen en base64
image_file_namestringNo—
background_colorstringNo—

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.