Bulk subscribe customers to a plan
POST
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
planId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidapplication/json- body
customerIds*array<>Elementos
1 <= itemsname*stringLongitud
1 <= lengthstartDate*stringendDate?stringSuccessful response
application/json- response
schedule*stringValor en
"SUBSCRIPTION_START""PLAN_DATES"billingCycle*|nullcurrency*stringValor en
"VES""USD""EUR"pricingMode*stringValor en
"CURRENCY""REFERENCE"status*stringValor en
"ACTIVE""INACTIVE"lateFeeType*|nulldiscountValueType*|nullid*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidaccountId*stringname*stringdescription*string|nullprice*numberadvanceBillingDays*|nulladvanceDueDateDays*|nullstartDate*stringendDate*string|nulllateFee*number|nulldiscountValue*number|nulldiscountExpiresIn*|nullsingleInvoicePerSubscription*booleancreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.unopago.com/v1/plans/string/subscriptions/bulk' \ -H 'Content-Type: application/json' \ -d '{ "customerIds": [ "string" ], "name": "string", "startDate": "string"}'Ejemplo de respuesta
{ "schedule": "SUBSCRIPTION_START", "billingCycle": "WEEKLY", "currency": "VES", "pricingMode": "CURRENCY", "status": "ACTIVE", "lateFeeType": "PERCENTAGE", "discountValueType": "PERCENTAGE", "id": "string", "accountId": "string", "name": "string", "description": "string", "price": 0, "advanceBillingDays": -9007199254740991, "advanceDueDateDays": -9007199254740991, "startDate": "string", "endDate": "string", "lateFee": 0, "discountValue": 0, "discountExpiresIn": -9007199254740991, "singleInvoicePerSubscription": true, "createdAt": "string", "updatedAt": "string"}Subscribe to a plan POST
Anterior
Unsubscribe from a plan DELETE
Deletes a subscription that has no orders. A subscription with orders is ended instead: it becomes INACTIVE, its end date moves to the day before its first unbilled cycle, and its orders are kept. Ending one that is already inactive succeeds without changes.

