For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
This page is for version v1 (default).
For other versions, use one of these documentation indexes:
- v1 (default): https://developers.truemed.com/v-1/llms.txt
A payment session moves through statuses as the customer completes checkout, Truemed reviews the
payment, and funds are captured, rejected, authorized, voided, or refunded.
Most immediate-capture integrations only need to
handle processing, captured, and rejected. Manual capture
integrations also need authorized, authorization_voided, and authorization_expired.
Status reference
Status
What it means
What to do
pending
The payment session exists, but the customer has not completed checkout.
Wait for the customer to complete the hosted flow.
canceled
The payment session was canceled before payment information was entered.
Keep the order unpaid or let the customer choose another payment method.
processing
The customer entered payment details and Truemed is reviewing the payment.
Show an “order placed” confirmation. Do not fulfill yet.
authorized
An authorization hold was placed for a manual capture payment.
Capture or void the payment later.
authorization_voided
The authorization hold was voided.
Do not fulfill unless the order was paid another way.
authorization_expired
A capture was attempted, but the authorization hold could no longer be re-secured on the customer’s card, so it expired.
Do not fulfill unless the order was paid another way.
captured
The payment cleared review and funds are secured.
Fulfill the order.
rejected
The payment failed review.
Cancel the order and notify the customer.
Successful immediate-capture flow
Rejected payment flow
Manual capture flow
For manual capture, create the payment session with kind: authorization. Truemed sends
status: authorized when the hold is ready. Capture or void the authorization later through the
payment session APIs.