Postman Collection

The following steps outline the steps to install Postman, configure your sandbox credentials and start testing the Afterpay API.

What is Postman?

Postman is a free-to-download tool for making HTTP requests.

Download Postman

  1. Visit www.getpostman.com and download the version of Postman required for your platform.

  2. Install Postman

Import the Afterpay Collection

  1. Open Postman

  2. Click Import

  3. Import the Afterpay Postman Collection for your region.

http://static-us.afterpay.com/api/sandbox/Afterpay_Online_US_API_v2.postman_collection.json
http://static-us.afterpay.com/api/sandbox/Afterpay_Online_AU_API_v2.postman_collection.json
http://static-us.afterpay.com/api/sandbox/Afterpay_Online_CA_API_v2.postman_collection.json



Create a Postman Test Environment

To access and utilize environment variables, you will need to configure a new Postman environment.

  1. Click on the gear icon in the top-right corner
  1. Click Add on the MANAGE ENVIRONMENTS modal that appears

  1. Name the environment
  1. Click Add to save the environment, then close the window

  2. Use this environment by selecting Afterpay Online US V2 from the dropdown list


Add Your Merchant ID and Secret Key

  1. Click on the 3 dots ... next to the collection name and click Edit
  1. Click the Authorization Tab

  2. Enter your Merchant ID in the Username field

  3. Enter your Secret Key in the Password field

  4. Click Update




Demo of API Calls and Afterpay Checkout Flow


Did this page help you?