POST api/PaymentJS/AuthorizeSession

Description

Obtains a client token and public key for PaymentJS card tokenization. Delegates to (bounded per-order lock, async Fiserv call).

Request

URI parameters

None.

Body

PaymentJSAuthorizeSessionRequest
NameDescriptionTypeAdditional information
bookingId

Required: Booking ID (Group_ID) used to resolve the order for payment tracking and amount.

string

None.

successUrl

Required: Success URL used for 3DS redirects (from bookingModel.SuccessUrl).

string

None.

bookingHash

Required: Security hash to validate the booking ID. Must match the hash computed from the order (UniqueOrderSalt + Group_ID). Prevents unauthorized payment session initiation.

string

None.

correlationId

Optional: diagnostic correlation id (e.g. from Website API when verbose Fiserv logging is on) to tie logs across services.

string

None.

Sample request

application/json, text/json

Sample:
{
  "bookingId": "sample string 1",
  "successUrl": "sample string 2",
  "bookingHash": "sample string 3",
  "correlationId": "sample string 4"
}

Response

Resource description

IHttpActionResult

None.

Sample response

application/json, text/json

Sample:

Sample not available.