This will allow you to retrieve all payment transaction for a lead.

TypeParametersValues
POSTcmd*retrieve_transactions_from_lead

* Required field Here is an example:

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

  Here are the results returned by the request:

ParametersValues
transaction_listString (JSON encoded array containing the transactions for the lead, empty array if no transactions)
 
JSON parametersValues
transaction_idinteger A unique numeric identifier for the transaction id.
lead_idinteger Id for the lead linked to the transaction.
lead_emailstring Email of the lead at the moment of the transaction.
transaction_typestring The transaction type. Possible values: 'sale', 'refund', 'failed', 'rebill', 'cancellation', 'chargeback', 'partial_refund'
Example of the returned JSON array:
{
    "retrieve_transactions_from_lead":{
        "transaction_list":[
            {
                "transaction_id":"48110",
                "lead_id":"4174086",
                "lead_email":"example@email.com",
                "transaction_type":"sale"
            },
            {
                "transaction_id":"48112",
                "lead_id":"4174086",
                "lead_email":"example@email.com",
                "transaction_type":"refund"
            },
        },
    }
}