Postman Collection

Import the DigetPay Fin Postman collection and environment.

API Documentation

Explore the complete DigetPay API documentation with detailed endpoints, request parameters, authentication requirements, JSON examples, and Success / Failed responses.

Open DigetPay Integrations →

The documentation covers both Hosted Checkout and S2S APIs and provides ready-to-use examples for testing and integration.


Import the official DigetPay Postman collection to test the available merchant APIs using ready-to-use requests, JSON payloads, and example responses.

The collection is organized by integration type, making it easy to test both Hosted Checkout and S2S payment flows in Test Mode with your Test API Key.

📘

The Postman collection uses the same API endpoints, request parameters, and response structures documented in the DigetPay API documentation.

Each API includes example requests and Success / Failed response examples to help you test and troubleshoot your integration.

📘

DigetPay uses one API base URL, https://api.digetpay.com/v1, for both Test and Live. The API key you set in the environment decides the mode: use your Test API Key for testing and your Live API Key only for live payments.

Collection Structure

The collection is organized into the following API groups:

Checkout

Hosted Checkout APIs allow you to create and manage payment sessions where the customer is redirected to the DigetPay-hosted checkout page.

Available APIs:

  • Initiate — Create a Hosted Checkout payment session and receive a redirectUrl.
  • Recurring — Charge a customer using a previously generated recurring token.
  • Refund — Refund a previously completed Checkout transaction.
  • Status — Retrieve the latest status of a Checkout transaction.

S2S

S2S APIs allow merchants to process and manage payments directly from their own server.

Available APIs:

  • Sale — Process a payment directly from your server.
  • Authorization — Authorize a payment without capturing the funds immediately.
  • Capture — Capture funds from a previously authorized transaction.
  • Void — Release an uncaptured authorization.
  • Refund — Refund a previously completed transaction.
  • Recurring — Charge a customer using a previously generated recurring token.

Files

Download the official Postman collection and environment from the DigetPay repository:

  • DigetPay-Fin.postman_collection.json
  • DigetPay-Fin.postman_environment.json

Or access the files from GitHub:

DigetPay — docs/postman

🚧

Check the imported environment: if the environment file you import sets baseUrl to anything other than https://api.digetpay.com/v1, change it to that value before sending requests. See Environment Variables.


Import Steps

  1. Open Postman.
  2. Select Import.
  3. Import the collection file (.postman_collection.json).
  4. Import the environment file (.postman_environment.json).
  5. Select the imported DigetPay environment.
  6. Confirm baseUrl is https://api.digetpay.com/v1.
  7. Set apiKey to your Test API Key.
  8. Select the imported DigetPay collection and start testing.
🚧

Important: Use your Test API Key for testing.

Never import your Live API Key into shared Postman workspaces or commit it to source control. If you need to run requests in Live Mode, use a separate, private environment with your Live API Key.


Environment Variables

The Postman environment contains the variables required to run the collection.

VariablePurpose
baseUrlDigetPay API base URL: https://api.digetpay.com/v1 (the same for Test and Live)
apiKeyYour DigetPay merchant API key. Use your Test API Key for testing; the key decides the mode.
sessionIdHosted Checkout session identifier
gatewayTransactionIdGateway transaction ID used for Checkout status and refund operations
transactionIdTransaction ID used by S2S operations
recurringTokenToken used for recurring payment requests
refundAmountAmount to refund

Environment Example

{
  "baseUrl": "https://api.digetpay.com/v1",
  "apiKey": "YOUR_TEST_API_KEY",
  "sessionId": "",
  "gatewayTransactionId": "",
  "transactionId": "",
  "recurringToken": "",
  "refundAmount": "0.20"
}

Switching to Live Mode

To send requests in Live Mode, duplicate the environment, keep baseUrl unchanged, and replace apiKey with your Live API Key. Keep the Live environment private and never use it for testing.


Did this page help you?