# 查询可退款金额

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v3/package/queryRefundAmount:
    post:
      summary: 查询可退款金额
      deprecated: false
      description: |
        查询EIOTCLUB平台收款的订单，预计当前可退款的金额
        规则：
        1.购买后24小时内，全额退款；
        2.限量套餐：退款金额 = min(未使用天数/总可使用天数,未使用流量/总流量)*总用户支付金额 ；
        3.限时套餐：退款金额 = (未使用天数/总可使用天数)*总用户支付金额 ；
        4.金额在日元外币种，最小单位为分，向下取整，日元最小单位为元，同向下取整；
      tags:
        - API接口/卡业务接口
        - 国际
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              title: ''
              type: object
              properties:
                appkey:
                  type: string
                  default: '{{APPKEY}}'
                  description: >-
                    appkey平台用以确定客户端应用的身份。应用键对应一个密钥 secret。要基于服务平台开发应用，必须事先通过申请获取
                    appkey/secret 后，才能进行应用的开发。
                timestamp:
                  type: integer
                  description: 当前时间戳，10位数字
                nonce:
                  type: integer
                  minimum: 10000
                  maximum: 99999
                  description: |
                    5位随机正整数
                sign:
                  type: string
                  description: 签名串，请求参数的签名，服务平台通过它验证请求数据的合法性。
                iccid:
                  type: string
                  description: ICCID
                orderId:
                  type: string
                  description: 套餐订单号
              x-apifox-orders:
                - appkey
                - timestamp
                - nonce
                - sign
                - iccid
                - orderId
              required:
                - appkey
                - timestamp
                - nonce
                - sign
                - iccid
                - orderId
            example: |-
              {
                  "operator": 5,
                  "appkey": "{{APPKEY}}",
                  "timestamp": {{TIMESTAMP}},
                  "nonce": 90174,
                  "sign": "{{SIGN}}",
                  "iccid": "8988308650100524999",
                  "orderId": "810000200804035522"
              }
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: 200：表示成功其他失败
                  message:
                    type: string
                    description: 成功或失败原因
                  data:
                    type: object
                    properties:
                      amount:
                        type: string
                        description: 可退款金额，字符串表示。单位是元。
                      currency:
                        type: string
                        description: 币种
                      amount_int:
                        type: integer
                        description: 可退款金额，单位分。对于日元，单位是元。
                    x-apifox-orders:
                      - amount
                      - amount_int
                      - currency
                    required:
                      - amount
                      - currency
                      - amount_int
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API接口/卡业务接口
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2330898/apis/api-125065703-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://oapi.eiotclub.com
    description: 生产环境
security: []

```
