For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGuidesAPI Reference
HomeGuidesAPI Reference
  • Online API
    • API Environments
    • Direct Payment Flow
    • REST
    • HTTPS
    • Request Headers
    • Dates
    • Pagination
    • Authentication
    • Idempotent Requests
    • Timeouts
    • API Simulator
    • JavaScript afterpay.js
    • Errors
LogoLogo
On this page
  • Production
  • Sandbox
Online API

API Environments

Was this page helpful?

Direct Payment Flow

Next
Built with

Production

UK, FR, IT, ES, US, CA, AU, NZ
https://global-api.afterpay.com

Sandbox

UK, FR, IT, ES, US, CA, AU, NZ
https://global-api-sandbox.afterpay.com

If you are an existing merchant who is already integrated with a region-specific API (e.g. https://api.eu.afterpay.com) you can continue to use this endpoint in your current region.