**Version: 202201**

# Get Payment Order

**GET** `/openapi/2024-07/shoplazza-payment/payment-orders/:id`

Retrieves the details of a PaymentOrder that has previously been created

## Request

**Path Parameters**

- `id` string (required)

  id

## Responses

**200 | 500**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  Request: Retrieve payment order

  - `payment_order` object

    Payment order details

    - `id` string

      Payment order ID
    - `fee_details` object

      Fee details

      - `trans_fee_amount` string

        Acquiring fee amount
      - `fee_currency` string

        Fee currency
      - `foreign_settlement_fee` string

        Foreign settlement fee
    - `created_at` string

      Creation time, in Unix timestamp
    - `finished_at` string

      Payment completion time, in Unix timestamp
    - `payment_status` string

      Payment status (e.g., "succeeded", "failed","requires_action","init","canceled","processing") succeeded: The payment has been completed successfully, and the funds are confirmed. failed: The payment has failed, and the funds were not successfully processed. requires_action: Additional action is required to complete the payment, such as user verification (e.g., 3D authentication) or additional information. init: The payment order has been created but not yet processed. canceled: The payment order has been canceled, and no funds were processed or they have been returned. processing: The payment is currently in process, with the final result pending confirmation.
    - `payment_method` string

      Payment method
    - `card_brand` string

      Card brand (e.g., Visa, Mastercard)
    - `pay_currency` string

      Transaction currency
    - `pay_amount` string

      Transaction amount in the original currency
    - `converted_amount` string

      Amount after currency conversion
    - `reserve_amount` string

      Frozen reserve amount
    - `order_id` string

      Order number

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "payment_order": {
      "id": "string",
      "fee_details": {
        "trans_fee_amount": "string",
        "fee_currency": "string",
        "foreign_settlement_fee": "string"
      },
      "created_at": "string",
      "finished_at": "string",
      "payment_status": "string",
      "payment_method": "string",
      "card_brand": "string",
      "pay_currency": "string",
      "pay_amount": "string",
      "converted_amount": "string",
      "reserve_amount": "string",
      "order_id": "string"
    }
  }
}
```

UnknownError

**application/json**

**Schema | Example | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message

```json
{
  "code": "string",
  "message": "string"
}
```

```json
{
  "code": "InvalidParameter",
  "message": "Unknown error, please contact shoplazza technical support to resolve the issue."
}
```
