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| Name | Description | Type | Additional 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. |
| 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
{
"bookingId": "sample string 1",
"successUrl": "sample string 2",
"bookingHash": "sample string 3",
"amendmentRequestId": "0b26a50c-ceac-44de-83e2-271edc8a3996"
}
Response
Resource description
IHttpActionResultNone.
Sample response
application/json, text/json
Sample not available.