{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-trafficfxopen/convert-url":{"post":{"operationId":"cloud_aliyun_trafficfxopen_convert_url","summary":"Converts a federated logon link","description":"POST /v1/distribution/trade/convertUrl","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source","scene","xenv","uid","phone","jumpUrl","xAcsAirticketAccessToken"],"properties":{"source":{"type":"string","description":"The source"},"scene":{"type":"string","description":"The scene"},"xenv":{"type":"string","description":"The environment"},"thirdId":{"type":"string","description":"The Fliggy account"},"uid":{"type":"string","description":"The UID of the user within the partner system. This parameter is optional"},"phone":{"type":"string","description":"The phone number"},"jumpUrl":{"type":"string","description":"The redirect URL"},"countryCallingCode":{"type":"string","description":"The country calling code"},"xAcsAirticketAccessToken":{"type":"string","description":"The access token"},"xAcsAirticketLanguage":{"type":"string","description":"The language. This parameter is optional"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-trafficfxopen/get-token":{"get":{"operationId":"cloud_aliyun_trafficfxopen_get_token","summary":"Retrieves a token","description":"GET /v1/distribution/trade/getToken","tags":["cloud"],"parameters":[{"name":"appKey","in":"query","required":true,"description":"The appKey of the application","schema":{"type":"string","description":"The appKey of the application"},"example":"线下给到合作商"},{"name":"appSecret","in":"query","required":true,"description":"The appSecret of the application","schema":{"type":"string","description":"The appSecret of the application"},"example":"线下给到合作商"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-trafficfxopen/search":{"post":{"operationId":"cloud_aliyun_trafficfxopen_search","summary":"Distribution quote API","description":"POST /v1/distribution/trade/search","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source","terminal","searchParam","xAcsAirticketAccessToken"],"properties":{"source":{"type":"string","description":"Source"},"terminal":{"type":"string","description":"Terminal"},"userId":{"type":"string","description":"Third-party user ID"},"searchParam":{"type":"string","description":"Request business input parameters"},"xAcsAirticketAccessToken":{"type":"string","description":"Token"},"xAcsAirticketLanguage":{"type":"string","description":"Optional"},"scene":{"type":"string","description":"Scene"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-trafficfxopen/version":{"post":{"operationId":"cloud_aliyun_trafficfxopen_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}