Skip to main content

Create a redirect session for a specific purpose

PUT 

/redirect-sessions/:redirectSessionId

Create a redirect session for a specific purpose

Request

Path Parameters

    redirectSessionId uuidrequired

    The id of the redirect session

Body

required

    oneOf

    redirectData

    object

    required

    successUrl urirequired

    a url that the user will be redirected on successful completion of the overall flow (Transaction completed)

    failureUrl urirequired

    a url that the user will be redirected on failure of the overall flow (Transaction/TransactionIntent declined/expired, or technical error)

    abortUrl urirequired

    a url that the user will be redirected on abort of the flow (TransactionIntent cancelled or user aborted the flow before a TransactionIntent was created)

    qrCodeSuccessUrl urirequired

    a url that the user will be redirected after successful creation of QR code (user aborted the flow but TransactionIntent was created without finalizing)

    locale Locale (string)

    Possible values: Value must match regular expression ^[A-z]{2}(-[A-z]{2})?$

    Used to define the language and region of the customer. RFC 1766 customer's locale. Supported locales are en/en-* and de/de-*. If another or no locale is provided, the default locale is de-DE.

    type stringrequired

    Possible values: [NewTransactionIntent]

    customerId uuid

    The unique id of the customer. Optional, supplied only in case the merchant is tracking/storing whether a customer is registered at Zastrpay

    transactionData

    object

    required

    type stringrequired

    Possible values: [PassthroughDeposit, PassthroughWithdrawal, CustomerToMerchantTransfer, CustomerToMerchantPassthrough, MerchantToCustomerTransfer, MerchantToCustomerPassthrough]

    The type of the transaction, this corresponds to the type of the transaction intent to be created, cannot be used with direction

    direction string

    Possible values: [MerchantToCustomer, CustomerToMerchant]

    Specifies the cash flow direction of the transaction. This field cannot be used in conjunction with the 'type' field.

    amount numberrequired

    Possible values: <= 10000

    The amount of the transaction intent.

    currency stringrequired

    Possible values: [EUR]

    The currency code as ISO 4217 3-digit code (https://en.wikipedia.org/wiki/ISO_4217).

    externalReference string

    Possible values: non-empty and <= 50 characters, Value must match regular expression ^[\d\p{L}]([\d\p{L}\-\. ]{0,48}[\d\p{L}])$

    A reference to a transaction in an external system e.g. bank transfer. Used for MerchantPayment* and DistributorPayment* transaction types only.

    phoneNumber PhoneNumber (string)

    Possible values: <= 50 characters, Value must match regular expression ^(?=(.*\d){2})[0-9\+\/\-\(\)\s]{2,50}$

    A phone number with which the customer has registered at Zastrpay. To be provided when the Merchant wants to have KYD/PreCheck performed but does not have the Zastrpay customerId (e.g. because the customer registered directly with Zastrpay, or via another merchant)

Responses

Expected response to a valid request

Schema

    oneOf

    id uuidrequired

    The unique id of the redirect session

    merchantId uuidrequired

    The unique id of the merchant

    createdOn date-timerequired

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

    redirectData

    object

    required

    successUrl urirequired

    a url that the user will be redirected on successful completion of the overall flow (Transaction completed)

    failureUrl urirequired

    a url that the user will be redirected on failure of the overall flow (Transaction/TransactionIntent declined/expired, or technical error)

    abortUrl urirequired

    a url that the user will be redirected on abort of the flow (TransactionIntent cancelled or user aborted the flow before a TransactionIntent was created)

    qrCodeSuccessUrl urirequired

    a url that the user will be redirected after successful creation of QR code (user aborted the flow but TransactionIntent was created without finalizing)

    lastCorrelationId uuidrequired

    Identifies the conversation within which the last change of state occurred. Currently the value of X-Request-Id is used if provided, or an internal UUID is generated if not

    locale Locale (string)required

    Possible values: Value must match regular expression ^[A-z]{2}(-[A-z]{2})?$

    Used to define the language and region of the customer. RFC 1766 customer's locale. Supported locales are en/en-* and de/de-*. If another or no locale is provided, the default locale is de-DE.

    token stringrequired

    a JWT to be used for subsequent authentication of user request

    redirectUrl urirequired

    a url where to redirect the user to continue with the payment process

    type stringrequired

    Possible values: [NewTransactionIntent]

    customerId uuid

    The unique id of the customer. Optional, supplied only in case the merchant is tracking/storing whether a customer is registered at Zastrpay

    transactionData

    object

    required

    type stringrequired

    Possible values: [PassthroughDeposit, PassthroughWithdrawal, CustomerToMerchantTransfer, CustomerToMerchantPassthrough, MerchantToCustomerTransfer, MerchantToCustomerPassthrough]

    The type of the transaction, this corresponds to the type of the transaction intent to be created, cannot be used with direction

    direction string

    Possible values: [MerchantToCustomer, CustomerToMerchant]

    Specifies the cash flow direction of the transaction. This field cannot be used in conjunction with the 'type' field.

    amount numberrequired

    Possible values: <= 10000

    The amount of the transaction intent.

    currency stringrequired

    Possible values: [EUR]

    The currency code as ISO 4217 3-digit code (https://en.wikipedia.org/wiki/ISO_4217).

    externalReference string

    Possible values: non-empty and <= 50 characters, Value must match regular expression ^[\d\p{L}]([\d\p{L}\-\. ]{0,48}[\d\p{L}])$

    A reference to a transaction in an external system e.g. bank transfer. Used for MerchantPayment* and DistributorPayment* transaction types only.

    phoneNumber PhoneNumber (string)

    Possible values: <= 50 characters, Value must match regular expression ^(?=(.*\d){2})[0-9\+\/\-\(\)\s]{2,50}$

    A phone number with which the customer has registered at Zastrpay. To be provided when the Merchant wants to have KYD/PreCheck performed but does not have the Zastrpay customerId (e.g. because the customer registered directly with Zastrpay, or via another merchant)

    kycData

    object

    The customer data required for KYC/KYD. Returned only for certain merchants that were explicitly whitelisted.

    firstName PersonName (string)required

    Possible values: Value must match regular expression ^[\p{L}'\-\ ]{2,50}$

    The name of the customer

    lastName PersonName (string)required

    Possible values: Value must match regular expression ^[\p{L}'\-\ ]{2,50}$

    The name of the customer

Loading...