---
title: "Post Airwallex Payment Intent"
method: POST
path: "/v1/billing/airwallex/payment-intent"
tags: ["billing-airwallex-preview"]
---

# Post Airwallex Payment Intent

`POST /v1/billing/airwallex/payment-intent`

## Request

- Base URL: `https://api.lithtrix.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.lithtrix.ai/v1/billing/airwallex/payment-intent`
- Auth: none declared

Create an Airwallex PaymentIntent for the authenticated agent.

Card data stays in the browser (Split Card Elements → Airwallex direct). This route
only creates the intent and customer on Lithtrix's server.

## Headers

- `authorization` string, nullable

## Request body

- AirwallexPaymentIntentRequest: Create a PaymentIntent for slider purchase or consent capture.
  - `credits` integer, required: Slider credit count
  - `currency` string
  - `consent_only` boolean: When true, create a zero-amount intent for card + MIT consent capture.

## Response `200`

Successful Response

- AirwallexPaymentIntentResponse: PaymentIntent fields required by Airwallex.js Split Card Elements.
  - `intent_id` string, required
  - `client_secret` string, required
  - `currency` string, required
  - `amount` number, required
  - `customer_id` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/lithtrix/apis/lithtrix-api.md) · [All operations](https://skmtc.dev/lithtrix/apis/lithtrix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lithtrix/apis/lithtrix-api/revisions/be5de51bf4f8?raw)
