Subscribe to Redirect Session events
PUT/redirect-session-events/subscriptions/:eventSubscriptionId
Subscribe to Redirect Session events
Request
Path Parameters
The unique id of this subscription, which can be used for unsubscribing later on.
- application/json
Body
required
callback url that will be called by server for every subscribed event
Possible values: Value must match regular expression ^[A-z0-9=+\/\-:_]{1,128}$
Sent back in the x-api-key header of the callback
Possible values: [RedirectSessionCancelled
], >= 1
the list of event types to which subscriber would like to listen for
Responses
- 201
- 400
- 500
Subscription created
- application/json
- Schema
- Example (from schema)
Schema
Unique id of the subscription
callback url that will be called by server for every subscribed event
Possible values: [RedirectSessionCancelled
]
{
"id": "6d245f63-fdfc-4a6b-a351-bc0b03260dcd",
"callbackUrl": "https://myserver.com/send/callback/here",
"eventTypes": [
"RedirectSessionCancelled"
]
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [Validation
]
The type of error. Used for defining which sub-element will be present in the details property.
A short text describing the error.
A link to the online documentation describing the error in detail.
Identifies the conversation within which the error got generated.
details
object
Contains additional details of the error
The reason for CustomerPermissionDenied declineReason
validationErrorReasons
object[]
A collection of Validation error details
name of filed that failed validation
error message
The reason for LimitThresholdExceeded declineReason
{
"code": "Validation",
"message": "The field \"customerId\" could not be validated.",
"moreInfo": "https://developer.example.com/v1.0/reference#error-handling",
"correlationId": "ce8056cd-ae4d-4f2d-87de-7562c92f92cc",
"details": {
"customerPermissionDeniedReason": "string",
"validationErrorReasons": [
{
"fieldName": "customerId",
"errorMessage": "Value must not be empty"
}
],
"limitThresholdExceededReason": "string"
}
}
Unexpected technical error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [GeneralErrorOccurred
]
The type of error. Used for defining which sub-element will be present in the details property.
A short text describing the error.
A link to the online documentation describing the error in detail.
Identifies the conversation within which the error got generated.
details
object
Contains additional details of the error
The reason for CustomerPermissionDenied declineReason
validationErrorReasons
object[]
A collection of Validation error details
name of filed that failed validation
error message
The reason for LimitThresholdExceeded declineReason
{
"code": "GeneralErrorOccurred",
"message": "The field \"customerId\" could not be validated.",
"moreInfo": "https://developer.example.com/v1.0/reference#error-handling",
"correlationId": "ce8056cd-ae4d-4f2d-87de-7562c92f92cc",
"details": {
"customerPermissionDeniedReason": "string",
"validationErrorReasons": [
{
"fieldName": "customerId",
"errorMessage": "Value must not be empty"
}
],
"limitThresholdExceededReason": "string"
}
}
Callbacks
- POST onEvent
POST{$request.body#/callbackUrl}
- application/json
Body
required
Contents of the callback message
The version of the CloudEvents specification which the event uses. This enables the interpretation of the context. Compliant event producers MUST use a value of 1.0 when referring to this version of the specification.
The unique id of the event.
Identifies the context in which an event happened
Timestamp of when the occurrence happened.
Content type of data value
Possible values: [RedirectSessionCancelled
]
The type of the event, defining also the attributes of which entity are to be found in the data property
data
object
The id of the redirect session
Possible values: [Cancelled
]
The type of the event, defining also the attributes of which entity are to be found in the data property
Possible values: [NewTransactionIntent
, ExistingTransactionIntent
, NewCustomer
]
The type of redirect session. Used for defining which sub-element will be present in the response
The creation datetime of the entity, in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time
The last modification datetime of the entity, in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time
Callbacks Responses
- 200
Your server returns this code if it accepts the callback