Skip to main content
POST
/
v1
/
brands
/
{brandId}
/
carts
/
{cartId}
/
payment_intents
Create a payment intent
curl --request POST \
  --url https://api.letsway.com/v1/brands/{brandId}/carts/{cartId}/payment_intents \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "sessionTime": "<string>",
      "participants": [
        {
          "firstName": "<string>",
          "lastName": "<string>",
          "priceTierName": "<string>",
          "emailAddress": "<string>",
          "phoneNumber": "<string>",
          "customQuestionResponses": [
            {
              "questionId": "<string>",
              "answer": [
                {
                  "value": "<string>",
                  "key": "<string>"
                }
              ]
            }
          ]
        }
      ],
      "mode": "private",
      "experienceId": "<string>",
      "sessionDuration": 123,
      "couponCode": "<string>",
      "discountAmount": 123,
      "discountPercentage": 123,
      "accessCode": "<string>",
      "notes": "<string>",
      "metadata": {},
      "internalNotes": "<string>",
      "listingAddOns": [],
      "appliedCreditCodes": [
        {
          "code": "<string>",
          "appliedValue": 123,
          "sequence": 123
        }
      ],
      "intendedConfirmationCode": "<string>",
      "waitlistEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "resourceGroupId": "<string>",
      "resourceQuantity": 123
    }
  ],
  "getOnlyTotalNetAmount": true
}
'
{
  "totalNetAmount": 123,
  "paymentIntentSecret": "<string>"
}

Path Parameters

cartId
string

Body

application/json
data
object[]
required
getOnlyTotalNetAmount
boolean

Response

201 - application/json
totalNetAmount
number
required
paymentIntentSecret
string | null
required