List subscription transactions
GET https://api.ecurring.com/subscriptions/{id}/transactions
Transaction collections are currently only available as a sub-resource of a subscription.
After a subscription is activated it can take up to 20 minutes before all transactions are scheduled and returned from the API.
Pagination is not available on this endpoint.
Parameters
Replace {id}
in the URL with the unique identifier of the subscription.
Response
meta
object |
An object containing some meta information about the response.
|
||
data
object |
A list of transaction objects as described in Get transactions |
Example
{
"meta": {
"total": 60
},
"data": [
{
"type": "transaction",
"id": "dfd05579-216f-4b99-3bad-9a8ae6f27a0f",
"links": {
"self": "https://api.ecurring.com/transactions/dfd05579-216f-4b99-3bad-9a8ae6f27a0f"
},
"attributes": {
"status": "fulfilled",
"scheduled_on": "2017-10-27T14:50:00+02:00",
"due_date": "2017-11-05T00:00:00+01:00",
"amount": 57.5,
"canceled_on": null,
"webhook_url": null,
"history": [
{
"attempt": 1,
"reason": null,
"reason_code": null,
"recorded_on": "2017-10-27T14:50:00+02:00",
"status": "scheduled",
"new_due_date": null
},
{
"attempt": 1,
"reason": null,
"reason_code": null,
"recorded_on": "2017-11-06T07:00:18+01:00",
"status": "succeeded",
"new_due_date": null
},
{
"attempt": 1,
"reason": null,
"reason_code": null,
"recorded_on": "2017-11-08T04:14:30+01:00",
"status": "fulfilled",
"new_due_date": null
}
]
}
},
{
"type": "transaction",
"id": "9f3c2e25-3bad-493a-a5fb-f6dedd32146d",
"links": {
"self": "https://api.ecurring.com/transactions/9f3c2e25-3bad-493a-a5fb-f6dedd32146d"
},
"attributes": {
"status": "scheduled",
"scheduled_on": "2017-10-27T14:50:01+02:00",
"due_date": "2018-02-05T00:00:00+01:00",
"amount": 57.5,
"canceled_on": null,
"webhook_url": null,
"history": [
{
"attempt": 1,
"reason": null,
"reason_code": null,
"recorded_on": "2017-10-27T14:50:01+02:00",
"status": "scheduled",
"new_due_date": null
}
]
}
},
{ ... }
]
}