# 商品回调通知

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /product/receive（这里仅做示例）:
    post:
      summary: 商品回调通知
      deprecated: false
      description: '###请商家自行在上架商品和编辑商品接口填写真实的推送地址###'
      tags:
        - 推送
      parameters:
        - name: appid
          in: query
          description: ''
          required: true
          example: '{{appid}}'
          schema:
            type: string
        - name: timestamp
          in: query
          description: 当前时间戳（单位秒，5分钟内有效）
          required: false
          example: '{{timestamp}}'
          schema:
            type: integer
            default: '{{timestamp}}'
        - name: sign
          in: query
          description: 签名MD5值（参考签名说明）
          required: true
          example: '{{sign}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                seller_id:
                  type: integer
                  format: int64
                  title: 商家ID
                product_id:
                  type: integer
                  title: 管家商品ID
                  format: int64
                product_status:
                  title: 商品状态
                  $ref: '#/components/schemas/product_status'
                publish_status:
                  $ref: '#/components/schemas/publish_status'
                  title: 发布状态
                item_biz_type:
                  $ref: '#/components/schemas/item_biz_type'
                  title: 商品类型
                user_name:
                  type: string
                  title: 闲鱼会员名
                item_id:
                  type: integer
                  title: 闲鱼商品ID
                  format: int64
                task_type:
                  type: integer
                  title: 任务类型
                  description: |-
                    枚举值：
                    10 : 上架新商品
                    11 : 上架存量商品
                    13 : 编辑在架商品
                  enum:
                    - 10
                    - 11
                    - 13
                  format: int32
                  x-apifox-enum:
                    - value: 10
                      name: ''
                      description: 上架新商品
                    - value: 11
                      name: ''
                      description: 上架存量商品
                    - value: 13
                      name: ''
                      description: 编辑在架商品
                task_time:
                  type: integer
                  title: 任务执行时间
                  format: int64
                task_result:
                  type: integer
                  title: 任务执行结果
                  description: |-
                    枚举值：
                    1 : 执行成功
                    2 : 执行失败
                  enum:
                    - 1
                    - 2
                  format: int32
                  x-apifox-enum:
                    - value: 1
                      name: ''
                      description: 执行成功
                    - value: 2
                      name: ''
                      description: 执行失败
                err_code:
                  type: string
                  title: 错误码
                err_msg:
                  type: string
                  title: 错误描述
              x-apifox-orders:
                - seller_id
                - product_id
                - product_status
                - publish_status
                - item_biz_type
                - user_name
                - item_id
                - task_type
                - task_time
                - task_result
                - err_code
                - err_msg
              required:
                - seller_id
                - product_id
                - product_status
                - publish_status
                - item_biz_type
                - user_name
                - task_type
                - task_time
                - task_result
              x-apifox-ignore-properties: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/notify_resp_ok'
          headers: {}
          x-apifox-name: 成功
        x-200:异常:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/notify_resp_fail'
          headers: {}
          x-apifox-name: 异常
      security: []
      x-apifox-folder: 推送
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2973339/apis/api-98676477-run
components:
  schemas:
    item_biz_type:
      type: integer
      title: 商品类型
      format: int32
      enum:
        - 2
        - 0
        - 10
        - 16
        - 19
        - 24
        - 26
        - 35
      examples:
        - 2
      x-apifox-enum:
        - name: ''
          value: 2
          description: 普通商品
        - name: ''
          value: 0
          description: 已验货
        - name: ''
          value: 10
          description: 验货宝
        - name: ''
          value: 16
          description: 品牌授权
        - name: ''
          value: 19
          description: 闲鱼严选
        - name: ''
          value: 24
          description: 闲鱼特卖
        - name: ''
          value: 26
          description: 品牌捡漏
        - value: 35
          name: ''
          description: 跨境商品
      x-apifox-folder: ''
    publish_status:
      type: integer
      title: 发布状态
      description: |-
        枚举值：
        -1：不可操作（不可上架/编辑）
        1：草稿箱（可编辑/删除）
        2：待发布（可上架/编辑/删除）
        3：销售中（可下架/编辑）
        4：已下架（可上架/编辑/删除）
        5：已售罄（可上架/编辑/删除）
        9：商品异常（可编辑/删除）
      enum:
        - -1
        - 1
        - 2
        - 3
        - 4
        - 5
        - 9
      format: int32
      examples:
        - 2
      x-apifox-enum:
        - value: -1
          name: ''
          description: 不可操作
        - value: 1
          name: ''
          description: 草稿箱
        - value: 2
          name: ''
          description: 待发布
        - value: 3
          name: ''
          description: 销售中
        - value: 4
          name: ''
          description: 已下架
        - value: 5
          name: ''
          description: 已售罄
        - value: 9
          name: ''
          description: 商品异常
      x-apifox-folder: ''
    product_status:
      type: integer
      title: 商品状态
      description: '枚举值：-1 : 已删除21 : 待发布22 : 销售中23 : 已售罄31 : 手动下架33 : 售出下架36 : 自动下架'
      format: int32
      enum:
        - -1
        - 21
        - 22
        - 23
        - 31
        - 33
        - 36
      default: 0
      examples:
        - 21
      x-apifox-enum:
        - value: -1
          name: ''
          description: 删除
        - value: 21
          name: ''
          description: 待发布
        - value: 22
          name: ''
          description: 销售中
        - value: 23
          name: ''
          description: 已售罄
        - value: 31
          name: ''
          description: 手动下架
        - value: 33
          name: ''
          description: 售出下架
        - value: 36
          name: ''
          description: 自动下架
      x-apifox-folder: ''
    notify_resp_ok:
      type: object
      properties:
        result:
          type: string
          title: 结果
          enum:
            - success
            - fail
          x-apifox-enum:
            - value: success
              name: 成功
              description: ''
            - value: fail
              name: 失败
              description: ''
        msg:
          type: string
          title: 描述
          examples:
            - 接收成功
      required:
        - result
        - msg
      x-apifox-orders:
        - result
        - msg
      title: 推送成功响应报文
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    notify_resp_fail:
      type: object
      properties:
        result:
          type: string
          title: 结果
          const: fail
        msg:
          type: string
          title: 描述
          examples:
            - 签名失败
      required:
        - result
        - msg
      x-apifox-orders:
        - result
        - msg
      title: 推送失败响应报文
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    apiKey:
      type: apikey
      description: Enter JWT Bearer token **_only_**
      name: Authorization
      in: header
servers:
  - url: https://open.goofish.pro
    description: 新版正式环境
security: []

```
