Template Docs Commerce APIs Webhooks Tools
Get Started
Get Started

Transactions API overview

Current version: 1.0
For versioning details, read the Upgrade guide.

Use the Transactions API to access financial transactions for orders and donations made on a Squarespace merchant site.

Payment gateways and processing errors

Transactions from a merchant site occur through a payment gateway. The Transactions API supports the following payment gateways: SQUARESPACE, STRIPE, PAYPAL, and SQUARE.

Payment gateway processing errors are logged by the Transactions API as one of the following:

GATEWAY_FEE_PROCEESING_ERROR An error occurred while retrieving payment processing fees; contact the payment gateway for more details.

GATEWAY_API_PERMISSION_ERROR The payment gateway has not granted Squarespace API access. Payment gateway needs to reconfigure API permission.

GATEWAY_DISCONNNECTED The payment gateway credentials configured for the site have expired or are missing; a connection to the payment gateway could not be established.

What information isn't available?

  • Order or donation details unrelated to payments, such as product information, merchant notes, and form data
  • Refunds initiated outside of Squarespace, e.g. via Stripe

API resources

The Transactions API returns Document resource objects. A Document is a collection of transactions for an order or a donation. There's a 1:1 relationship between a Document and an order or donation.

Document resources include information like:

  • Totals for an order or a donation, summing item sales, discounts, fees, shipping, taxes, and the grand total
  • Payments and payment types
  • Refunds
  • Payment gateway errors

Note: Only refunds initiated through Squarespace are captured and made available through the Transactions API.

Resource fields are described under Response example for each Transactions API endpoint.

Further reading