Mercado Pago - Cancel/Pause Subscription
Description
Section titled “Description”Cancels, pauses, or reactivates a subscription in Mercado Pago. Allows managing the lifecycle of recurring subscriptions (preapproval).
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credential | Yes | Mercado Pago credentials |
| preapproval_id | string | Yes | Subscription ID |
| action | select | No | Action: cancel, pause, or reactivate |
Credentials
Section titled “Credentials”This module requires a mercadopago type credential with the following fields:
- Access Token: Mercado Pago access token (obtained from the developer dashboard)
Available Actions
Section titled “Available Actions”| Action | Description | Resulting Status |
|---|---|---|
| cancel | Cancels permanently | cancelled |
| pause | Pauses temporarily | paused |
| reactivate | Reactivates a paused one | authorized |
Output
Section titled “Output”{ "success": true, "subscription": { "id": "2c9380848...", "status": "cancelled", ... }, "preapproval_id": "2c9380848...", "status": "cancelled", "action": "cancel", "message": "Suscripción 2c9380848... cancelada"}State Transitions
Section titled “State Transitions”pending -> authorized (user authorizes)authorized -> paused (action: pause)paused -> authorized (action: reactivate)authorized -> cancelled (action: cancel)paused -> cancelled (action: cancel)Usage Example
Section titled “Usage Example”- Pause subscription when the user requests it
- Reactivate when the user wants to resume
- Cancel when the user permanently unsubscribes
API Used
Section titled “API Used”- Endpoint:
PUT /preapproval/{id} - Documentation: Mercado Pago Subscriptions API
- Cancel: The subscription ends permanently. No more charges can be made.
- Pause: The subscription stops temporarily. No installments are charged while paused.
- Reactivate: Resumes charges for a paused subscription.
Related Nodes
Section titled “Related Nodes”- MercadopagoCreateSubscription - Create subscription
- MercadopagoGetSubscriptions - Get subscriptions