Skip to main content

Subscribe to Redirect Session events

PUT 

/redirect-session-events/subscriptions/:eventSubscriptionId

Subscribe to Redirect Session events

Request

Path Parameters

    eventSubscriptionId stringrequired

    The unique id of this subscription, which can be used for unsubscribing later on.

Body

required

    callbackUrl urirequired

    callback url that will be called by server for every subscribed event

    apiKey stringrequired

    Possible values: Value must match regular expression ^[A-z0-9=+\/\-:_]{1,128}$

    Sent back in the x-api-key header of the callback

    eventTypes RedirectSessionEventType (string)[]required

    Possible values: [RedirectSessionCancelled], >= 1

    the list of event types to which subscriber would like to listen for

Responses

Subscription created

Schema

    id uuidrequired

    Unique id of the subscription

    callbackUrl urirequired

    callback url that will be called by server for every subscribed event

    eventTypes RedirectSessionEventType (string)[]

    Possible values: [RedirectSessionCancelled]

Callbacks

POST 

{$request.body#/callbackUrl}

Body

required

Contents of the callback message

    specversion stringrequired

    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.

    id uuidrequired

    The unique id of the event.

    source stringrequired

    Identifies the context in which an event happened

    time date-time

    Timestamp of when the occurrence happened.

    datacontenttype string

    Content type of data value

    type RedirectSessionEventType (string)

    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

    id uuidrequired

    The id of the redirect session

    state RedirectSessionState (string)required

    Possible values: [Cancelled]

    The type of the event, defining also the attributes of which entity are to be found in the data property

    type RedirectSessionType (string)

    Possible values: [NewTransactionIntent, ExistingTransactionIntent, NewCustomer]

    The type of redirect session. Used for defining which sub-element will be present in the response

    createdOn date-timerequired

    The creation datetime of the entity, in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time

    lastModifiedOn date-time

    The last modification datetime of the entity, in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time

Callbacks Responses

Your server returns this code if it accepts the callback

Loading...