ARK External Transaction Integration • Developer Playground
HMAC-SHA256 Test Runner
POST

External Transaction API Explorer

⚡ Request Parameters & HMAC Signing

Content-Type: application/json
X-Ark-Timestamp: 1775468400
X-Ark-Signature: (generating...)
String to sign: timestamp.rawJson

📡 Live API Response

// Response will appear here after clicking "Send Transaction"...

📖 Payload Definition Shared to Client (Contract)

Endpoint: POST /api/external/transaction
Field Name Data Type Required? Description & Validation Rules
externalTransactionId String Yes Unique identifier from the Catalog (Order ID / Cart UUID). Max 255 characters. Used for idempotency and transaction tracking.
firstName String Yes Donor's first name. Max 100 characters.
lastName String Yes Donor's last name. Max 100 characters.
email String Yes Donor's valid email address. Core field used for contact auto-matching. Max 255 characters.
phone String Optional Donor's phone number (e.g., 540-555-0199). Core field used for contact auto-matching.
organizationName String Optional Company, church, or organization name if giving on behalf of an entity. When provided, automatically creates/matches an Account in Salesforce.
addressLine1 String Optional Street address. Max 255 characters.
addressLine2 String Optional Suite, unit, apartment number. Max 255 characters.
city String Optional City / locality. Max 100 characters.
state String Optional State, province, or region (e.g., VA). Max 100 characters.
country String Optional Country code or name (e.g., US). Max 10 characters.
postalCode String Optional ZIP or postal code. Max 30 characters. Used in Donation Lobby similarity scoring.
totalAmount Number Yes Total transaction charge amount. Positive decimal number greater than 0.00. Must equal the sum of all item amounts (sum(items.itemAmount)).
transactionDateTime String Optional ISO-8601 formatted date/time (e.g., 2026-10-12T14:30:00Z). Ark converts timestamp to ANM's local time zone (America/New_York) and uses YYYY-MM-DD to populate Salesforce Opportunity.CloseDate. Defaults to current date in ANM's local time zone if omitted.
paymentGateway String Yes Payment processor name (e.g., Authorize.Net, Stripe, PayPal). Max 100 characters.
paymentMethod String Yes Tender type (e.g., Catalog Credit Card, Catalog Check, ACH). Max 80 characters. Mapped to Salesforce Opportunity.Payment_Method__c.
stripeTransactionId String Yes Stripe transaction identifier from WooCommerce (e.g., py_..., ch_..., pi_..., in_...). Validated synchronously against Stripe API upon ingestion and required for automated refunds in the Admin Portal.
currency String Optional 3-letter ISO currency code (e.g., USD). Defaults to USD if omitted.
campaignId String Optional SalesforceId of Campaign (15 or 18 chars, e.g., 701...). Defaults to null.
source String Optional Stores the channel source of the transaction. Defaults to Catalog.
comments String Optional Donor cart comments or special gift notes. Max 1000 characters.
emailOptIn Boolean Optional Flags donor contact consent and triggers Intent Company / LeadConnector contact sync. Defaults to false.
sendReceipt Boolean Optional Whether to send an automated tax receipt email (with PDF receipt attached) to the donor's email address. Supported for both auto-mapped and unmapped gifts. Defaults to false.
items Array Yes Non-empty array of item allocation objects. At least 1 item is required.
⚠️ Important JSON Syntax: Do NOT include a trailing comma after the last item in the items array. Trailing commas cause a syntax error in standard JSON parsers.
items[].gauCode String Yes Valid ANM General Accounting Unit Code (e.g., 470LYNM002). Must match an active GAU in Salesforce.
items[].itemAmount Number Yes Portion of total amount allocated to this GAU. Positive decimal greater than 0.00.
items[].description String Optional Catalog item / product title. Max 255 characters.

📌 GAU Items Payload Guide: Single vs Multiple Allocations

The items array must contain one or more GAU allocation objects. The sum of all itemAmount values must strictly match the totalAmount.

⚠️ Critical JSON Rule: No Trailing Commas

Standard JSON strictly disallows trailing commas (,) after the final item in an array or after the final key-value pair of an object. A trailing comma will cause the server's JSON parser to reject the payload with a syntax error.

Example 1: Single GAU Item
{
  "totalAmount": 100.00,
  "items": [
    {
      "gauCode": "470LYNM002",
      "itemAmount": 100.00,
      "description": "Bibles for Native Pastors"
    }
  ]
}
✓ Exactly 1 item. No comma after the closing brace }.
Example 2: Multiple GAU Items
{
  "totalAmount": 250.00,
  "items": [
    {
      "gauCode": "470LYNM002",
      "itemAmount": 100.00,
      "description": "Bibles for Native Pastors"
    },
    {
      "gauCode": "470LYNM003",
      "itemAmount": 150.00,
      "description": "Clean Water Wells Project"
    }
  ]
}
✓ Comma , separates item 1 and item 2. No comma after the second item.