{"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/places:staging-ecotaco/retrieve-the-version-api":{"get":{"operationId":"places_staging_ecotaco_retrieve_the_version_api","summary":"Retrieve the version API","description":"GET /","tags":["places"],"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":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/places:staging-ecotaco/get-current-user":{"get":{"operationId":"places_staging_ecotaco_get_current_user","summary":"Get current user","description":"GET /accounts","tags":["places"],"parameters":[{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/create-a-new-account-with-an-application-key":{"post":{"operationId":"places_staging_ecotaco_create_a_new_account_with_an_application_key","summary":"Create a new account with an application key","description":"POST /accounts","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/update-user":{"post":{"operationId":"places_staging_ecotaco_update_user","summary":"Update User","description":"PUT /accounts","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/forget-password-with-email":{"post":{"operationId":"places_staging_ecotaco_forget_password_with_email","summary":"Forget password with email","description":"POST /accounts/password","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/payment-methods":{"get":{"operationId":"places_staging_ecotaco_payment_methods","summary":"Payment Methods","description":"GET /accounts/payment_methods","tags":["places"],"parameters":[{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/settings":{"post":{"operationId":"places_staging_ecotaco_settings","summary":"Settings","description":"POST /accounts/settings","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/login-with-email-password-and-application-key":{"post":{"operationId":"places_staging_ecotaco_login_with_email_password_and_application_key","summary":"Login with email, password and application key","description":"POST /accounts/sign_in","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/update-password":{"post":{"operationId":"places_staging_ecotaco_update_password","summary":"Update Password","description":"PUT /accounts/update_password","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/get-autocomplete-places":{"post":{"operationId":"places_staging_ecotaco_get_autocomplete_places","summary":"Get autocomplete places","description":"POST /addresses/places_autocomplete","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/get-autocomplete-places-details":{"post":{"operationId":"places_staging_ecotaco_get_autocomplete_places_details","summary":"Get autocomplete places details","description":"POST /addresses/places_details","tags":["places"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/list-all-catchement-areas":{"get":{"operationId":"places_staging_ecotaco_list_all_catchement_areas","summary":"List all catchement areas","description":"GET /catchement_areas","tags":["places"],"parameters":[{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/get-a-catchement-area":{"get":{"operationId":"places_staging_ecotaco_get_a_catchement_area","summary":"Get a Catchement Area","description":"GET /catchement_areas/{id}","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of the Catchement Area","schema":{"type":"number","description":"Numeric `id` of the Catchement Area"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/list-all-credit-cards-for-the-current-user":{"get":{"operationId":"places_staging_ecotaco_list_all_credit_cards_for_the_current_user","summary":"List all CreditCards for the current User","description":"GET /credit_cards","tags":["places"],"parameters":[{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/get-a-credit-card":{"get":{"operationId":"places_staging_ecotaco_get_a_credit_card","summary":"Get a CreditCard","description":"GET /credit_cards/{id}","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of the Credit Card","schema":{"type":"number","description":"Numeric `id` of the Credit Card"},"example":"1"}],"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":"live"}},"/v1/places:staging-ecotaco/list-all-products":{"get":{"operationId":"places_staging_ecotaco_list_all_products","summary":"List all products","description":"GET /products","tags":["places"],"parameters":[{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/get-a-product":{"get":{"operationId":"places_staging_ecotaco_get_a_product","summary":"Get a Product","description":"GET /products/{id}","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of the Product","schema":{"type":"number","description":"Numeric `id` of the Product"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/get-all-promotional-codes-for-user":{"get":{"operationId":"places_staging_ecotaco_get_all_promotional_codes_for_user","summary":"Get all promotional codes for user","description":"GET /promotional_codes","tags":["places"],"parameters":[{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/add-a-promotional-code":{"post":{"operationId":"places_staging_ecotaco_add_a_promotional_code","summary":"Add a promotional code","description":"POST /promotional_codes","tags":["places"],"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":"live"}},"/v1/places:staging-ecotaco/get-a-ride":{"get":{"operationId":"places_staging_ecotaco_get_a_ride","summary":"Get a ride","description":"GET /rides/{id}","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of Ride","schema":{"type":"number","description":"Numeric `id` of Ride"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/cancel-a-ride":{"get":{"operationId":"places_staging_ecotaco_cancel_a_ride","summary":"Cancel a Ride","description":"GET /rides/{id}/cancel","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of Ride","schema":{"type":"number","description":"Numeric `id` of Ride"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/cancel-fee-of-a-ride":{"get":{"operationId":"places_staging_ecotaco_cancel_fee_of_a_ride","summary":"Cancel fee of a Ride","description":"GET /rides/{id}/cancel_fees","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of Ride","schema":{"type":"number","description":"Numeric `id` of Ride"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/estimate-a-ride":{"get":{"operationId":"places_staging_ecotaco_estimate_a_ride","summary":"Estimate a ride","description":"GET /rides/{id}/estimate","tags":["places"],"parameters":[{"name":"id","in":"query","required":true,"description":"Numeric `id` of Ride","schema":{"type":"number","description":"Numeric `id` of Ride"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/reserve-a-ride":{"post":{"operationId":"places_staging_ecotaco_reserve_a_ride","summary":"Reserve a ride","description":"POST /rides/{id}/reserve","tags":["places"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"number","description":"Numeric `id` of Ride"},"Accept-Language":{"type":"string","description":"e.g. en"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/get-all-user-rides":{"get":{"operationId":"places_staging_ecotaco_get_all_user_rides","summary":"Get all user rides","description":"GET /rides?page={page}&per_page={per_page}","tags":["places"],"parameters":[{"name":"page","in":"query","required":true,"description":"Number of the page to load","schema":{"type":"number","description":"Number of the page to load"},"example":"1"},{"name":"per_page","in":"query","required":true,"description":"Number of items per page to load","schema":{"type":"number","description":"Number of items per page to load"},"example":"1"},{"name":"Accept-Language","in":"query","required":false,"description":"e.g. en","schema":{"type":"string","description":"e.g. en"},"example":"en"}],"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":"live"}},"/v1/places:staging-ecotaco/create-a-ride":{"post":{"operationId":"places_staging_ecotaco_create_a_ride","summary":"Create a ride","description":"POST /rides?page={page}&per_page={per_page}","tags":["places"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["page","per_page"],"properties":{"Accept-Language":{"type":"string","description":"e.g. en"},"page":{"type":"string","description":"Path parameter {page}"},"per_page":{"type":"string","description":"Path parameter {per_page}"}}}}}},"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":"live"}},"/v1/places:staging-ecotaco/retrieve-the-entry-point-on-version":{"get":{"operationId":"places_staging_ecotaco_retrieve_the_entry_point_on_version","summary":"Retrieve the Entry Point on Version","description":"GET /{version}","tags":["places"],"parameters":[{"name":"version","in":"query","required":true,"description":"Ecotaco API version","schema":{"type":"string","description":"Ecotaco API version"}}],"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":"live"}}},"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"}}}}}}}