StampMitraDevelopers
Livee-Stamp API

Payment

Create a payment intent and check payment status for an order.

Pricing, how it works and related APIs: Payment product page. Integrate with AI: copy the ready-made prompt. Markdown version: estamp-payment.md.

Where this API fits. Step 7 of 8 in the e-Stamp order flow. Calls need the payments.write, payments.read, orders.read scope on your API key. In sandbox the response is sample data, so you can build the whole flow before production access is approved. The order in which the calls must be made is in the e-Stamp order flow guide.

Create a payment intent

Endpoint

POST /v1/payments/intents

POST/v1/payments/intentsScope payments.write₹5 per successful callLive

Create a payment intent (Razorpay-backed) for an order.

Request

Request parameters

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
Idempotency-KeyheaderOptional idempotency key (1 to 255 characters), kept for 24 hours. The same key and the same request replays the stored response; the same key with a different request is 422 IDEMPOTENCY_KEY_REUSED; the same key while the first request is still running is 409 IDEMPOTENCY_IN_PROGRESS (see Retry-After).
externalOrderIdrequiredstringYour reference for the order being paid.
amountMinorrequiredintegerAmount in minor units (paise); positive integer.
currencyrequiredstringCurrency code, at least 3 characters, e.g. INR.
paymentConnectionIdrequiredstringId of one of your active payment connections.
Example

Make the call

curl -X POST "https://api-b2b.stampmitra.in/v1/payments/intents" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"externalOrderId":"ord_ext_123","amountMinor":50000,"currency":"INR","paymentConnectionId":"pc_8d1f3a2b"}'
Playground

Try it

Response

Response example

ResponseJSON
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "externalOrderId": "ord_ext_123",
  "coreOrderId": null,
  "amountMinor": 50000,
  "currency": "INR",
  "status": "CREATED",
  "providerIntentId": "order_Nf3k2m9QxPz1Ab",
  "createdAt": "2026-10-15T09:41:07.000Z"
}
Response fields
FieldType
idstring
externalOrderIdstring
coreOrderIdnull
amountMinornumber
currencystring
statusstring
providerIntentIdstring
createdAtstring

Get a payment intent

Endpoint

GET /v1/payments/intents/:id

GET/v1/payments/intents/:idScope payments.read₹5 per successful callLive

Fetch the current state of a payment intent.

Request

Request parameters

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
Example

Make the call

curl -X GET "https://api-b2b.stampmitra.in/v1/payments/intents/:id" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx"
Playground

Try it

Path parameters
Response

Response example

ResponseJSON
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "externalOrderId": "ord_ext_123",
  "coreOrderId": null,
  "amountMinor": 50000,
  "currency": "INR",
  "status": "CREATED",
  "providerIntentId": "order_Nf3k2m9QxPz1Ab",
  "createdAt": "2026-10-15T09:41:07.000Z"
}
Response fields
FieldType
idstring
externalOrderIdstring
coreOrderIdnull
amountMinornumber
currencystring
statusstring
providerIntentIdstring
createdAtstring

Get an order's payment

Endpoint

GET /v1/orders/:id/payment

GET/v1/orders/:id/paymentScope orders.read₹5 per successful callLive

Fetch the payment associated with a given order.

Request

Request parameters

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
Example

Make the call

curl -X GET "https://api-b2b.stampmitra.in/v1/orders/:id/payment" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx"
Playground

Try it

Path parameters