Card Payments
Take card payments through the API
To use this capability, add octo/cardPayments to your Octo-Capabilities header.
This capability allows you to accept card payments via the API.
Gateway IDs returned/accepted in source are:
adyenexternal
Endpoints
All paths below are under /octo.
This capability extends booking/order/gift write flows and related read flows documented in:
List routes intentionally omit cardPayment/returnUrl.
Returns the cached card payment payload for a previously created card payment object.
Card payment identifier returned in booking/order/gift responses.
cp_20260514_42ad10Successful response
From capability octo/cardPayments.
Unique identifier for this resource.
3d6f0a3a-59d4-4b16-a0c5-11d2d8a4e6b7Card payment identifier.
cp_20260514_42ad10Gateway identifier.
adyenPossible values: Source value.
POSPossible values: Paid numeric value.
2Total paid numeric value.
2Total refunded numeric value.
2Paid surcharge numeric value.
2Balance numeric value.
2Surcharge numeric value.
2Outstanding balance numeric value.
2Amount numeric value.
220ISO 4217 currency code.
USDNumber of decimal places for currency amounts.
2Current status value.
CONFIRMEDExternal object.
Provider value.
adyenPossible values: Provider reference value.
PROV-REF-2026-001Created at timestamp in ISO 8601 format.
2026-05-14T13:00:00ZGET /octo/card_payments/{cardPaymentId} HTTP/1.1
Host: api.ventrata.com
Accept: */*
Successful response
{
"id": "3d6f0a3a-59d4-4b16-a0c5-11d2d8a4e6b7",
"cardPaymentId": "cp_20260514_42ad10",
"gateway": "adyen",
"source": "POS",
"paid": 2,
"totalPaid": 2,
"totalRefunded": 2,
"paidSurcharge": 2,
"balance": 2,
"surcharge": 2,
"outstandingBalance": 2,
"amount": 220,
"currency": "USD",
"currencyPrecision": 2,
"status": "CONFIRMED",
"reusableCards": [
{
"id": "e7cc8bb4-8d1c-4848-8824-5dbedb718681",
"brand": "visa",
"bin": "411111",
"last4": "1111",
"expMonth": 2,
"expYear": 2
}
],
"adyen": {
"environment": "test",
"clientKey": "test_client_key_123",
"session": {
"id": "89fe0192-ddcd-430a-b285-e1396a4725d2",
"sessionData": "session_data_payload"
},
"countryCode": "US",
"paymentMethodsConfiguration": {}
},
"external": {},
"provider": "adyen",
"providerReference": "PROV-REF-2026-001",
"createdAt": "2026-05-14T13:00:00Z"
}Validation rules from source:
cardPayment.sourcemust be one ofPOS,ECOM,MOTO(GATEWAY_INVALID_SOURCEotherwise).cardPayment.currencymust match the order currency (GATEWAY_CURRENCY_MISMATCHotherwise).If
cardPayment.cardIdis supplied it must reference a reusable card on the selected gateway (INVALID_CARD_IDotherwise).If an explicit gateway is supplied and does not match the resolved gateway, source raises
GATEWAY_MISMATCH.
Response Fields
All card payment request/response fields (including reusableCards[] and gateway payloads) are included on the card payment schemas in this page.
Notes:
adyencan return{}whenamount <= 0.The card payment lookup endpoint returns cached card payment JSON (up to 1 hour) and is only available when the card payment object was created with a
returnUrl.
Adyen Gateway
session is null until you set a returnUrl (for ECOM payments).
When you confirm/replay payment, source accepts:
adyen.sessionIdadyen.sessionResult(optional with sessionId)adyen.pspReferenceadyen.paymentMethodadyen.channel
For Adyen session creation, channel is resolved from the adyen-channel request header first, then cardPayment.adyen.channel, then defaults to Web.
Most integrations send this payload on the booking/order/gift confirm route that finalizes payment.
If Ventrata has not yet received the webhook notification from Adyen then you may receive a PAYMENT_PENDING error code. Repeat the request. If the payment is refused, you get a BAD_REQUEST error with the reason in errorMessage.
External Gateway
The external gateway lets you register a virtual card payment taken on an external processor.
external.approved defaults to true when omitted. For external payload processing, source requires at least one of notes, amount, currency, or cancel to be present.
Reusable Cards
Reusable card fields are included in the ReusableCard schema.
Schema Additions (JSON)
These are additive fragments showing only fields introduced by this capability.
Booking
BookingWriteRequest
Error
Gift
GiftCreateRequest
Order
OrderCreateRequest
OrderUpdateRequest
Last updated
