Skip to main content
GET
/
v1
/
carts
/
{cartId}
Get booking details by cart
curl --request GET \
  --url https://api.letsway.com/v1/carts/{cartId}
{
  "cartId": "cart-123",
  "purchaser": {
    "firstName": "John",
    "lastName": "Doe",
    "emailAddress": "[email protected]",
    "customQuestionAnswers": [
      {
        "answers": {
          "question-123": [
            "answer-1",
            "answer-2"
          ]
        }
      }
    ],
    "phoneNumber": "+1234567890"
  },
  "paymentProvider": "stripe_destination_charge",
  "paymentMethod": "credit-card",
  "cartItems": [
    {
      "experience": {
        "id": "exp-123",
        "title": "Luxury Yacht Tour",
        "hidePrice": false
      },
      "amount": 250.75,
      "currency": "USD",
      "startDateTime": "2024-03-15T14:30:00Z",
      "subTotal": 200.5,
      "discountAmount": 50.25,
      "sessionDurationMinutes": 90
    }
  ],
  "cartStatus": "confirmed",
  "paymentReferenceCode": "PAY-789",
  "meta": {
    "paymentStatus": {
      "code": "SUCCESS",
      "message": "Payment completed successfully"
    },
    "paymentDetail": {
      "lastName": "Doe",
      "methodNumber": "**** **** **** 1234",
      "reservationId": "RES-456",
      "confirmationId": "CONF-789"
    },
    "paymentMethodDetail": {
      "fixedChargeId": "CHG-123",
      "billingChargeId": "BILL-456",
      "transactionCode": {
        "code": "T123",
        "description": "Credit Card"
      }
    }
  },
  "couponCode": "DISCOUNT10"
}

Path Parameters

cartId
string

Response

200 - application/json

Booking details

cartId
string
required

The unique identifier of the cart

Example:

"cart-123"

purchaser
object
required

Purchaser details

paymentProvider
enum<string>
required

Payment provider used for the transaction

Available options:
kicc,
stripe_destination_charge,
stripe_separate_charge_transfer,
self
Example:

"stripe_destination_charge"

paymentMethod
enum<string>
required

Payment method used

Available options:
credit-card,
room-charge,
member-number,
loyalty,
kicc,
cash,
pay-later,
pay-upon-arrival
Example:

"credit-card"

cartItems
object[]
required

Cart items included in the booking

cartStatus
enum<string>
required

Current status of the booking

Available options:
confirmed,
refunded,
processing,
failed,
cancelled
Example:

"confirmed"

paymentReferenceCode
object

Payment reference code

Example:

"PAY-789"

meta
object

Additional metadata about the payment

couponCode
string | null

Applied coupon code

Example:

"DISCOUNT10"