{"openapi":"3.0.2","info":{"title":"Forecasting API","description":"Forecasting API documentation","version":"v1.40.15a"},"paths":{"/auth/password-login":{"post":{"tags":["Authentication"],"summary":"Authenticate user with username and password","description":"Obtain authentication token using user name and password\n    ","operationId":"password_login_auth_password_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/token-login":{"get":{"tags":["Authentication"],"summary":"Authenticate user with username and password","description":"Obtain authentication token using user name and password\n    ","operationId":"token_login_auth_token_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[{"API key header":[]}]}},"/auth/check-in":{"get":{"tags":["Authentication"],"summary":"Check In","operationId":"check_in_auth_check_in_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"API key header":[]}]}},"/shopify/app":{"get":{"tags":["Shopify"],"summary":"App","description":"Connect a shopify store. At minimum `shop` as\n`somename.myshopify.com` is required.","operationId":"app_shopify_app_get","parameters":[{"required":true,"schema":{"title":"Shop","type":"string"},"name":"shop","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/redirect":{"get":{"tags":["Shopify","Shopify"],"summary":"Redirect","description":"OAuth for shopify store. This endpoint will be called after\nshopify OAuth confirmation.\n\nThe API validates the request and obtains fresh token from Shopify.\nIf the account exists and has attached subscriptions,\nor the subscription is free then the request is\nredirected to `/launch` with `shop` and `token` params.\n\nIf the account exists, plan non-free and no subscriptions exist\nthen user is redirected to confirm charge against existing plan.\n\nWhen change accepted user is redirected to `/launch` with \n\nIf the account is not found then redirect to `/buy` without `plan`","operationId":"redirect_shopify_redirect_get","parameters":[{"required":true,"schema":{"title":"Shop","type":"string"},"name":"shop","in":"query"},{"required":true,"schema":{"title":"Code","type":"string"},"name":"code","in":"query"},{"required":true,"schema":{"title":"Timestamp","type":"string"},"name":"timestamp","in":"query"},{"required":true,"schema":{"title":"Hmac","type":"string"},"name":"hmac","in":"query"},{"required":true,"schema":{"title":"Host","type":"string"},"name":"host","in":"query"},{"required":true,"schema":{"title":"State","type":"string"},"name":"state","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/choose":{"get":{"tags":["Shopify","Shopify"],"summary":"Get Choose","description":"Presents Plan Selection template, or redirects to app\n\nIf `plan` is not supplied then  display plan selection template.\nTemnplate provides backlinks with appropriate plans.\n\nIf `plan` is supplied and:\n\n- is `free` then install and redirect to `/launch`.\nIf account exists then replace any existing plans and cancel subscription.\n\n- is one of `paid` then redirect to charged confirmation.\nIf account exists then remove existing changes so they can be removed.\n\nAfter charge confirmation user will be redirected to `/launch`.","operationId":"get_choose_shopify_choose_get","parameters":[{"required":true,"schema":{"title":"Shop","type":"string"},"name":"shop","in":"query"},{"required":true,"schema":{"title":"Access Token","type":"string"},"name":"access_token","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/buy":{"get":{"tags":["Shopify","Shopify"],"summary":"Buy Get","operationId":"buy_get_shopify_buy_get","parameters":[{"required":true,"schema":{"title":"Shop","type":"string"},"name":"shop","in":"query"},{"required":true,"schema":{"title":"Access Token","type":"string"},"name":"access_token","in":"query"},{"required":true,"schema":{"title":"Plan","type":"string"},"name":"plan","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/launch":{"get":{"tags":["Shopify","Shopify"],"summary":"Get Launch","description":"If `plan` is set then:\n\n- and `charge_id` exists then create install (if account does not exist)\nand redirect to UI.\n\n- If `plan` is not set then redirect UI.","operationId":"get_launch_shopify_launch_get","parameters":[{"required":true,"schema":{"title":"Shop","type":"string"},"name":"shop","in":"query"},{"required":true,"schema":{"title":"Access Token","type":"string"},"name":"access_token","in":"query"},{"required":false,"schema":{"title":"Charge Id","type":"string"},"name":"charge_id","in":"query"},{"required":false,"schema":{"title":"Plan","type":"string"},"name":"plan","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/info":{"get":{"tags":["Shopify"],"summary":"Shop Info","operationId":"shop_info_shopify_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"API key header":[]}]}},"/shopify/shop-erase/{key}":{"post":{"tags":["Shopify"],"summary":"Shop Erasure","operationId":"shop_erasure_shopify_shop_erase__key__post","parameters":[{"required":true,"schema":{"title":"Key","type":"string"},"name":"key","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopErasureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/customer-erase/{key}":{"post":{"tags":["Shopify"],"summary":"Customer Erasure","operationId":"customer_erasure_shopify_customer_erase__key__post","parameters":[{"required":true,"schema":{"title":"Key","type":"string"},"name":"key","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopErasureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/customer-request/{key}":{"post":{"tags":["Shopify"],"summary":"Customer Request","operationId":"customer_request_shopify_customer_request__key__post","parameters":[{"required":true,"schema":{"title":"Key","type":"string"},"name":"key","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopErasureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/uninstalled/{key}":{"post":{"tags":["Shopify"],"summary":"App Uninstalled","operationId":"app_uninstalled_shopify_uninstalled__key__post","parameters":[{"required":true,"schema":{"title":"Key","type":"string"},"name":"key","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/custom":{"post":{"tags":["Shopify"],"summary":"Cuastom","operationId":"cuastom_shopify_custom_post","parameters":[{"required":true,"schema":{"title":"Shop","type":"string"},"name":"shop","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/management/get-token/{account_key}":{"get":{"tags":["Management"],"summary":"Get Token","description":"Retrieve auth token for management APIS.\nManagement token is valid for 180 days. You can request a new\nmanagement token before it expires.\n\n- **account_key** Management account key","operationId":"get_token_management_get_token__account_key__get","parameters":[{"required":true,"schema":{"title":"Account Key","type":"string"},"name":"account_key","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"API key header":[]}]}},"/management/instances":{"get":{"tags":["Management"],"summary":"Instances","description":"Return list of running instances\n    ","operationId":"instances_management_instances_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Instances Management Instances Get","type":"array","items":{"type":"object"}}}}}},"security":[{"API key header":[]}]}},"/management/launch":{"post":{"tags":["Management"],"summary":"Launch","description":"Launch new instance\n    ","operationId":"launch_management_launch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoLaunchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"API key header":[]}]}},"/management/create-install":{"post":{"tags":["Management"],"summary":"Create Install","description":"Provisions new installation. The process is asynchronous\nand it may take few minutes to spin up the account.\nSystem will send an email to the address specified in the request\nonce the installation is ready.\n\nReturns information about the new installation.\nThe object contains URL for the app, and login information:\naccount id and email","operationId":"create_install_management_create_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"API key header":[]}]}},"/management/destroy/{company_id}":{"delete":{"tags":["Management"],"summary":"Destroy","description":"Destroy resources associated with `company_id`\n    ","operationId":"destroy_management_destroy__company_id__delete","parameters":[{"required":true,"schema":{"title":"Company Id","type":"string"},"name":"company_id","in":"path"},{"required":false,"schema":{"title":"Region","type":"string"},"name":"region","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"API key header":[]}]}},"/management/update/{company_id}":{"get":{"tags":["Management"],"summary":"Update","description":"Update resources associated with `company_id`\n    ","operationId":"update_management_update__company_id__get","parameters":[{"required":true,"schema":{"title":"Company Id","type":"string"},"name":"company_id","in":"path"},{"required":false,"schema":{"title":"Wui","type":"string","default":"24.10-dr9"},"name":"wui","in":"query"},{"required":false,"schema":{"title":"Bui","type":"string","default":"1.36-dr5"},"name":"bui","in":"query"},{"required":false,"schema":{"title":"Region","type":"string"},"name":"region","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"API key header":[]}]}}},"components":{"schemas":{"AuthResponse":{"title":"AuthResponse","required":["email","full_name","is_admin","company","token"],"type":"object","properties":{"email":{"title":"Email","type":"string"},"full_name":{"title":"Full Name","type":"string"},"is_admin":{"title":"Is Admin","type":"boolean"},"company":{"title":"Company","type":"string"},"token":{"title":"Token","type":"string"},"host":{"title":"Host","type":"string"},"api":{"title":"Api","type":"string"},"parent":{"title":"Parent","type":"string"}}},"CompanyInfo":{"title":"CompanyInfo","type":"object","properties":{"vat":{"title":"Vat","type":"string"},"name":{"title":"Name","type":"string"},"phone":{"title":"Phone","type":"string"},"country":{"title":"Country","type":"string"}}},"DoLaunchRequest":{"title":"DoLaunchRequest","required":["size","region","account","email","full_name","name"],"type":"object","properties":{"size":{"title":"Size","type":"string"},"region":{"title":"Region","type":"string"},"account":{"title":"Account","type":"string"},"email":{"title":"Email","type":"string"},"full_name":{"title":"Full Name","type":"string"},"name":{"title":"Name","type":"string"}}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"InstallRequest":{"title":"InstallRequest","required":["account_name","features","full_name","user","email"],"type":"object","properties":{"account_name":{"title":"Account Name","type":"string"},"features":{"title":"Features","type":"array","items":{"type":"string"}},"full_name":{"title":"Full Name","type":"string"},"user":{"title":"User","type":"string"},"email":{"title":"Email","type":"string"},"size":{"title":"Size","type":"string","default":"S1_1"},"password":{"title":"Password","type":"string"},"region":{"title":"Region","type":"string","default":"ams2"},"pk":{"title":"Pk","type":"string","default":"targetta"},"plan":{"title":"Plan","type":"string"},"parent":{"title":"Parent","type":"string"},"link":{"$ref":"#/components/schemas/LinkedAccount"},"company":{"$ref":"#/components/schemas/CompanyInfo"}}},"InstallResponse":{"title":"InstallResponse","required":["url","ip","login","id"],"type":"object","properties":{"url":{"title":"Url","type":"string"},"ip":{"title":"Ip","type":"string"},"login":{"title":"Login","type":"string"},"id":{"title":"Id","type":"string"}}},"LinkedAccount":{"title":"LinkedAccount","required":["vendor"],"type":"object","properties":{"vendor":{"title":"Vendor","type":"string"},"conf":{"title":"Conf","type":"object","default":{}}}},"PasswordAuthRequest":{"title":"PasswordAuthRequest","required":["email","password","account_name"],"type":"object","properties":{"email":{"title":"Email","type":"string"},"password":{"title":"Password","type":"string"},"account_name":{"title":"Account Name","type":"string"}}},"ShopErasureRequest":{"title":"ShopErasureRequest","required":["shop_id","shop_domain"],"type":"object","properties":{"shop_id":{"title":"Shop Id","type":"integer"},"shop_domain":{"title":"Shop Domain","type":"string"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"type":"string"}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}},"securitySchemes":{"API key header":{"type":"apiKey","in":"header","name":"X-Auth-Token"}}}}