username:password
Authorization: Basic *****************
curl --location -g --request GET 'https://api-m.sandbox.paypal.com/v1/billing/subscriptions/{{subscription_id}}/transactions?start_time=2022-01-01T00:00:00.000Z&end_time=2030-01-01T00:00:00.000Z' \
--header 'PayPal-Request-Id: ' \
--header 'Authorization: Basic Og=='
{
"transactions": [
{
"status": "COMPLETED",
"id": "84675445GA532204T",
"amount_with_breakdown": {
"gross_amount": {
"currency_code": "USD",
"value": "11.00"
},
"fee_amount": {
"currency_code": "USD",
"value": "0.87"
},
"net_amount": {
"currency_code": "USD",
"value": "10.13"
}
},
"payer_name": {
"given_name": "John",
"surname": "Doe"
},
"payer_email": "sb-va2vu25121657@personal.example.com",
"time": "2023-04-10T19:07:56.000Z"
}
],
"links": [
{
"href": "https://api-m.sandbox.paypal.com/v1/billing/subscriptions/I-2GBPV1D6MTYW/transactions?start_time=2022-01-01T00%3A00%3A00.000Z&end_time=2030-01-01T00%3A00%3A00.000Z",
"rel": "SELF",
"method": "GET"
}
]
}