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 for outstanding-balance payments. Omit when amendmentRequestId is set; the amendment must belong to bookingId.

string

None.

amendmentRequestId

Optional: when paying for a pending booking amendment (transfer or additional services), the amendment request id from the Membership API request step.

globally unique identifier

None.

Sample request

application/json, text/json

Sample:
{
  "bookingId": "sample string 1",
  "successUrl": "sample string 2",
  "bookingHash": "sample string 3",
  "amendmentRequestId": "c3469fe5-9abc-43d9-adf5-7ff534620744"
}

Response

Resource description

IHttpActionResult

None.

Sample response

application/json, text/json

Sample:

Sample not available.