Postman Collection

Import the DigetPay Fin Postman collection and environment.

Import the official Postman files to test all merchant APIs with JSON request and response bodies.

The Postman collection uses the same JSON payloads documented in Quick Start. Each request includes Success and Failed example responses.

Files

Download from the DigetPay staging backend repository (docs/postman/):

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

Or from GitHub: DigetPay staging backend — docs/postman

Import steps

  1. Open Postman → Import
  2. Import both JSON files
  3. Select environment DigetPay Fin
  4. Set apiKey to your DigetPay merchant API key

Important: Use your Fin staging API key only. Do not import production keys into shared Postman workspaces.

Environment variables

VariablePurpose
baseUrlhttps://fin-api.digetpay.com/v1
apiKeyDigetPay merchant API key
sessionIdAuto-set after Create Payment Link
gatewayTransactionIdgateway UUID for Status and Refund
refundAmountAmount to refund
{
  "baseUrl": "https://fin-api.digetpay.com/v1",
  "apiKey": "YOUR_STAGING_API_KEY",
  "sessionId": "",
  "gatewayTransactionId": "",
  "refundAmount": "0.20"
}

Collection requests

#RequestMethodEndpoint
1Create Payment LinkPOST/payment/checkout/intiate
2Query Transaction StatusGET/payment/checkout/status?id={gatewayTransactionId}
3Process RefundPOST/payment/refund

Sample request bodies (JSON)

Create Payment Link:

{
  "merchantOrderId": "PAY-POSTMAN-001",
  "amount": 0.20,
  "currency": "SAR",
  "customerPhone": "501223324",
  "successUrl": "https://fin-admin.digetpay.com/pay/checkout/success",
  "failureUrl": "https://fin-admin.digetpay.com/pay/checkout/failure"
}

Process Refund:

{
  "transactionId": "{{gatewayTransactionId}}",
  "amount": 0.20
}

Flow

  1. Run Create Payment Link → open redirectUrl and pay
  2. Set gatewayTransactionId in the environment (gateway UUID)
  3. Run Query Transaction Status
  4. Run Process Refund with the same UUID

Pass: Status returns transactionStatus: SUCCESS and refund returns result: accepted.

Common failure: Using sessionId instead of gatewayTransactionId for steps 3–4.

Each request includes Success and Failed example responses in the collection.


Did this page help you?