This will allow retrieve all payment subscriptions within the refund period.

TypeParametersValues
POSTcmd*retrieve_subscriptions_from_lead

* Required field Here is an example:

'lead' => [
    'email' => 'example@email.com'
],
'actions' => [
    '0' => [
        'cmd' => 'retrieve_subscriptions_from_lead'
    ]
]

  Here are the results returned by the request:

ParametersValues
subscriptions_listString (JSON encoded array containing the payment subscriptions for the lead, empty array if no payment subscriptions)
 
JSON parametersValues
subscription_idinteger A unique numeric identifier for the subscription id.
lead_idinteger Id for the lead linked to the transaction.
lead_emailstring Email of the lead linked to the subscription.
subscription_statusstring The subscription status. Possible values: 'Active', 'Terminated', 'Cancelled', 'Paused'
Example of the returned JSON array:
{
    "retrieve_subscriptions_from_lead":{
        "subscriptions_list":[
            {
                "subscription_id":"48110",
                "lead_id":"4174086",
                "lead_email":"example@email.com",
                "subscription_status":"Active"
            },
            {
                "subscription_id":"48112",
                "lead_id":"4174086",
                "lead_email":"example@email.com",
                "subscription_status":"Paused"
            },
        },
    }
}