Order Status API

This is a Server-to-Server API that takes orderid as a path parameter and returns the status of the order along with other details. For information on different order status and handling, refer herelink icon

Note
  1. Use order.status as the main and highest-priority payment status. It is the only field that represents the overall state of the order.

  2. txn_detail.status, refunds[].status, and chargeback.status are entity-specific statuses. They describe the state of the transaction, refund, and chargeback entities respectively and cannot override the overall payment status.

  3. Final payment status cannot be derived solely from txn, refund, or chargeback statuses.

  4. If a transaction request times out, first call the Order Status API to check if the payment is already in progress (PENDING_VBV or CHARGED) before deciding to retry, preventing accidental double charges.

API Endpoints
Sandbox Link
GET
https://api.sandbox.juspay.io/orders/{order_id}
Production Link
GET
https://api.juspay.io/orders/{order_id}
Authorization Header
Headers
200 : Success
400 : Invalid Input data
401 : Authentication Failed
500 : Unexpected Error
Last updated 1 month ago