Skip to content

Postman Collection (DQR)

← Back to Postman Collections

Use this Postman collection to quickly integrate and test Amazon Pay Dynamic QR APIs — including QR generation, cancellation, transaction status checks, and refunds — with pre-built requests and automated request signing.

Get the Collection

▶ Fork Collection

Get a copy of all pre-built requests, environment variables, and auto-signing scripts in your own workspace. Best for developers ready to integrate.

  1. Click "Fork Collection" below
  2. Sign in to your Postman account
  3. Choose a workspace to fork into
  4. Configure environment variables
  5. Start making API calls
Fork Collection

🤖 Try with AI Agent

Explore the APIs interactively using Postman's AI assistant. Ask natural language questions and get guided through the integration. Best for developers exploring or learning the APIs.

  1. Fork the collection to your workspace first
  2. Open the forked collection in Postman
  3. Click the AI Agent icon in the bottom-right panel
  4. Ask questions like "How do I generate a QR code?"
  5. Follow the guided steps to test APIs
View Collection & Fork

📥 Download Collection

Download the collection JSON file and import it directly into Postman. Best for offline use or restricted network environments.

  1. Click "Download JSON" below
  2. Open Postman
  3. Click Import → Upload Files
  4. Select the downloaded JSON file
  5. Configure environment variables and start testing
Download JSON

Configure Environment Variables

After forking or importing the collection, create a new environment in Postman and add the following variables:

Variable Description
mid Your Merchant ID
secret_key Your Secret Key for signing
access_key Your Access Key for authorization
hostname Production: amazonpay.amazon.in

Available APIs in the Collection

API Description
Generate QR Generate a Dynamic QR code for a payment transaction
Cancel QR Cancel a previously generated QR code
Check Transaction Status Check the status of a QR payment transaction
Initiate Refund Initiate a refund for a completed QR payment
Check Refund Status Check the status of a refund transaction

Usage

  1. Run Generate QR first — this creates a QR code and saves the transaction_id automatically.

  2. All APIs will auto-sign requests using your credentials.

  3. transaction_id and refund_id are auto-generated when you run Generate QR / Initiate Refund.

  4. Status check APIs automatically use the last generated transaction/refund ID.

Notes

  • The QR code returned by Generate QR API can be rendered as an image for customer scanning.

  • Use Check Transaction Status API or IPN (Instant Payment Notification) to track payment completion.