# 退款通知

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /customerNotifyUrl:
    post:
      summary: 退款通知
      deprecated: false
      description: |
        客户提供接收异步通知的地址（HTTP/HTTPS）
        卡退订套餐通知，通知内的eid退订套餐
      tags:
        - API接口/CloudESIM异步通知
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                timestamp:
                  type: integer
                  description: 当前时间戳，10位数字
                  x-apifox-mock: '{{TIMESTAMP}}'
                nonce:
                  type: integer
                  description: 5位随机正整数
                  minimum: 10000
                  maximum: 99999
                sign:
                  type: string
                  description: 签名串，通知参数的签名，通过它验证请求数据的合法性。
                  x-apifox-mock: '{{SIGN}}'
                id:
                  type: string
                  description: 请求的唯一标识
                event:
                  type: string
                  description: 通知的类型是CloudESimRefund
                outTradeNo:
                  type: string
                  description: API调用方传入的唯一订单号标识 最大32位
                orderAmount:
                  type: string
                  description: 交易金额，保留两位小数
                refundAmount:
                  type: string
                  description: 退款金额，保留两位小数
                eid:
                  type: string
                  description: eid
                eshopOrderId:
                  type: integer
                  description: 内部订单号，见“CloudESIM查询卡片套餐订购记录”接口的响应字段
              x-apifox-orders:
                - id
                - timestamp
                - nonce
                - sign
                - event
                - eid
                - eshopOrderId
                - outTradeNo
                - orderAmount
                - refundAmount
              required:
                - timestamp
                - nonce
                - sign
                - id
                - eid
                - event
                - eshopOrderId
                - outTradeNo
                - orderAmount
                - refundAmount
            example:
              event: CloudESimRefund
              eid: '894230533232910993111111111111111'
              id: s2Vx3BfRtN1h253WeCLNRkAz
              nonce: 15487
              eshopOrderId: 10004728
              outTradeNo: '6300001983111426769635'
              sign: 86AB51FECD873FDCF4B67F7CC4B2119D8BEFEE30
              timestamp: 1716860580
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: 成功接收响应SUCCESS
                x-apifox-orders:
                  - status
                required:
                  - status
              example:
                status: SUCCESS
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API接口/CloudESIM异步通知
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2330898/apis/api-441022836-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://oapi.eiotclub.com
    description: 生产环境
security: []

```
