{
  "openapi": "3.0.3",
  "info": {
    "title": "金店参考价格",
    "description": "本接口提供各大金店黄金与铂金近期参考价格，数据更新频率为每日一次。如果您有其他关于金价的需求，也可以随时联系我们，我们将竭诚为您服务。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/2145-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 10,
      "post": {
        "summary": "最新价格",
        "description": "上传品牌id(就是_id)返回最新黄金与铂金的最新参考价",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "number",
                              "description": "0表示成功，-1表示没有找到"
                            },
                            "platinumPrice": {
                              "type": "number",
                              "description": "铂金参考价"
                            },
                            "_id": {
                              "type": "string",
                              "description": "品牌id"
                            },
                            "remark": {
                              "type": "string",
                              "description": "错误信息"
                            },
                            "auLastDate": {
                              "type": "string",
                              "description": "黄金价格日期"
                            },
                            "showapi_fee_code": {
                              "type": "number",
                              "description": "无意义"
                            },
                            "ptLastDate": {
                              "type": "string",
                              "description": "铂金价格日期"
                            },
                            "brand": {
                              "type": "string",
                              "description": "品牌中文名"
                            },
                            "goldPrice": {
                              "type": "number",
                              "description": "黄金参考价格"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2145_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "要查询的品牌id，就是【支持金店】接入点返回的_id"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        }
      }
    },
    "/2145-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 10,
      "x-connect-timeout": 10,
      "post": {
        "summary": "支持金店",
        "description": "查询接口支持的金店信息接口，适用于珠宝商、消费者、地图服务提供商等。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "number",
                              "description": "0表示查询成功"
                            },
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "_id": {
                                    "type": "string",
                                    "description": "品牌id"
                                  },
                                  "brand": {
                                    "type": "string",
                                    "description": "品牌中文名"
                                  }
                                }
                              },
                              "description": "支持的品牌数组"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2145_1_POST",
        "parameters": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/2145?tab=book"
  },
  "x-apiCode": "2145",
  "x-is-own": true,
  "x-is-op": true
}