Update subscription plan

Actualizar el plan de suscripción y los pagos recurrentes. Este servicio le permite actualizar los datos de su plan de suscripción para que no pierda continuidad.

Post a update subscription

POST https://api.stage.localpayment.com/api/subscriptions/plan/:internalId

Headers

Name
Type
Description

Authorization*

String

Mandatory. JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication

Request Body

Name
Type
Description

amount

String

Amount to charge to your end user.

autoRecurring

OBJECT

Subscription properties

autoRecurring.repetitions*

number

How many times this payment will be collected. *For recurrence on demand send the parameter with value=0

autoRecurring.type*

String

Defines the recurring interval unit. Valid values: day, month. *For recurrence on demand send the parameter with value=custom

{
    "internalId": "38a16a07-6616-4a90-82b9-0d7c8e2a2b76",
    "status": {
        "code": "100",
        "description": "ACTIVE",
        "detail": "Subscription plan was update"
    }
}

Update a subscption plan: Example request & response

Note that this request contains optional parameters and objects that can be updated in the subscription.


{
"amount": 150.0,
"autoRecurring": {
    "repetitions": 1,
    "type": "month"
 }
}

Last updated

Was this helpful?