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.
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.jsonDigetPay-Fin.postman_environment.json
Or access the files from GitHub:
Check the imported environment: if the environment file you import sets
baseUrlto anything other thanhttps://api.digetpay.com/v1, change it to that value before sending requests. See Environment Variables.
Import Steps
- Open Postman.
- Select Import.
- Import the collection file (
.postman_collection.json). - Import the environment file (
.postman_environment.json). - Select the imported DigetPay environment.
- Confirm
baseUrlishttps://api.digetpay.com/v1. - Set
apiKeyto your Test API Key. - 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.
| Variable | Purpose |
|---|---|
baseUrl | DigetPay API base URL: https://api.digetpay.com/v1 (the same for Test and Live) |
apiKey | Your DigetPay merchant API key. Use your Test API Key for testing; the key decides the mode. |
sessionId | Hosted Checkout session identifier |
gatewayTransactionId | Gateway transaction ID used for Checkout status and refund operations |
transactionId | Transaction ID used by S2S operations |
recurringToken | Token used for recurring payment requests |
refundAmount | Amount 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.
Updated about 2 months ago

