Get All Events
GET/events
Returns a list of all events with pagination. This feature enables the Merchant to check all events that were processed for a specific object (e.g., subscription, transaction). It enables tracking an object from its creation, the updates that were performed on its level, and even when it was deleted if applicable.
The request must provide the following header: x-api-key: {merchantKey}
Request
Query Parameters
Possible values: [api, widget, automated]
Origin triggering the event: an API call, an action performed on the Widget or an event triggered by SmartPay backend
Number of the page for which the data is to be returned.
Number of the records to display per page.
Possible values: [subscription, plan, billing-cycle, payment-series, transactions, manual-retry, payment, refund]
Type of the object linked to the created event & notification.
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 [
- ]
- ]
data object[]
Unique Identifier of the Event. Format: Event + - + <UUID>
event-f81c4016-9c74-4046-9079-c00dbe4a5ce2Time of the creation of the event.
2021-05-26T14:29:05.994ZOrigin system.
Possible values: [subscription-module]
subscription-moduleOrigin triggering the event.
Possible values: [api, widget, automated]
apiDescription of the event type.
Possible values: [updated, created, deleted, status.updated, billing.expires, billing.updated, billing.scheduled]
createdUnique identifier of the object linked to the created event & notification.
subscription-f81c4016-9c74-4046-9079-c00dbe4a5ce2Name of the object linked to the created event & notification.
Possible values: [subscription, subscription.plan, billing-cycle, payment-series, transactions, manual-retry, payment, refund]
subscriptionmetadata object
Optional object. Additional Ids and details linked to the notification.
data object[]
Data of the object linked to the events.
Unique Identifier of the Payment Series. Format: PaymentSeries + - + <UUID>
PaymentSeries-fe3f839f-c8b5-48cd-a4f4-cbbb3766013bTimestamp of when the payment series was created.
2021-05-10T15:38:01.02ZTimestamp of when the payment series was last updated.
2021-05-10T15:38:01.02ZTimestamp of when the payment series was deleted (if applicable).
Customer Account ID - A unique identifier provided by the integrating merchant by which the user's account could be identified e.g., customer number For subscription Module, SmartPay checks if an account exists, if so, your end customer would be able to see their previously stored payment instruments, if any.
Possible values: <= 125 characters
NewcustomerTestPSerie00Currency code. Format ISO 4217.
Possible values: >= 3 characters and <= 3 characters
EURField that allows the merchant to store a specific value for external reference. Available as a filtering field.
Possible values: <= 255 characters
MerchantExternalIDPSeries01Field that allows the merchant to store a specific metadata linked with the payment series.
Possible values: <= 255 characters
{ "clientId": 453456790 }Integrating merchant could link any custom reference on their end to the payment series through this field.
Possible values: <= 255 characters
PaymentSeries 1 Payment 1billingAgreement object
Billing Agreement linked to the Subscription.
Hosting the payment instrument information returned as null for newly created subscription.
Unique Identifier of the Billing Agreement. Format: BillingAgreement + - + <UUID>
Possible values: <= 50 characters
BillingAgreement-35564da2-3d05-4129-a93d-2f1f9deb0771PaymentObject used for billing this subscription.
8ac7a49f8609e07601860ca28ce656edDate when the billing agreement was created.
Possible values: <= 24 characters
2021-01-26T14:29:05.994ZDisplay name of the payment option which has been stored.
Possible values: <= 255 characters
MastercardCode of the payment option which has been stored.
Possible values: <= 255 characters
MSTRCRDMasked carrier number of the payment instrument which has been stored.
401288****1881Indicates if a card used as a payment option is expired or not.
Possible values: [true, false]
falseIf a card is used as a payment option, this shows its expiry date.
Possible values: <= 7 characters, Value must match regular expression ^(0[1-9]|1[0-2])/[0-9]{4}$
04/2024Additional data related to the stored payment option.
billingAddress 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 objectnullable
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
DE1927456229businessConsumer objectnullable
Company data, in case the consumer is a business or a legal entity. See businessConsumer in Data model.
Conditional. Can be present if consumer 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
DE1927456229customReferences 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
nullcriteria object
An array of key-value pair objects. Please refer to Data Model for details.
Parameter name.
Possible values: <= 50 characters
recollectionDateParameter value.
Possible values: <= 100 characters
2023-07-15If provided, the payment is processed in favour of the indicated sub-merchant account, and the main merchant account number is ignored.
This is the request body for api and widget events.
{
"page": 0,
"pageSize": 0,
"count": 0,
"totalPages": 0,
"data": [
{
"id": "event-f81c4016-9c74-4046-9079-c00dbe4a5ce2",
"createdAt": "2021-05-26T14:29:05.994Z",
"origin": "api",
"eventType": "created",
"objectId": "Subscription-7a3df18e-eb91-429f-99da-b52a2823de87",
"objectType": "subscription",
"metadata": {
"reconciliationId": "102957125651"
},
"data": {
"id": "Subscription-7a3df18e-eb91-429f-99da-b52a2823de87",
"status": "created"
},
"context": "{\"customerAccountId\":\"customer123\",\"planId\":\"plan456\"}"
}
]
}
{
"page": 7,
"pageSize": 1,
"count": 8,
"totalPages": 8,
"data": [
{
"id": "Event-0d51a439-7e17-4dc8-9060-5c2ec9ac9ce7",
"createdAt": "2021-06-08T08:37:03.14Z",
"origin": "api",
"eventType": "created",
"objectId": "Transaction-cc9b3585-c7bf-4ae0-9be7-545778593299",
"objectType": "transaction",
"data": {
"id": "Transaction-cc9b3585-c7bf-4ae0-9be7-545778593299",
"customerAccountId": "NewcustomerTestPSeries00",
"storedPaymentOptionReference": "8ac7a49f79ea7b760179eaae946a4ff7",
"modificationId": "783ad3b1-69a6-4fe1-9c3e-1742dd81e4a6",
"paymentStatus": null,
"payment": {
"description": "MerchantExternalIDPSeries01",
"amount": 6,
"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": "FirstNameA",
"lastName": "LastNameA",
"middleName": null,
"emailAddress": "NewcustomerTestPSerie00@mail.com",
"title": "Mr",
"culture": "en-en",
"dateOfBirth": "1995-01-26",
"gender": "M",
"mobilePhone": "1234567890",
"homePhone": "1234567891",
"workPhone": "1234567892",
"taxId": null
},
"transactionLogs": null
},
"context": "{"description":"first TRX PS!","amount":6.00}"
}
]
}
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."
}
]
}