---
page_source: https://juspay.io/in/docs/upi-plugin-sdk/cordova/backend-apis/p2m-transaction-s
page_title: P2M Transaction Status
---

## API Version: default


## P2M Transaction Status



This is a Server-to-Server API that takes orderid as a path variable and returns the status of the order along with other details. ## Endpoints:
- Sandbox: https://sandbox.juspay.in/orders/{order_id}

- Production: https://api.juspay.in/orders/{order_id}

## Request Type: 
GET

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Consists of two parts.

* Username: API Key obtained from Juspay dashboard
* Password: Empty string
- Value: Example: MUQ2QUZEQzhFQTY0OUU5QTIxQzNFNTQwNkFDMEZCOg==
- Tags: Base64 Encoded username:password, required
## Headers:

#### x-merchantid:
Merchant ID provided by Juspay
- Value: Example: merchant-id
- Tags: string, required

#### version:
Pass the date in YYYY-MM-DD format
- Value: Example: 2023-01-01
- Tags: string, required
## Sample Code Snippets:
### Code Snippets:

#### Shell Code Snippet:

```shell
{"success":false,"message":"No Data found for the given path"}
```

### Sample Response:

#### JSON:
```plaintext
{"success":false,"message":"No Data found for the given path"}
```

## API Responses:
### 200:

#### id:
- Description: Unique ID generated by JusPay for the given order
- Tags: string

#### order_id:
- Description: Given order ID
- Tags: string

#### status:
- Description: Status of order. [Click here](../resources/error-codes) for transaction status codes
- Tags: string

#### status_id:
- Description: Status ID is a numeric id corresponding to the status value, [Click here](../resources/error-codes) for transaction status codes
- Tags: Integer

#### amount:
- Description: The order amount
- Tags: double

#### date_created:
- Description: Order creation timestamp in UTC
- Tags: string

#### customer_email:
- Description: The email Id of the customer passed during order creation
- Tags: string

#### customer_phone:
- Description: The phone number of the customer passed during order creation
- Tags: string

#### customer_id:
- Description: The customer id passed during order creation
- Tags: string

#### merchant_id:
- Description: The merchant id provided by Juspay
- Tags: string

#### currency:
- Description: The currency passed during order creation. Default is INR
- Tags: string

#### product_id:
- Description: The product_id provided during order creation. Empty in case its not passed
- Tags: string

#### txn_id:
- Description: Transaction ID for the payment attempt. Can be used as an identifier at PG end and will be present in reconciliation report.
- Tags: string

#### payment_method_type:
- Description: The payment method type used for transaction. Possible value- UPI
- Tags: string

#### payment_method:
- Description: The payment method used for the transaction. Example- UPI
- Tags: string

#### refunded:
- Description: **true**  if the order has been completely refunded. Will be false for partial refunds or if the order doesn't have any refunds.
- Tags: boolean

#### amount_refunded:
- Description: Amount which has been refunded so far for the given order
- Tags: double

#### txn_uuid:
- Description: The unique id generated by Juspay for a particular transaction. Can be used as an identifier in case of UPI transaction
- Tags: string

#### txn_detail:
- Description: The json object with the details of the transaction
- Tags: JSON

#### payment_gateway_response:
- Description: The json object with the details receive from PG
- Value:
  - **Payment_gateway_response.resp_code**:
    - Description: Unique ID generated by JusPay for the given order
    - Tags: string
  - **Payment_gateway_response.rrn**:
    - Description: The bank reference number provided by the gateway
    - Tags: string
  - **Payment_gateway_response.created**:
    - Description: The transaction creation timestamp
    - Tags: string
  - **Payment_gateway_response.epg_txn_id**:
    - Description: Transaction Id from the underlying gateway
    - Tags: string
  - **Payment_gateway_response.txn_id**:
    - Description: Transaction Id for the payment attempt
    - Tags: string
  - **Payment_gateway_response.resp_message**:
    - Description: The response message provided by the gateway
    - Tags: string
- Tags: JSON

#### gateway_id:
- Description: Gateway Id of the gateway used for performing this transactions
- Value: Example: AXIS_BIZ=511/ YES_BIZ=514/ RBL_BIZ=516
- Tags: integer

#### gateway_reference_id:
- Description: The gateway reference id used for the transaction
- Tags: string

#### upi:
- Description: The json containing the details of the UPI used for the transaction
- Value:
  - **Upi.txn_flow_type**:
    - Description: Transaction Flow type. Example- INAPP
    - Tags: string
  - **Upi.bank_name**:
    - Description: Name of the bank used for the transaction
    - Tags: string
  - **Upi.bank_code**:
    - Description: Code of the bank used for the transaction
    - Tags: boolean
  - **Upi.payer_vpa**:
    - Description: Payer VPA
    - Tags: string
  - **Upi.payer_app**:
    - Description: Payer App
    - Tags: string
- Tags: JSON

#### mandate:
- Description: (Optional) The json containing the details of the mandate in case of mandate transaction
- Tags: JSON
### 400:

#### status:
- Description: Bad Request
- Tags: string

#### error_code:
- Description: Details of keys missing
- Value: Example: Mandatory fields are missing
- Tags: string

#### error_message:
- Description: Further Details of keys missing
- Tags: string
### 401:

#### status:
- Description: error
- Tags: string

#### error_code:
- Description: access_denied
- Tags: string
### 500:

#### status:
- Description: error
- Tags: string

#### error_code:
- Description: Internal server Error
- Tags: string
