Get All Transactions
GET/subscriptions/:subscriptionId/billing-cycles/:billingCycleId/transactions
Returns a list of all transactions linked to a specific subscription and billing cycle with pagination. It shows the transactions executions linked to the specific cycle including the retries.
The request must provide the following header: x-api-key: {merchantKey}
Request
Path Parameters
Unique Identifier of the created Subscription. Format: Subscription + - + <UUID>
Subscription-c111d61c-54c8-45a8-86e5-71b461d54b9aUnique Identifier of the created Billing Cycle. Format: BillingCycle + - + <UUID>
BillingCycle-44401c1b-c762-42dd-81bc-fd1fbad54af2Query Parameters
Number of the page for which the data is to be returned.
Number of the records to display per page.
Number of total records (Transactions) returned for the made search/request.
Number of pages returned for the made search/request.
List of all the Transactions linked to the specified subscription and billing cycle. For the Transaction output parameters specification, please refer to transaction in the page Data Model.
Header Parameters
Must be application/json
Must be be en-US
The origin of the request
The client making the request
x-api-key: {merchantKey}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- Array [
- ]
- ]
Number of the page for which the data is returned.
Number of the records displayed per page.
Number of total records (Transactions) returned for the made search/request.
Number of pages returned for the made search/request.
data object[]
Unique Identifier of the Transaction. Format: Transaction + - + <UUID>
Transaction-5f391daa-80a8-4292-96d9-3fdc1a12192bCustomer Account ID - A unique identifier provided by the integrating merchant.
Possible values: <= 125 characters
NewcustomerTestPy14The stored payment instrument reference.
Possible values: <= 255 characters
8ac7a49f790baf4001790eb90ee26064Your unique reference for the requested transaction.
Possible values: <= 255 characters
4d875985-f9a2-4eb5-8dff-73b64c8915a7SmartPay transaction Id, could be used to call SmartPay modification APIs (e.g., refund).
Possible values: <= 255 characters
aeaabe56-3c05-44fb-9f19-9f27074ef5a4External payment provider unique transaction identifier.
Possible values: <= 255 characters
pzFdwq0ImRFYGYuq41xCHStatus of the transaction.
capturedpayment objectrequired
Payment details of the Subscription created inherited from the provided plan. Please refer to Data Model for details.
Description of the payment or plan.
Possible values: <= 60 characters
Premium sub for only 90.99 EUR!Recurrent amount to charge the customer.
Possible values: <= 60 characters
90.99Currency of the charges. Format ISO 4217.
Possible values: >= 3 characters and <= 3 characters
EURbillingAddress objectrequired
Billing or shipping address of the consumer. Please refer to Data Model for details.
Address line 1.
Possible values: <= 60 characters
LeopoldstrasseAddress line 2.
Possible values: <= 60 characters
Address line 3.
Possible values: <= 60 characters
House number/building number.
Possible values: <= 10 characters
244City name of the address.
Possible values: <= 50 characters
MunichPostal code of the address.
Possible values: <= 10 characters
80807Country code. Could be 2 or 3 characters depending on the format used. Format ISO 3166 ALPHA-2 or ISO 3166 ALPHA-3.
Possible values: >= 2 characters and <= 3 characters
DEState. Could be 2 or 3 characters depending on the state. This field is mandatory when the countryCode is US, USA, CA or CAN.
Possible values: <= 3 characters
shippingAddress object
Billing or shipping address of the consumer. Please refer to Data Model for details.
Address line 1.
Possible values: <= 60 characters
LeopoldstrasseAddress line 2.
Possible values: <= 60 characters
Address line 3.
Possible values: <= 60 characters
House number/building number.
Possible values: <= 10 characters
244City name of the address.
Possible values: <= 50 characters
MunichPostal code of the address.
Possible values: <= 10 characters
80807Country code. Could be 2 or 3 characters depending on the format used. Format ISO 3166 ALPHA-2 or ISO 3166 ALPHA-3.
Possible values: >= 2 characters and <= 3 characters
DEState. Could be 2 or 3 characters depending on the state. This field is mandatory when the countryCode is US, USA, CA or CAN.
Possible values: <= 3 characters
consumer objectnullablerequired
Consumer's personal data, in case the consumer is a physical person. See consumer in Data model.
Conditional. Can be present if businessConsumer is missing from the request.
First name of the consumer.
Possible values: <= 60 characters
JohnLast name of the consumer.
Possible values: <= 60 characters
SmithMiddle name of the consumer.
Possible values: <= 60 characters
.Email address of the customer.
Possible values: <= 255 characters
john.smith@smithentreprise.comTitle of the consumer.
Possible values: <= 3 characters, [Mr, Mrs, Ms]
MrConsists of ISO 639-1 language code and ISO 3166-1 alpha-2 country code separated by dash. If this value is not provided the browser culture is used. Default culture is English (e.g.,, en-de). This field is not case sensitive.
Possible values: <= 5 characters
en-deDate of birth. Dummy data acceptable. Format “YYYY-MM-DD”.
1995-01-26Gender of the consumer.
Possible values: [M, F, D]
MMobile phone of the customer.
Possible values: <= 30 characters
1285765191221Home phone of the customer.
Possible values: <= 30 characters
1285765191221Work phone of the customer.
Possible values: <= 30 characters
1285765191221Tax ID of the consumer.
Possible values: <= 30 characters
DE1927456229transactionLogs object[]
Unique Identifier of the Transaction Log. Format: TransactionLog + - + <UUID>
TransactionLog-3c2e60ea-2eb9-4162-bcb1-7034f5d4c27fTimestamp of when the transaction log was created.
2021-02-11T15:00:44.718ZTimestamp of when the transaction log was last updated.
2021-02-11T15:00:44.718ZStatus of the transaction or retried transaction.
capturedDescription of the transaction result or retry result.
Possible values: <= 255 characters
Transaction with modificationId 4d875985-f9a2-4eb5-8dff-73b64c8915a7 is updated with status captured and description MerchantExternalcustomReferences object
Custom references for external party usage
Custom reference 1 for external party usage
Possible values: <= 255 characters
custom1 test1Custom reference 2 for external party usage
Possible values: <= 255 characters
custom1 test2Custom reference 3 for external party usage
Possible values: <= 255 characters
null{
"page": 0,
"pageSize": 0,
"count": 0,
"totalPages": 0,
"data": [
{
"id": "Transaction-5f391daa-80a8-4292-96d9-3fdc1a12192b",
"customerAccountId": "NewcustomerTestPy14",
"storedPaymentOptionReference": "8ac7a49f790baf4001790eb90ee26064",
"modificationId": "4d875985-f9a2-4eb5-8dff-73b64c8915a7",
"transactionReferenceId": "aeaabe56-3c05-44fb-9f19-9f27074ef5a4",
"reconciliationReferenceId": "pzFdwq0ImRFYGYuq41xCH",
"paymentStatus": "captured",
"payment": {
"description": "MerchantExternal",
"amount": 10,
"currencyIsoCode": "EUR"
},
"billingAddress": {
"addressLine1": "Leopoldstrasse",
"number": "244",
"city": "Munich",
"postCode": "80807",
"countryCode": "DE"
},
"shippingAddress": {
"addressLine1": "Leopoldstrasse",
"number": "244",
"city": "Munich",
"postCode": "80807",
"countryCode": "DE"
},
"consumer": {
"firstName": "FirstName1",
"lastName": "LastName1",
"middleName": ".",
"emailAddress": "NewcustomerTestPy14@mail.com",
"title": "Mr",
"culture": "en-en",
"dateOfBirth": "1995-01-26",
"gender": "M",
"mobilePhone": "1234567890",
"homePhone": "1234567891",
"workPhone": "1234567892"
},
"transactionLogs": [
{
"id": "TransactionLog-bf55539a-fc69-410a-a684-99b2fb06bfb2",
"createdAt": "2021-06-17T12:46:33.99Z",
"updatedAt": "2021-06-17T12:46:33.99Z",
"status": "captured",
"description": "Transaction with modificationId 4d875985-f9a2-4eb5-8dff-73b64c8915a7 is updated with status captured and description MerchantExternal"
}
],
"customReferences": {
"custom1": "custom1 test1",
"custom2": "custom1 test2",
"custom3": null
}
}
]
}
{
"page": 0,
"pageSize": 1,
"count": 1,
"totalPages": 1,
"data": [
{
"id": "Transaction-5f391daa-80a8-4292-96d9-3fdc1a12192b",
"customerAccountId": "NewcustomerTestPy14",
"storedPaymentOptionReference": "8ac7a49f790baf4001790eb90ee26064",
"modificationId": "4d875985-f9a2-4eb5-8dff-73b64c8915a7",
"transactionReferenceId": "aeaabe56-3c05-44fb-9f19-9f27074ef5a4",
"reconciliationReferenceId": "pzFdwq0ImRFYGYuq41xCH",
"paymentStatus": "captured",
"payment": {
"description": "MerchantExternal",
"amount": 10,
"currencyIsoCode": "EUR"
},
"billingAddress": {
"addressLine1": "Leopoldstrasse",
"addressLine2": null,
"addressLine3": null,
"number": "244",
"city": "Munich",
"postCode": "80807",
"countryCode": "DE",
"state": null
},
"shippingAddress": {
"addressLine1": "Leopoldstrasse",
"addressLine2": null,
"addressLine3": null,
"number": "244",
"city": "Munich",
"postCode": "80807",
"countryCode": "DE",
"state": null
},
"consumer": {
"firstName": "FirstName1",
"lastName": "LastName1",
"middleName": ".",
"emailAddress": "NewcustomerTestPy14@mail.com",
"title": "Mr",
"culture": "en-en",
"dateOfBirth": "1995-01-26",
"gender": "M",
"mobilePhone": "1234567890",
"homePhone": "1234567891",
"workPhone": "1234567892",
"taxId": null
},
"transactionLogs": [
{
"id": "TransactionLog-bf55539a-fc69-410a-a684-99b2fb06bfb2",
"createdAt": "2021-06-17T12:46:33.99Z",
"updatedAt": "2021-06-17T12:46:33.99Z",
"status": "captured",
"description": "Transaction with modificationId: 4d875985-f9a2-4eb5-8dff-73b64c8915a7 is updated with status captured and description: MerchantExternal"
}
]
}
]
}
Bad Request
For error handling, please refer to this section.
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
Internally generated trace_id for this error message so it can be found easily in the logs.
errors object[]
A predefined string which describes the error. The purpose of the message is to allow for future usage of translation.
A pre-defined code from the list of error codes.
The property from the request object which the error is linked to.
context object
A json object containing a list of predefined properties which are filled based on the error.
{
"traceId": "string",
"errors": [
{
"message": "string",
"code": "string",
"property": "string",
"context": {
"type": "string",
"minimum": 0,
"maximum": 0,
"maxLength": 0,
"allowedValues": [
"string"
]
}
}
]
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Value out of bounds. Value must be between 1 and 100",
"code": "value_out_of_bounds",
"property": "someField",
"context": {
"minimum": 1,
"maximum": 100
}
}
]
}
Unauthenticated
For error handling, please refer to this section.
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
Internally generated trace_id for this error message so it can be found easily in the logs.
errors object[]
A predefined string which describes the error. The purpose of the message is to allow for future usage of translation.
A pre-defined code from the list of error codes.
The property from the request object which the error is linked to.
context object
A json object containing a list of predefined properties which are filled based on the error.
{
"traceId": "string",
"errors": [
{
"message": "string",
"code": "string",
"property": "string",
"context": {
"type": "string",
"minimum": 0,
"maximum": 0,
"maxLength": 0,
"allowedValues": [
"string"
]
}
}
]
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "You are not authenticated to perform this request.",
"code": "unauthorized"
}
]
}
Forbidden
For error handling, please refer to this section.
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
Internally generated trace_id for this error message so it can be found easily in the logs.
errors object[]
A predefined string which describes the error. The purpose of the message is to allow for future usage of translation.
A pre-defined code from the list of error codes.
The property from the request object which the error is linked to.
context object
A json object containing a list of predefined properties which are filled based on the error.
{
"traceId": "string",
"errors": [
{
"message": "string",
"code": "string",
"property": "string",
"context": {
"type": "string",
"minimum": 0,
"maximum": 0,
"maxLength": 0,
"allowedValues": [
"string"
]
}
}
]
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "You do not have permissions to perform this request.",
"code": "forbidden"
}
]
}
Not Found
For error handling, please refer to this section.
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
Internally generated trace_id for this error message so it can be found easily in the logs.
errors object[]
A predefined string which describes the error. The purpose of the message is to allow for future usage of translation.
A pre-defined code from the list of error codes.
The property from the request object which the error is linked to.
context object
A json object containing a list of predefined properties which are filled based on the error.
{
"traceId": "string",
"errors": [
{
"message": "string",
"code": "string",
"property": "string",
"context": {
"type": "string",
"minimum": 0,
"maximum": 0,
"maxLength": 0,
"allowedValues": [
"string"
]
}
}
]
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Resource not found.",
"code": "not_found"
}
]
}
Internal Server Error
For error handling, please refer to this section.
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- ]
Internally generated trace_id for this error message so it can be found easily in the logs.
errors object[]
A predefined string which describes the error. The purpose of the message is to allow for future usage of translation.
A pre-defined code from the list of error codes.
The property from the request object which the error is linked to.
context object
A json object containing a list of predefined properties which are filled based on the error.
{
"traceId": "string",
"errors": [
{
"message": "string",
"code": "string",
"property": "string",
"context": {
"type": "string",
"minimum": 0,
"maximum": 0,
"maxLength": 0,
"allowedValues": [
"string"
]
}
}
]
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Internal server error."
}
]
}