Charge an explicitly authorized saved event card
Attempts an off-session Stripe card charge for a pending positive order after recording the donor authorization. The donor must match the purchaser, the reference must remain eligible, and reviewed amount must match. Confirmed success completes the order; failure leaves it pending. An indeterminate or concurrent result returns 409 and requires reconciliation. Retry the same authorization key and method; a new key cannot bypass an unresolved attempt.
curl --request POST \
--url https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payer_donor_id": 42,
"payment_method_reference": "issued-encrypted-reference",
"reviewed_amount": 25,
"authorization_confirmed": true,
"authorization_statement_version": "event_saved_method_v1",
"idempotency_key": "authorized-charge-1"
}
'import requests
url = "https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method"
payload = {
"payer_donor_id": 42,
"payment_method_reference": "issued-encrypted-reference",
"reviewed_amount": 25,
"authorization_confirmed": True,
"authorization_statement_version": "event_saved_method_v1",
"idempotency_key": "authorized-charge-1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payer_donor_id: 42,
payment_method_reference: 'issued-encrypted-reference',
reviewed_amount: 25,
authorization_confirmed: true,
authorization_statement_version: 'event_saved_method_v1',
idempotency_key: 'authorized-charge-1'
})
};
fetch('https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'payer_donor_id' => 42,
'payment_method_reference' => 'issued-encrypted-reference',
'reviewed_amount' => 25,
'authorization_confirmed' => true,
'authorization_statement_version' => 'event_saved_method_v1',
'idempotency_key' => 'authorized-charge-1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method"
payload := strings.NewReader("{\n \"payer_donor_id\": 42,\n \"payment_method_reference\": \"issued-encrypted-reference\",\n \"reviewed_amount\": 25,\n \"authorization_confirmed\": true,\n \"authorization_statement_version\": \"event_saved_method_v1\",\n \"idempotency_key\": \"authorized-charge-1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payer_donor_id\": 42,\n \"payment_method_reference\": \"issued-encrypted-reference\",\n \"reviewed_amount\": 25,\n \"authorization_confirmed\": true,\n \"authorization_statement_version\": \"event_saved_method_v1\",\n \"idempotency_key\": \"authorized-charge-1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payer_donor_id\": 42,\n \"payment_method_reference\": \"issued-encrypted-reference\",\n \"reviewed_amount\": 25,\n \"authorization_confirmed\": true,\n \"authorization_statement_version\": \"event_saved_method_v1\",\n \"idempotency_key\": \"authorized-charge-1\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 42,
"order_number": "EVT-42-001",
"status": "completed",
"payment_status": "paid",
"payment_method": "Example",
"payment_instructions": "Example",
"gateway": "Example",
"payment_intent_id": "Example",
"subtotal_amount": 25,
"discount_amount": 25,
"donation_amount": 25,
"fees_covered_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"total_amount": 25,
"currency": "USD",
"purchaser_name": "Example",
"purchaser_email": "Example",
"version": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_expires_at": "2026-10-20T12:00:00Z",
"quote_fingerprint": "Example",
"quote_snapshot": {
"quote_fingerprint": "sha256:1792497900:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expires_at": "2026-10-20T12:00:00Z",
"currency": "USD",
"availability": {
"event_state": "open",
"admissions_requested": 42,
"admissions_remaining": 42
},
"lines": [
{
"source": "ticket",
"source_id": 42,
"label": "General admission",
"units": 42,
"admissions_per_unit": 42,
"admissions": 42,
"pre_reserved_units": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00",
"subtotal": "25.00",
"discount": "25.00",
"total": "25.00",
"non_deductible": "25.00",
"snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"promo_code_id": 42,
"promo_code": "Example",
"subtotal": "25.00",
"discount": "25.00",
"fee_coverage": "25.00",
"donation": "25.00",
"tax_deductible": "25.00",
"non_deductible": "25.00",
"total": "25.00",
"attendee_slots": 42
},
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"metadata": {
"registration_version": 42,
"conversion_intents": {
"recurring_gift": false,
"child_sponsorship": false
},
"sponsorship_interest": {
"program_id": 42,
"recipient_id": 42,
"recipient_label": "Alex",
"url": "/frontend/view_entity/42/7/9"
}
},
"receipt_snapshot": {
"receipt_type": "event_combined_receipt",
"event_id": 42,
"event_name": "Annual Gala",
"order_number": "EVT-42-001",
"donation_id": 42,
"currency": "USD",
"subtotal_amount": 25,
"discount_amount": 25,
"fees_covered_amount": 25,
"total_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"donation_amount": 25,
"payment_method": "Example",
"payment_status": "paid",
"payment_instructions": "Example",
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"issued_at": "2026-10-20T12:00:00Z",
"receipt_note": "Ticket fair market value is separated from deductible event support.",
"adjustment_type": "refund",
"refunded_amount": 25,
"active_total_amount": 25,
"active_tax_deductible_amount": 25,
"adjustment_reason": "Example",
"adjusted_at": "2026-10-20T12:00:00Z"
},
"receipt_sent_at": "2026-10-20T12:00:00Z",
"registration_questions": [
{
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false,
"id": 42,
"help_text": "Example",
"applies_to_ticket_type_ids": [
42
]
}
],
"event": {
"id": 42,
"branding_program_id": 42,
"name": "Annual Gala",
"slug": "annual-gala",
"starts_at": "2026-10-20T12:00:00Z",
"timezone": "Africa/Kampala",
"location": {
"mode": "released_full",
"label": "Kampala",
"venue": "Example",
"address": "Example",
"map_allowed": false
}
},
"registration_groups": [
{
"id": 42,
"source_kind": "ticket",
"source_id": 42,
"event_ticket_type_id": 42,
"kind": "individual",
"label": "Example",
"admissions_reserved": 42,
"attendee_details_timing": "checkout",
"status": "complete",
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
},
"details_completed_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"attendee_ids": [
42
]
}
],
"attendees": [
{
"id": 42,
"event_registration_group_id": 42,
"event_ticket_type_id": 42,
"ticket_code": "EVT-42-00001",
"name": "Jane Doe",
"first_name": "Example",
"last_name": "Example",
"email": "Example",
"ticket_type": "Example",
"table": "Example",
"status": "registered",
"qr_token": "<string>",
"details_completed_at": "2026-10-20T12:00:00Z",
"qr_url": "Example",
"wallet_pass_url": "Example",
"wallet_pass_status": "inactive",
"checked_in_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"metadata": {
"source": "Example",
"event_sponsor_id": 42,
"sponsor_ticket_slot": 42
}
}
],
"sponsors": [
{
"id": 42,
"company_name": "Example",
"contact_name": "Example",
"contact_email": "Example",
"contact_phone": "Example",
"notes": "Example",
"status": "active",
"amount": 25,
"fair_market_value": 25,
"included_tickets_assigned": 42,
"public_visibility": false,
"renewal_follow_up_at": "2026-10-20T12:00:00Z",
"logo_upload_id": 42,
"logo_url": "Example",
"package": {
"id": 42,
"name": "Example",
"tier": "Example",
"included_tickets": 42,
"included_tables": 42
},
"deliverables": [
{
"id": 42,
"type": "logo",
"label": "Logo placement",
"status": "pending",
"due_at": "2026-10-20T12:00:00Z",
"completed_at": "2026-10-20T12:00:00Z"
}
]
}
],
"auction_items": [
{
"id": 42,
"event_auction_item_id": 42,
"name": "Example",
"amount": 25,
"quantity": 42,
"status": "paid",
"bidder_name": "Example",
"bidder_email": "Example"
}
],
"payment_reconciliation_required": false,
"payment_provider_status": "Example"
}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}{
"message": "The prior payment result could not be confirmed.",
"data": {
"id": 42,
"order_number": "EVT-42-001",
"status": "completed",
"payment_status": "paid",
"payment_method": "Example",
"payment_instructions": "Example",
"gateway": "Example",
"payment_intent_id": "Example",
"subtotal_amount": 25,
"discount_amount": 25,
"donation_amount": 25,
"fees_covered_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"total_amount": 25,
"currency": "USD",
"purchaser_name": "Example",
"purchaser_email": "Example",
"version": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_expires_at": "2026-10-20T12:00:00Z",
"quote_fingerprint": "Example",
"quote_snapshot": {
"quote_fingerprint": "sha256:1792497900:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expires_at": "2026-10-20T12:00:00Z",
"currency": "USD",
"availability": {
"event_state": "open",
"admissions_requested": 42,
"admissions_remaining": 42
},
"lines": [
{
"source": "ticket",
"source_id": 42,
"label": "General admission",
"units": 42,
"admissions_per_unit": 42,
"admissions": 42,
"pre_reserved_units": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00",
"subtotal": "25.00",
"discount": "25.00",
"total": "25.00",
"non_deductible": "25.00",
"snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"promo_code_id": 42,
"promo_code": "Example",
"subtotal": "25.00",
"discount": "25.00",
"fee_coverage": "25.00",
"donation": "25.00",
"tax_deductible": "25.00",
"non_deductible": "25.00",
"total": "25.00",
"attendee_slots": 42
},
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"metadata": {
"registration_version": 42,
"conversion_intents": {
"recurring_gift": false,
"child_sponsorship": false
},
"sponsorship_interest": {
"program_id": 42,
"recipient_id": 42,
"recipient_label": "Alex",
"url": "/frontend/view_entity/42/7/9"
}
},
"receipt_snapshot": {
"receipt_type": "event_combined_receipt",
"event_id": 42,
"event_name": "Annual Gala",
"order_number": "EVT-42-001",
"donation_id": 42,
"currency": "USD",
"subtotal_amount": 25,
"discount_amount": 25,
"fees_covered_amount": 25,
"total_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"donation_amount": 25,
"payment_method": "Example",
"payment_status": "paid",
"payment_instructions": "Example",
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"issued_at": "2026-10-20T12:00:00Z",
"receipt_note": "Ticket fair market value is separated from deductible event support.",
"adjustment_type": "refund",
"refunded_amount": 25,
"active_total_amount": 25,
"active_tax_deductible_amount": 25,
"adjustment_reason": "Example",
"adjusted_at": "2026-10-20T12:00:00Z"
},
"receipt_sent_at": "2026-10-20T12:00:00Z",
"registration_questions": [
{
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false,
"id": 42,
"help_text": "Example",
"applies_to_ticket_type_ids": [
42
]
}
],
"event": {
"id": 42,
"branding_program_id": 42,
"name": "Annual Gala",
"slug": "annual-gala",
"starts_at": "2026-10-20T12:00:00Z",
"timezone": "Africa/Kampala",
"location": {
"mode": "released_full",
"label": "Kampala",
"venue": "Example",
"address": "Example",
"map_allowed": false
}
},
"registration_groups": [
{
"id": 42,
"source_kind": "ticket",
"source_id": 42,
"event_ticket_type_id": 42,
"kind": "individual",
"label": "Example",
"admissions_reserved": 42,
"attendee_details_timing": "checkout",
"status": "complete",
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
},
"details_completed_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"attendee_ids": [
42
]
}
],
"attendees": [
{
"id": 42,
"event_registration_group_id": 42,
"event_ticket_type_id": 42,
"ticket_code": "EVT-42-00001",
"name": "Jane Doe",
"first_name": "Example",
"last_name": "Example",
"email": "Example",
"ticket_type": "Example",
"table": "Example",
"status": "registered",
"qr_token": "<string>",
"details_completed_at": "2026-10-20T12:00:00Z",
"qr_url": "Example",
"wallet_pass_url": "Example",
"wallet_pass_status": "inactive",
"checked_in_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"metadata": {
"source": "Example",
"event_sponsor_id": 42,
"sponsor_ticket_slot": 42
}
}
],
"sponsors": [
{
"id": 42,
"company_name": "Example",
"contact_name": "Example",
"contact_email": "Example",
"contact_phone": "Example",
"notes": "Example",
"status": "active",
"amount": 25,
"fair_market_value": 25,
"included_tickets_assigned": 42,
"public_visibility": false,
"renewal_follow_up_at": "2026-10-20T12:00:00Z",
"logo_upload_id": 42,
"logo_url": "Example",
"package": {
"id": 42,
"name": "Example",
"tier": "Example",
"included_tickets": 42,
"included_tables": 42
},
"deliverables": [
{
"id": 42,
"type": "logo",
"label": "Logo placement",
"status": "pending",
"due_at": "2026-10-20T12:00:00Z",
"completed_at": "2026-10-20T12:00:00Z"
}
]
}
],
"auction_items": [
{
"id": 42,
"event_auction_item_id": 42,
"name": "Example",
"amount": 25,
"quantity": 42,
"status": "paid",
"bidder_name": "Example",
"bidder_email": "Example"
}
],
"payment_reconciliation_required": false,
"payment_provider_status": "Example"
},
"status": "error",
"error_code": "CHECKOUT_PAYMENT_UNAVAILABLE",
"payment_availability": {}
}{
"message": "The saved payment method could not be charged.",
"data": {
"id": 42,
"order_number": "EVT-42-001",
"status": "completed",
"payment_status": "paid",
"payment_method": "Example",
"payment_instructions": "Example",
"gateway": "Example",
"payment_intent_id": "Example",
"subtotal_amount": 25,
"discount_amount": 25,
"donation_amount": 25,
"fees_covered_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"total_amount": 25,
"currency": "USD",
"purchaser_name": "Example",
"purchaser_email": "Example",
"version": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_expires_at": "2026-10-20T12:00:00Z",
"quote_fingerprint": "Example",
"quote_snapshot": {
"quote_fingerprint": "sha256:1792497900:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expires_at": "2026-10-20T12:00:00Z",
"currency": "USD",
"availability": {
"event_state": "open",
"admissions_requested": 42,
"admissions_remaining": 42
},
"lines": [
{
"source": "ticket",
"source_id": 42,
"label": "General admission",
"units": 42,
"admissions_per_unit": 42,
"admissions": 42,
"pre_reserved_units": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00",
"subtotal": "25.00",
"discount": "25.00",
"total": "25.00",
"non_deductible": "25.00",
"snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"promo_code_id": 42,
"promo_code": "Example",
"subtotal": "25.00",
"discount": "25.00",
"fee_coverage": "25.00",
"donation": "25.00",
"tax_deductible": "25.00",
"non_deductible": "25.00",
"total": "25.00",
"attendee_slots": 42
},
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"metadata": {
"registration_version": 42,
"conversion_intents": {
"recurring_gift": false,
"child_sponsorship": false
},
"sponsorship_interest": {
"program_id": 42,
"recipient_id": 42,
"recipient_label": "Alex",
"url": "/frontend/view_entity/42/7/9"
}
},
"receipt_snapshot": {
"receipt_type": "event_combined_receipt",
"event_id": 42,
"event_name": "Annual Gala",
"order_number": "EVT-42-001",
"donation_id": 42,
"currency": "USD",
"subtotal_amount": 25,
"discount_amount": 25,
"fees_covered_amount": 25,
"total_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"donation_amount": 25,
"payment_method": "Example",
"payment_status": "paid",
"payment_instructions": "Example",
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"issued_at": "2026-10-20T12:00:00Z",
"receipt_note": "Ticket fair market value is separated from deductible event support.",
"adjustment_type": "refund",
"refunded_amount": 25,
"active_total_amount": 25,
"active_tax_deductible_amount": 25,
"adjustment_reason": "Example",
"adjusted_at": "2026-10-20T12:00:00Z"
},
"receipt_sent_at": "2026-10-20T12:00:00Z",
"registration_questions": [
{
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false,
"id": 42,
"help_text": "Example",
"applies_to_ticket_type_ids": [
42
]
}
],
"event": {
"id": 42,
"branding_program_id": 42,
"name": "Annual Gala",
"slug": "annual-gala",
"starts_at": "2026-10-20T12:00:00Z",
"timezone": "Africa/Kampala",
"location": {
"mode": "released_full",
"label": "Kampala",
"venue": "Example",
"address": "Example",
"map_allowed": false
}
},
"registration_groups": [
{
"id": 42,
"source_kind": "ticket",
"source_id": 42,
"event_ticket_type_id": 42,
"kind": "individual",
"label": "Example",
"admissions_reserved": 42,
"attendee_details_timing": "checkout",
"status": "complete",
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
},
"details_completed_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"attendee_ids": [
42
]
}
],
"attendees": [
{
"id": 42,
"event_registration_group_id": 42,
"event_ticket_type_id": 42,
"ticket_code": "EVT-42-00001",
"name": "Jane Doe",
"first_name": "Example",
"last_name": "Example",
"email": "Example",
"ticket_type": "Example",
"table": "Example",
"status": "registered",
"qr_token": "<string>",
"details_completed_at": "2026-10-20T12:00:00Z",
"qr_url": "Example",
"wallet_pass_url": "Example",
"wallet_pass_status": "inactive",
"checked_in_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"metadata": {
"source": "Example",
"event_sponsor_id": 42,
"sponsor_ticket_slot": 42
}
}
],
"sponsors": [
{
"id": 42,
"company_name": "Example",
"contact_name": "Example",
"contact_email": "Example",
"contact_phone": "Example",
"notes": "Example",
"status": "active",
"amount": 25,
"fair_market_value": 25,
"included_tickets_assigned": 42,
"public_visibility": false,
"renewal_follow_up_at": "2026-10-20T12:00:00Z",
"logo_upload_id": 42,
"logo_url": "Example",
"package": {
"id": 42,
"name": "Example",
"tier": "Example",
"included_tickets": 42,
"included_tables": 42
},
"deliverables": [
{
"id": 42,
"type": "logo",
"label": "Logo placement",
"status": "pending",
"due_at": "2026-10-20T12:00:00Z",
"completed_at": "2026-10-20T12:00:00Z"
}
]
}
],
"auction_items": [
{
"id": 42,
"event_auction_item_id": 42,
"name": "Example",
"amount": 25,
"quantity": 42,
"status": "paid",
"bidder_name": "Example",
"bidder_email": "Example"
}
],
"payment_reconciliation_required": false,
"payment_provider_status": "Example"
},
"errors": {}
}{
"status": "error",
"error_code": "CHECKOUT_PAYMENT_UNAVAILABLE",
"message": "Payments are temporarily unavailable.",
"payment_availability": {}
}Authorizations
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Record ID in the authenticated organization.
42
Record ID in the authenticated organization.
42
Body
Accessible donor matching the registration purchaser.
42
Fresh eligible opaque reference from saved-payment-methods.
4096"issued-encrypted-reference"
Amount reviewed with donor; must exactly match order total in processor minor units.
x >= 0.0125
Must be accepted to record the donor authorization.
true
Current authorization statement version.
event_saved_method_v1 "event_saved_method_v1"
Stable key for this authorized attempt; repeat unchanged after an indeterminate outcome.
120"authorized-charge-1"
Response
Charge an explicitly authorized saved event card completed.
Show child attributes
Show child attributes
curl --request POST \
--url https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payer_donor_id": 42,
"payment_method_reference": "issued-encrypted-reference",
"reviewed_amount": 25,
"authorization_confirmed": true,
"authorization_statement_version": "event_saved_method_v1",
"idempotency_key": "authorized-charge-1"
}
'import requests
url = "https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method"
payload = {
"payer_donor_id": 42,
"payment_method_reference": "issued-encrypted-reference",
"reviewed_amount": 25,
"authorization_confirmed": True,
"authorization_statement_version": "event_saved_method_v1",
"idempotency_key": "authorized-charge-1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payer_donor_id: 42,
payment_method_reference: 'issued-encrypted-reference',
reviewed_amount: 25,
authorization_confirmed: true,
authorization_statement_version: 'event_saved_method_v1',
idempotency_key: 'authorized-charge-1'
})
};
fetch('https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'payer_donor_id' => 42,
'payment_method_reference' => 'issued-encrypted-reference',
'reviewed_amount' => 25,
'authorization_confirmed' => true,
'authorization_statement_version' => 'event_saved_method_v1',
'idempotency_key' => 'authorized-charge-1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method"
payload := strings.NewReader("{\n \"payer_donor_id\": 42,\n \"payment_method_reference\": \"issued-encrypted-reference\",\n \"reviewed_amount\": 25,\n \"authorization_confirmed\": true,\n \"authorization_statement_version\": \"event_saved_method_v1\",\n \"idempotency_key\": \"authorized-charge-1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payer_donor_id\": 42,\n \"payment_method_reference\": \"issued-encrypted-reference\",\n \"reviewed_amount\": 25,\n \"authorization_confirmed\": true,\n \"authorization_statement_version\": \"event_saved_method_v1\",\n \"idempotency_key\": \"authorized-charge-1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/events/{eventId}/orders/{orderId}/charge-saved-payment-method")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payer_donor_id\": 42,\n \"payment_method_reference\": \"issued-encrypted-reference\",\n \"reviewed_amount\": 25,\n \"authorization_confirmed\": true,\n \"authorization_statement_version\": \"event_saved_method_v1\",\n \"idempotency_key\": \"authorized-charge-1\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 42,
"order_number": "EVT-42-001",
"status": "completed",
"payment_status": "paid",
"payment_method": "Example",
"payment_instructions": "Example",
"gateway": "Example",
"payment_intent_id": "Example",
"subtotal_amount": 25,
"discount_amount": 25,
"donation_amount": 25,
"fees_covered_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"total_amount": 25,
"currency": "USD",
"purchaser_name": "Example",
"purchaser_email": "Example",
"version": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_expires_at": "2026-10-20T12:00:00Z",
"quote_fingerprint": "Example",
"quote_snapshot": {
"quote_fingerprint": "sha256:1792497900:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expires_at": "2026-10-20T12:00:00Z",
"currency": "USD",
"availability": {
"event_state": "open",
"admissions_requested": 42,
"admissions_remaining": 42
},
"lines": [
{
"source": "ticket",
"source_id": 42,
"label": "General admission",
"units": 42,
"admissions_per_unit": 42,
"admissions": 42,
"pre_reserved_units": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00",
"subtotal": "25.00",
"discount": "25.00",
"total": "25.00",
"non_deductible": "25.00",
"snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"promo_code_id": 42,
"promo_code": "Example",
"subtotal": "25.00",
"discount": "25.00",
"fee_coverage": "25.00",
"donation": "25.00",
"tax_deductible": "25.00",
"non_deductible": "25.00",
"total": "25.00",
"attendee_slots": 42
},
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"metadata": {
"registration_version": 42,
"conversion_intents": {
"recurring_gift": false,
"child_sponsorship": false
},
"sponsorship_interest": {
"program_id": 42,
"recipient_id": 42,
"recipient_label": "Alex",
"url": "/frontend/view_entity/42/7/9"
}
},
"receipt_snapshot": {
"receipt_type": "event_combined_receipt",
"event_id": 42,
"event_name": "Annual Gala",
"order_number": "EVT-42-001",
"donation_id": 42,
"currency": "USD",
"subtotal_amount": 25,
"discount_amount": 25,
"fees_covered_amount": 25,
"total_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"donation_amount": 25,
"payment_method": "Example",
"payment_status": "paid",
"payment_instructions": "Example",
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"issued_at": "2026-10-20T12:00:00Z",
"receipt_note": "Ticket fair market value is separated from deductible event support.",
"adjustment_type": "refund",
"refunded_amount": 25,
"active_total_amount": 25,
"active_tax_deductible_amount": 25,
"adjustment_reason": "Example",
"adjusted_at": "2026-10-20T12:00:00Z"
},
"receipt_sent_at": "2026-10-20T12:00:00Z",
"registration_questions": [
{
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false,
"id": 42,
"help_text": "Example",
"applies_to_ticket_type_ids": [
42
]
}
],
"event": {
"id": 42,
"branding_program_id": 42,
"name": "Annual Gala",
"slug": "annual-gala",
"starts_at": "2026-10-20T12:00:00Z",
"timezone": "Africa/Kampala",
"location": {
"mode": "released_full",
"label": "Kampala",
"venue": "Example",
"address": "Example",
"map_allowed": false
}
},
"registration_groups": [
{
"id": 42,
"source_kind": "ticket",
"source_id": 42,
"event_ticket_type_id": 42,
"kind": "individual",
"label": "Example",
"admissions_reserved": 42,
"attendee_details_timing": "checkout",
"status": "complete",
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
},
"details_completed_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"attendee_ids": [
42
]
}
],
"attendees": [
{
"id": 42,
"event_registration_group_id": 42,
"event_ticket_type_id": 42,
"ticket_code": "EVT-42-00001",
"name": "Jane Doe",
"first_name": "Example",
"last_name": "Example",
"email": "Example",
"ticket_type": "Example",
"table": "Example",
"status": "registered",
"qr_token": "<string>",
"details_completed_at": "2026-10-20T12:00:00Z",
"qr_url": "Example",
"wallet_pass_url": "Example",
"wallet_pass_status": "inactive",
"checked_in_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"metadata": {
"source": "Example",
"event_sponsor_id": 42,
"sponsor_ticket_slot": 42
}
}
],
"sponsors": [
{
"id": 42,
"company_name": "Example",
"contact_name": "Example",
"contact_email": "Example",
"contact_phone": "Example",
"notes": "Example",
"status": "active",
"amount": 25,
"fair_market_value": 25,
"included_tickets_assigned": 42,
"public_visibility": false,
"renewal_follow_up_at": "2026-10-20T12:00:00Z",
"logo_upload_id": 42,
"logo_url": "Example",
"package": {
"id": 42,
"name": "Example",
"tier": "Example",
"included_tickets": 42,
"included_tables": 42
},
"deliverables": [
{
"id": 42,
"type": "logo",
"label": "Logo placement",
"status": "pending",
"due_at": "2026-10-20T12:00:00Z",
"completed_at": "2026-10-20T12:00:00Z"
}
]
}
],
"auction_items": [
{
"id": 42,
"event_auction_item_id": 42,
"name": "Example",
"amount": 25,
"quantity": 42,
"status": "paid",
"bidder_name": "Example",
"bidder_email": "Example"
}
],
"payment_reconciliation_required": false,
"payment_provider_status": "Example"
}
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}{
"message": "The prior payment result could not be confirmed.",
"data": {
"id": 42,
"order_number": "EVT-42-001",
"status": "completed",
"payment_status": "paid",
"payment_method": "Example",
"payment_instructions": "Example",
"gateway": "Example",
"payment_intent_id": "Example",
"subtotal_amount": 25,
"discount_amount": 25,
"donation_amount": 25,
"fees_covered_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"total_amount": 25,
"currency": "USD",
"purchaser_name": "Example",
"purchaser_email": "Example",
"version": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_expires_at": "2026-10-20T12:00:00Z",
"quote_fingerprint": "Example",
"quote_snapshot": {
"quote_fingerprint": "sha256:1792497900:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expires_at": "2026-10-20T12:00:00Z",
"currency": "USD",
"availability": {
"event_state": "open",
"admissions_requested": 42,
"admissions_remaining": 42
},
"lines": [
{
"source": "ticket",
"source_id": 42,
"label": "General admission",
"units": 42,
"admissions_per_unit": 42,
"admissions": 42,
"pre_reserved_units": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00",
"subtotal": "25.00",
"discount": "25.00",
"total": "25.00",
"non_deductible": "25.00",
"snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"promo_code_id": 42,
"promo_code": "Example",
"subtotal": "25.00",
"discount": "25.00",
"fee_coverage": "25.00",
"donation": "25.00",
"tax_deductible": "25.00",
"non_deductible": "25.00",
"total": "25.00",
"attendee_slots": 42
},
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"metadata": {
"registration_version": 42,
"conversion_intents": {
"recurring_gift": false,
"child_sponsorship": false
},
"sponsorship_interest": {
"program_id": 42,
"recipient_id": 42,
"recipient_label": "Alex",
"url": "/frontend/view_entity/42/7/9"
}
},
"receipt_snapshot": {
"receipt_type": "event_combined_receipt",
"event_id": 42,
"event_name": "Annual Gala",
"order_number": "EVT-42-001",
"donation_id": 42,
"currency": "USD",
"subtotal_amount": 25,
"discount_amount": 25,
"fees_covered_amount": 25,
"total_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"donation_amount": 25,
"payment_method": "Example",
"payment_status": "paid",
"payment_instructions": "Example",
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"issued_at": "2026-10-20T12:00:00Z",
"receipt_note": "Ticket fair market value is separated from deductible event support.",
"adjustment_type": "refund",
"refunded_amount": 25,
"active_total_amount": 25,
"active_tax_deductible_amount": 25,
"adjustment_reason": "Example",
"adjusted_at": "2026-10-20T12:00:00Z"
},
"receipt_sent_at": "2026-10-20T12:00:00Z",
"registration_questions": [
{
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false,
"id": 42,
"help_text": "Example",
"applies_to_ticket_type_ids": [
42
]
}
],
"event": {
"id": 42,
"branding_program_id": 42,
"name": "Annual Gala",
"slug": "annual-gala",
"starts_at": "2026-10-20T12:00:00Z",
"timezone": "Africa/Kampala",
"location": {
"mode": "released_full",
"label": "Kampala",
"venue": "Example",
"address": "Example",
"map_allowed": false
}
},
"registration_groups": [
{
"id": 42,
"source_kind": "ticket",
"source_id": 42,
"event_ticket_type_id": 42,
"kind": "individual",
"label": "Example",
"admissions_reserved": 42,
"attendee_details_timing": "checkout",
"status": "complete",
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
},
"details_completed_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"attendee_ids": [
42
]
}
],
"attendees": [
{
"id": 42,
"event_registration_group_id": 42,
"event_ticket_type_id": 42,
"ticket_code": "EVT-42-00001",
"name": "Jane Doe",
"first_name": "Example",
"last_name": "Example",
"email": "Example",
"ticket_type": "Example",
"table": "Example",
"status": "registered",
"qr_token": "<string>",
"details_completed_at": "2026-10-20T12:00:00Z",
"qr_url": "Example",
"wallet_pass_url": "Example",
"wallet_pass_status": "inactive",
"checked_in_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"metadata": {
"source": "Example",
"event_sponsor_id": 42,
"sponsor_ticket_slot": 42
}
}
],
"sponsors": [
{
"id": 42,
"company_name": "Example",
"contact_name": "Example",
"contact_email": "Example",
"contact_phone": "Example",
"notes": "Example",
"status": "active",
"amount": 25,
"fair_market_value": 25,
"included_tickets_assigned": 42,
"public_visibility": false,
"renewal_follow_up_at": "2026-10-20T12:00:00Z",
"logo_upload_id": 42,
"logo_url": "Example",
"package": {
"id": 42,
"name": "Example",
"tier": "Example",
"included_tickets": 42,
"included_tables": 42
},
"deliverables": [
{
"id": 42,
"type": "logo",
"label": "Logo placement",
"status": "pending",
"due_at": "2026-10-20T12:00:00Z",
"completed_at": "2026-10-20T12:00:00Z"
}
]
}
],
"auction_items": [
{
"id": 42,
"event_auction_item_id": 42,
"name": "Example",
"amount": 25,
"quantity": 42,
"status": "paid",
"bidder_name": "Example",
"bidder_email": "Example"
}
],
"payment_reconciliation_required": false,
"payment_provider_status": "Example"
},
"status": "error",
"error_code": "CHECKOUT_PAYMENT_UNAVAILABLE",
"payment_availability": {}
}{
"message": "The saved payment method could not be charged.",
"data": {
"id": 42,
"order_number": "EVT-42-001",
"status": "completed",
"payment_status": "paid",
"payment_method": "Example",
"payment_instructions": "Example",
"gateway": "Example",
"payment_intent_id": "Example",
"subtotal_amount": 25,
"discount_amount": 25,
"donation_amount": 25,
"fees_covered_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"total_amount": 25,
"currency": "USD",
"purchaser_name": "Example",
"purchaser_email": "Example",
"version": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservation_expires_at": "2026-10-20T12:00:00Z",
"quote_fingerprint": "Example",
"quote_snapshot": {
"quote_fingerprint": "sha256:1792497900:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expires_at": "2026-10-20T12:00:00Z",
"currency": "USD",
"availability": {
"event_state": "open",
"admissions_requested": 42,
"admissions_remaining": 42
},
"lines": [
{
"source": "ticket",
"source_id": 42,
"label": "General admission",
"units": 42,
"admissions_per_unit": 42,
"admissions": 42,
"pre_reserved_units": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00",
"subtotal": "25.00",
"discount": "25.00",
"total": "25.00",
"non_deductible": "25.00",
"snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"promo_code_id": 42,
"promo_code": "Example",
"subtotal": "25.00",
"discount": "25.00",
"fee_coverage": "25.00",
"donation": "25.00",
"tax_deductible": "25.00",
"non_deductible": "25.00",
"total": "25.00",
"attendee_slots": 42
},
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"metadata": {
"registration_version": 42,
"conversion_intents": {
"recurring_gift": false,
"child_sponsorship": false
},
"sponsorship_interest": {
"program_id": 42,
"recipient_id": 42,
"recipient_label": "Alex",
"url": "/frontend/view_entity/42/7/9"
}
},
"receipt_snapshot": {
"receipt_type": "event_combined_receipt",
"event_id": 42,
"event_name": "Annual Gala",
"order_number": "EVT-42-001",
"donation_id": 42,
"currency": "USD",
"subtotal_amount": 25,
"discount_amount": 25,
"fees_covered_amount": 25,
"total_amount": 25,
"tax_deductible_amount": 25,
"non_deductible_amount": 25,
"donation_amount": 25,
"payment_method": "Example",
"payment_status": "paid",
"payment_instructions": "Example",
"line_items": [
{
"type": "ticket",
"label": "General admission",
"ticket_type_id": 42,
"sponsor_package_id": 42,
"auction_item_id": 42,
"auction_bid_id": 42,
"quantity": 42,
"unit_amount": 25,
"line_total": 25,
"fair_market_total": 25,
"discount": 25,
"admissions_per_unit": 42,
"admissions": 42,
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
}
}
],
"issued_at": "2026-10-20T12:00:00Z",
"receipt_note": "Ticket fair market value is separated from deductible event support.",
"adjustment_type": "refund",
"refunded_amount": 25,
"active_total_amount": 25,
"active_tax_deductible_amount": 25,
"adjustment_reason": "Example",
"adjusted_at": "2026-10-20T12:00:00Z"
},
"receipt_sent_at": "2026-10-20T12:00:00Z",
"registration_questions": [
{
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false,
"id": 42,
"help_text": "Example",
"applies_to_ticket_type_ids": [
42
]
}
],
"event": {
"id": 42,
"branding_program_id": 42,
"name": "Annual Gala",
"slug": "annual-gala",
"starts_at": "2026-10-20T12:00:00Z",
"timezone": "Africa/Kampala",
"location": {
"mode": "released_full",
"label": "Kampala",
"venue": "Example",
"address": "Example",
"map_allowed": false
}
},
"registration_groups": [
{
"id": 42,
"source_kind": "ticket",
"source_id": 42,
"event_ticket_type_id": 42,
"kind": "individual",
"label": "Example",
"admissions_reserved": 42,
"attendee_details_timing": "checkout",
"status": "complete",
"source_snapshot": {
"name": "General admission",
"code": "Example",
"tier": "Example",
"registration_group_kind": "individual",
"group_label_prompt": "Example",
"attendee_details_timing": "checkout",
"admissions_per_unit": 42,
"unit_amount": "25.00",
"fair_market_value": "25.00"
},
"details_completed_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"attendee_ids": [
42
]
}
],
"attendees": [
{
"id": 42,
"event_registration_group_id": 42,
"event_ticket_type_id": 42,
"ticket_code": "EVT-42-00001",
"name": "Jane Doe",
"first_name": "Example",
"last_name": "Example",
"email": "Example",
"ticket_type": "Example",
"table": "Example",
"status": "registered",
"qr_token": "<string>",
"details_completed_at": "2026-10-20T12:00:00Z",
"qr_url": "Example",
"wallet_pass_url": "Example",
"wallet_pass_status": "inactive",
"checked_in_at": "2026-10-20T12:00:00Z",
"answers": [
{
"id": 42,
"question_id": 42,
"question": {
"field_key": "dietary",
"field_label": "Dietary requirements",
"field_type": "text",
"options": [
"Vegetarian"
],
"scope": "buyer",
"required": false
},
"answer": "Vegetarian"
}
],
"metadata": {
"source": "Example",
"event_sponsor_id": 42,
"sponsor_ticket_slot": 42
}
}
],
"sponsors": [
{
"id": 42,
"company_name": "Example",
"contact_name": "Example",
"contact_email": "Example",
"contact_phone": "Example",
"notes": "Example",
"status": "active",
"amount": 25,
"fair_market_value": 25,
"included_tickets_assigned": 42,
"public_visibility": false,
"renewal_follow_up_at": "2026-10-20T12:00:00Z",
"logo_upload_id": 42,
"logo_url": "Example",
"package": {
"id": 42,
"name": "Example",
"tier": "Example",
"included_tickets": 42,
"included_tables": 42
},
"deliverables": [
{
"id": 42,
"type": "logo",
"label": "Logo placement",
"status": "pending",
"due_at": "2026-10-20T12:00:00Z",
"completed_at": "2026-10-20T12:00:00Z"
}
]
}
],
"auction_items": [
{
"id": 42,
"event_auction_item_id": 42,
"name": "Example",
"amount": 25,
"quantity": 42,
"status": "paid",
"bidder_name": "Example",
"bidder_email": "Example"
}
],
"payment_reconciliation_required": false,
"payment_provider_status": "Example"
},
"errors": {}
}{
"status": "error",
"error_code": "CHECKOUT_PAYMENT_UNAVAILABLE",
"message": "Payments are temporarily unavailable.",
"payment_availability": {}
}