{"openapi":"3.0.2","info":{"title":"Recharge Adapter","description":"An adapter for Recharge to work with non-Shopify stores","version":"version/2.77.1"},"paths":{"/sync/stores/all":{"post":{"summary":"Sync store info and products for all stores.","description":"Sync all Stores\n\nArgs:\n    queue_endpoint (bool): whether or not to queue the process\nReturns:\n    Store sync status","operationId":"sync__stores__all_sync_stores_all_post","parameters":[{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Queue Process","type":"boolean","description":"Adds task to the HTTP task queue","default":true},"name":"queue_process","in":"query"},{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/stores/{store_hash}":{"post":{"summary":"Sync store info and products for a single store","description":"Sync store info and products for a single store\n\nArgs:\n    store_hash:\n\nReturns:\n    str","operationId":"post__sync__stores__store_hash_sync_stores__store_hash__post","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/{store_hash}/products":{"post":{"summary":"Sync Products by platform product id for a single store","description":"Sync store products\n\nArgs:\n    product_ids: comma separated list of platform product ids\nReturns:\n    Product ids that were synced","operationId":"post__sync__store_hash__products_sync__store_hash__products_post","parameters":[{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"},{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Product Ids","type":"string","description":"Adds task to the HTTP task queue","default":""},"name":"product_ids","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/orders/all":{"post":{"summary":"Sync missing orders for all stores","description":"Sync all Orders\n\nArgs:\n    queue_endpoint: whether or not to queue the process\n    all_stores: A list of all stores from the database\nReturns:\n    Results for every sync orders endpoint","operationId":"sync__orders__all_sync_orders_all_post","parameters":[{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Queue Process","type":"boolean","description":"Adds task to the HTTP task queue","default":true},"name":"queue_process","in":"query"},{"description":"The minimum age (in hours) that an order can be. No order will be synced if it was created LESS the {minimum_age} hour(s) ago.","required":false,"schema":{"title":"Minimum Order Age ( Hours )","minimum":0.0,"type":"number","description":"The minimum age (in hours) that an order can be. No order will be synced if it was created LESS the {minimum_age} hour(s) ago.","default":1},"name":"minimum_age","in":"query"},{"description":"The maximum age (in hours) that an order can be. No order will be synced if it was created MORE the {maximum_age} hour(s) ago.","required":false,"schema":{"title":"Maximum Order Age ( Hours )","minimum":0.0,"type":"number","description":"The maximum age (in hours) that an order can be. No order will be synced if it was created MORE the {maximum_age} hour(s) ago.","default":0},"name":"maximum_age","in":"query"},{"description":"Status of the charge related with the order.values: QUEUED, SUCCESS, ERROR, REFUNDED, PARTIALLY_REFUNDED, SKIPPED, PENDING","required":false,"schema":{"title":"Order charge status","type":"string","description":"Status of the charge related with the order.values: QUEUED, SUCCESS, ERROR, REFUNDED, PARTIALLY_REFUNDED, SKIPPED, PENDING","default":"SUCCESS"},"name":"charge_status","in":"query"},{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"}],"responses":{"200":{"description":"All Stores with sync_orders enabled have been queued for order sync.","content":{"application/json":{"schema":{},"example":{"status":"Queued","msg":"All Stores with sync_orders enabled have been queued for order sync.","total":2,"stores":{"abc123":"example.com","abc456":"example2.com"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/orders/{store_hash}":{"post":{"summary":"Sync (Inject) missing Recharge orders for a single store","description":"Sync orders on a single store\n\nArgs:\n    store: The Store object from the database\n    params: The SyncOrderParams object\nReturns:\n    Sync orders response status","operationId":"sync__orders__store_hash_sync_orders__store_hash__post","parameters":[{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"},{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Queue Process","type":"boolean","description":"Adds task to the HTTP task queue","default":true},"name":"queue_process","in":"query"},{"description":"The minimum age (in hours) that an order can be. No order will be synced if it was created LESS the {minimum_age} hour(s) ago.","required":false,"schema":{"title":"Minimum Order Age ( Hours )","minimum":0.0,"type":"number","description":"The minimum age (in hours) that an order can be. No order will be synced if it was created LESS the {minimum_age} hour(s) ago.","default":1},"name":"minimum_age","in":"query"},{"description":"The maximum age (in hours) that an order can be. No order will be synced if it was created MORE the {maximum_age} hour(s) ago.","required":false,"schema":{"title":"Maximum Order Age ( Hours )","minimum":0.0,"type":"number","description":"The maximum age (in hours) that an order can be. No order will be synced if it was created MORE the {maximum_age} hour(s) ago.","default":0},"name":"maximum_age","in":"query"},{"description":"Status of the charge related with the order.values: QUEUED, SUCCESS, ERROR, REFUNDED, PARTIALLY_REFUNDED, SKIPPED, PENDING","required":false,"schema":{"title":"Order charge status","type":"string","description":"Status of the charge related with the order.values: QUEUED, SUCCESS, ERROR, REFUNDED, PARTIALLY_REFUNDED, SKIPPED, PENDING","default":"SUCCESS"},"name":"charge_status","in":"query"}],"responses":{"200":{"description":"This Store has successfully synced orders.","content":{"application/json":{"schema":{},"example":{"status":"Success","store_hash":"abc123","store_domain":"example.com","time_span":{"processed_at_min":"2022-11-22T12:00:00","processed_at_max":"2022-11-22T15:00:00"},"msg":{"injected_orders":3,"failed_orders":[]}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/orders/refund/all":{"post":{"summary":"Sync and refund missing orders for all stores","description":"Sync all Orders\nArgs:\n    queue_endpoint: whether or not to queue the process\n    all_stores: A list of all stores from the database\nReturns:\n    Results for every sync orders endpoint","operationId":"post__sync__orders__refund__all_sync_orders_refund_all_post","parameters":[{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Queue Process","type":"boolean","description":"Adds task to the HTTP task queue","default":true},"name":"queue_process","in":"query"},{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"}],"responses":{"200":{"description":"All Stores with sync_orders enabled have been queued for order sync.","content":{"application/json":{"schema":{},"example":{"status":"Queued","msg":"All Stores with sync_orders enabled have been queued for order sync.","total":2,"stores":{"abc123":"example.com","abc456":"example2.com"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/orders/refund/{store_hash}":{"post":{"summary":"Sync (Refund) missing Recharge orders for a single store","description":"Sync orders on a single store\nArgs:\n    store: The Store object from the database\n    params: The SyncOrderParams object\nReturns:\n    Sync orders response status","operationId":"post__sync__orders__refund__store_hash_sync_orders_refund__store_hash__post","parameters":[{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"},{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Queue Process","type":"boolean","description":"Adds task to the HTTP task queue","default":true},"name":"queue_process","in":"query"},{"required":false,"schema":{"title":"Charge Status","type":"string","default":"SUCCESS"},"name":"charge_status","in":"query"},{"required":false,"schema":{"title":"Recharge Order Id","type":"integer"},"name":"recharge_order_id","in":"query"},{"description":"The clients User Agent.","required":false,"schema":{"title":"User Agent","type":"string","description":"The clients User Agent."},"name":"user-agent","in":"header"},{"description":"Name of the google cloud task queue.","required":false,"schema":{"title":"Cloud Task queue name","type":"string","description":"Name of the google cloud task queue."},"example":"sync-orders","name":"x-cloudtasks-queuename","in":"header"},{"description":"Request id represented as uuid string.","required":false,"schema":{"title":"Recharge request id","type":"string","description":"Request id represented as uuid string."},"example":"726cb096-b230-4a54-b3f3-509094442a33","name":"x-recharge-request-id","in":"header"}],"responses":{"200":{"description":"This Store has successfully synced orders.","content":{"application/json":{"schema":{},"example":{"status":"Success","store_hash":"abc123","store_domain":"example.com","time_span":{"processed_at_min":"2022-11-22T12:00:00","processed_at_max":"2022-11-22T15:00:00"},"msg":{"injected_orders":3,"failed_orders":[]}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/platform-data/all":{"post":{"summary":"Refresh the adapter data file for all stores.","description":"Update CDN for all Stores\n\nArgs:\n    queue_endpoint: whether or not to queue the process\nReturns:\n    Response for each update platform product data endpoint","operationId":"update_platform_product_data_for_all_stores_sync_platform_data_all_post","parameters":[{"description":"Adds task to the HTTP task queue","required":false,"schema":{"title":"Queue Process","type":"boolean","description":"Adds task to the HTTP task queue","default":true},"name":"queue_process","in":"query"},{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/platform-data/{store_hash}":{"post":{"summary":"Sync BC product script","description":"Create/Update BC script for product and subscription data.","operationId":"update_platform_product_data_sync_platform_data__store_hash__post","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Force Update","type":"boolean","default":true},"name":"force_update","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Update Platform Product Data Sync Platform Data  Store Hash  Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sync/customers/all":{"post":{"summary":"Sync all customers info for all stores.","description":"Call sync/customers/{store_hash} for all stores in database\n\nReturns:\n    List: all stores status","operationId":"sync__customers__all_sync_customers_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sync/customers/{store_hash}":{"post":{"summary":"Sync all customers info for a a store","description":"Sync customers for a specific store\n\nArgs:\n    store_hash: store to sync customers\n    customer_email: specific customers email to be sync\n    page: paginated page to be installed\n\nReturns:\n    Customer sync status","operationId":"sync__customers_sync_customers__store_hash__post","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Customer Email","type":"string"},"name":"customer_email","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/install/{platform}/all":{"post":{"summary":"Install a specific store with the correct platform","description":"Args:\n    platform (PlatformParam):\n    all_stores (AllPlatformStoresParam):\n    refresh (dict):","operationId":"post__install__platform__all_install__platform__all_post","parameters":[{"required":true,"schema":{"title":"Platform","anyOf":[{"type":"string"},{"$ref":"#/components/schemas/Platforms"}]},"name":"platform","in":"path"},{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"},{"required":false,"schema":{"title":"Refresh Webhooks","type":"boolean","default":true},"name":"refresh_webhooks","in":"query"},{"required":false,"schema":{"title":"Refresh Scripts","type":"boolean","default":true},"name":"refresh_scripts","in":"query"},{"required":false,"schema":{"title":"Refresh Data","type":"boolean","default":true},"name":"refresh_data","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/install/{platform}/{store_hash}":{"post":{"summary":"Install a specific store with the correct platform","description":"Args:\n    platform (config.PLATFORMS):\n    store_hash (str):\n    install_data (InstallModel):\n    refresh (dict):","operationId":"post__install__platform__store_hash_install__platform___store_hash__post","parameters":[{"required":true,"schema":{"$ref":"#/components/schemas/Platforms"},"name":"platform","in":"path"},{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Refresh Webhooks","type":"boolean","default":true},"name":"refresh_webhooks","in":"query"},{"required":false,"schema":{"title":"Refresh Scripts","type":"boolean","default":true},"name":"refresh_scripts","in":"query"},{"required":false,"schema":{"title":"Refresh Data","type":"boolean","default":true},"name":"refresh_data","in":"query"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallModelBase"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/install/{platform}/{store_hash}/products":{"post":{"summary":"Install a batch of products for a specific store with the correct platform","description":"Install a batch of products for a specific store with the correct platform.\n\nArgs:\n    platform: E-commerce platform where product should be installed.\n    BigCommerce currently supported.\n    store: Store where installation should occur\n    start_page (default 1): Products are returned paginated, counting starts\n    with 1 instead of 0.\n    end_page (default 1): Products are returned paginated, this parameter is inclusive.\n\nReturns:\n    dict","operationId":"post__install__platform__products_install__platform___store_hash__products_post","parameters":[{"required":true,"schema":{"$ref":"#/components/schemas/Platforms"},"name":"platform","in":"path"},{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Start Page","type":"integer","default":1},"name":"start_page","in":"query"},{"required":false,"schema":{"title":"End Page","type":"integer","default":1},"name":"end_page","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/install/{platform}/{store_hash}/customers":{"post":{"summary":"Install a batch of customers for a specific store with the correct platform","description":"Install customers for a specific store\n\nArgs:\n    platform (config.PLATFORMS):\n    store_hash (str):\n    install_data (InstallModel):\n    start_page (int): Paginated start page\n    end_page (int): Paginated start page\n\nReturns:\n    Customer sync status","operationId":"post__install__platform__store_hash__customers_install__platform___store_hash__customers_post","parameters":[{"required":true,"schema":{"$ref":"#/components/schemas/Platforms"},"name":"platform","in":"path"},{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Start Page","type":"integer","default":0},"name":"start_page","in":"query"},{"required":false,"schema":{"title":"End Page","type":"integer","default":0},"name":"end_page","in":"query"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallModel"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{store_hash}/settings":{"get":{"summary":"Get Store Settings","description":"Fetch the store's settings from Database.\n\nArgs:\n    store: The Store object from the database.\n\nReturns:\n    Settings for store with given store hash.\nRaises:\n    404 in case that store is not found.","operationId":"get_settings__store_hash__settings__store_hash__settings_get","parameters":[{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Store Settings","description":"Update store settings with given payload. Updates store CDN file also.\n\nArgs:\n    store: The Store object from the database.\n    data: JSON payload for updating settings fields\n    db: The client for the database.\n\nReturns:\n    Updated Settings for store with given store hash.\nRaises:\n    404 in case that store is not found.","operationId":"put_settings__store_hash__settings__store_hash__settings_put","parameters":[{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsUpdateSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/validation/cart":{"post":{"summary":"Validate ReCharge Checkout","description":"Receives Recharge checkout webhook and validates the content of the checkout against the adapter database and/or the platform API.","operationId":"validation__cart_validation_cart_post","parameters":[{"description":"The ReCharge Merchant domain. This is equal to `rc_store_domain` in the adapter database.","required":true,"schema":{"title":"Rc-Store-Domain","type":"string","description":"The ReCharge Merchant domain. This is equal to `rc_store_domain` in the adapter database."},"name":"rc-store-domain","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"title":"Cart","allOf":[{"$ref":"#/components/schemas/CartValidationBody"}],"description":"The car data contained in the validation request."}}},"required":true},"responses":{"200":{"description":"Validated cart status model object","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status/install/all":{"post":{"summary":"Checks install status for all stores.","operationId":"status__install__all_status_install_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/status/install/{store_hash}":{"post":{"summary":"Checks install status for single store.","operationId":"status__install__store_status_install__store_hash__post","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{recharge_order_id}":{"get":{"summary":"Get a Order by ReCharge Order ID","description":"Get an Order record by ReCharge Order ID from the OrderLog table.","operationId":"get__orders__recharge_order_id_orders__recharge_order_id__get","parameters":[{"required":true,"schema":{"title":"ReCharge Order ID","type":"integer"},"name":"recharge_order_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderLog"}}}},"404":{"description":"The Order can not be found in the database.","content":{"application/json":{"example":{"type":"NotFound","reason":"The Order with ID# 123456 could not be found.","request_id":789123}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root Test","description":"Redirects the root path to the OpenAPI documentation for this application.","operationId":"home_ui__get","responses":{"200":{"description":"Redirects to /docs","content":{"application/json":{"schema":{}}}}}}},"/customers/search":{"get":{"summary":"Search for a single Customer","description":"Search customers\nArgs:\n    search_data: query parameters\nReturns Customer, Customer","operationId":"get__common__customers_customers_search_get","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"query"},{"required":false,"schema":{"$ref":"#/components/schemas/Platforms"},"name":"platform","in":"query"},{"required":false,"schema":{"title":"Name","type":"string"},"name":"name","in":"query"},{"required":false,"schema":{"title":"Email","type":"string"},"name":"email","in":"query"},{"required":false,"schema":{"title":"Recharge Hash","type":"string"},"name":"recharge_hash","in":"query"},{"required":false,"schema":{"title":"Recharge Id","type":"integer"},"name":"recharge_id","in":"query"},{"required":false,"schema":{"title":"Platform Id","type":"string"},"name":"platform_id","in":"query"},{"required":false,"schema":{"title":"Customer Hash","type":"string"},"name":"customer_hash","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get  Common  Customers Customers Search Get","anyOf":[{"$ref":"#/components/schemas/Customer"},{"type":"object"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{store_hash}/products/count":{"get":{"summary":"Get Product count from CDN and platform","description":"Get sync products store hash\n\nArgs:\n    store_hash (str): Platform store hash\n    query_database(bool): Whether or not to query the database\nReturns:\n    Product count based on platform","operationId":"get__store_hash__products__count__store_hash__products_count_get","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"description":"Whether or not to query the database (high volume stores may time out)","required":false,"schema":{"title":"Query Database","type":"boolean","description":"Whether or not to query the database (high volume stores may time out)","default":false},"name":"query_database","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{store_hash}/products":{"get":{"summary":"List products","description":"Retrieve, filter, and return a list of products from the database.","operationId":"get_all_products__store_hash__products_get","parameters":[{"description":"The BigCommerce Store Hash","required":true,"schema":{"title":"Store Hash","minLength":1,"type":"string","description":"The BigCommerce Store Hash"},"example":"abcd1234","name":"store_hash","in":"path"},{"description":"Cursor to begin paging through query results","required":false,"schema":{"title":"Cursor","type":"string","description":"Cursor to begin paging through query results","format":"binary"},"name":"cursor","in":"query"},{"required":false,"schema":{"title":"Limit","type":"integer","default":300},"name":"limit","in":"query"},{"required":false,"schema":{"title":"Rc Formatted Payload","type":"boolean","default":true},"name":"rc_formatted_payload","in":"query"},{"description":"Product title","required":false,"schema":{"title":"Title","type":"string","description":"Product title"},"name":"title","in":"query"},{"description":"Partial title search","required":false,"schema":{"title":"Allow Partial Title Search","type":"boolean","description":"Partial title search"},"name":"allow_partial_title_search","in":"query"},{"required":false,"schema":{"title":"Next Page","type":"string"},"name":"next_page","in":"query"}],"responses":{"200":{"description":"JSON list of Products","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stores":{"get":{"summary":"List all stores","description":"Retrieve and return all stores from the database.","operationId":"get__stores_stores_get","parameters":[{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"},{"required":false,"schema":{"title":"X-Api-Key","type":"string"},"name":"x-api-key","in":"header"}],"responses":{"200":{"description":"JSON List of all Stores.","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stores/query":{"get":{"summary":"Query a store.","description":"Retrieve, filter, and return a store from the database.","operationId":"get__stores__query_stores_query_get","parameters":[{"description":"Store hash of the merchant in the database.","required":false,"schema":{"title":"Store Hash","type":"string","description":"Store hash of the merchant in the database."},"name":"store_hash","in":"query"},{"description":"ReCharge store domain of the merchant.","required":false,"schema":{"title":"Rc Store Domain","type":"string","description":"ReCharge store domain of the merchant."},"name":"rc_store_domain","in":"query"},{"description":"Full URL of the store.","required":false,"schema":{"title":"Shop Url","type":"string","description":"Full URL of the store."},"name":"shop_url","in":"query"},{"description":"Allow partial search terms","required":false,"schema":{"title":"Allow Partial Search","type":"boolean","description":"Allow partial search terms","default":false},"name":"allow_partial_search","in":"query"},{"required":false,"schema":{"title":"X-Api-Key","type":"string"},"name":"x-api-key","in":"header"}],"responses":{"200":{"description":"JSON of first matching Store.","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/install":{"post":{"summary":"Install ReCharge Stores","description":"Install the ReCharge store with cross-platform support.","operationId":"install_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallModel"}}},"required":true},"responses":{"200":{"description":"Returns string indicating installation success.","content":{"application/json":{"schema":{"title":"Response Install Install Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bigcommerce/webhook/orders":{"post":{"tags":["bigcommerce"],"summary":"Process Incoming Recharge Order Webhooks","description":"Process orders webhook from RC and return BC formatted version of RC order ","operationId":"post__webhook__orders_bigcommerce_webhook_orders_post","parameters":[{"description":"The store/shop domain in ReCharge.","required":true,"schema":{"title":"ReCharge Store Domain","minLength":1,"type":"string","description":"The store/shop domain in ReCharge."},"example":"abcd1234","name":"x-shopify-shop-domain","in":"header"},{"description":"The clients User Agent.","required":false,"schema":{"title":"User Agent","type":"string","description":"The clients User Agent."},"name":"user-agent","in":"header"},{"description":"Name of the google cloud task queue.","required":false,"schema":{"title":"Cloud Task queue name","type":"string","description":"Name of the google cloud task queue."},"example":"sync-orders","name":"x-cloudtasks-queuename","in":"header"},{"description":"Request id represented as uuid string.","required":false,"schema":{"title":"Recharge request id","type":"string","description":"Request id represented as uuid string."},"example":"726cb096-b230-4a54-b3f3-509094442a33","name":"x-recharge-request-id","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_post__webhook__orders_bigcommerce_webhook_orders_post"}}},"required":true},"responses":{"200":{"description":"This merchant does not inject orders.","content":{"application/json":{"schema":{"title":"Response Post  Webhook  Orders Bigcommerce Webhook Orders Post","type":"string"}}}},"202":{"description":"The order is in a queued order status.","content":{"application/json":{"example":{"detail":{"type":"QueuedOrder","reason":"Order #123456 is in a Queued order status. The order will not inject"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bigcommerce/webhook/stores":{"post":{"tags":["bigcommerce"],"summary":"Process incoming BC store webhooks.","description":"Process BigCommerce store/information/updated webhooks to update store info in adapter.","operationId":"bigcommerce_store_info_bigcommerce_webhook_stores_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BigcommerceWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Bigcommerce Store Info Bigcommerce Webhook Stores Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bigcommerce/webhooks":{"get":{"tags":["bigcommerce"],"summary":"Send Success Response on Get Webhook","description":"When get sent to our webhook endpoint, return 200 success, this is primarily used when setting up initial BC webhooks for a given store.","operationId":"bigcommerce_webhook_get_bigcommerce_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Bigcommerce Webhook Get Bigcommerce Webhooks Get","type":"string"}}}}}},"post":{"tags":["bigcommerce"],"summary":"Process Incoming Bigcommerce Webhooks","description":"Process bigcommerce webhooks related to products,skus for CRUD operations","operationId":"bigcommerce_webhook_bigcommerce_webhooks_post","parameters":[{"description":"Password field in header provided by BC, which we use to validate webhook against","required":false,"schema":{"title":"Rca-Password","type":"string","description":"Password field in header provided by BC, which we use to validate webhook against"},"example":"Goodbye","name":"rca-password","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BigcommerceWebhook"}}},"required":true},"responses":{"200":{"description":"Dict containing status of BC and RC processing of webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BigcommerceWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bigcommerce/customer":{"get":{"tags":["bigcommerce"],"summary":"Return Customer Data For A Given Customer From RC","description":"Ingest data related to logged in customer from frontend app, use customer ID to fetch customer data from RC API","operationId":"customer_data_bigcommerce_customer_get","parameters":[{"required":true,"schema":{"title":"Token","type":"string"},"name":"token","in":"query"}],"responses":{"200":{"description":"CustomerRecord Model Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerData"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bigcommerce/uninstall/manual":{"post":{"tags":["bigcommerce"],"summary":"Uninstall BC/RC Store Manually ","description":"Manually uninstall a BC/RC store without going through BC Store Admin page\n\nArgs:\n    store_hash (str): Store hash of BC store\n\nReturns:\n    Indicator of Sucessfull uninstallation","operationId":"manual_uninstall_bigcommerce_uninstall_manual_post","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"query"}],"responses":{"200":{"description":"Indicator of Successful uninstallation","content":{"application/json":{"schema":{"title":"Response Manual Uninstall Bigcommerce Uninstall Manual Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bigcommerce/promotions/{store_hash}/{cart_id}":{"post":{"tags":["bigcommerce"],"summary":"Return a Coupon from recharge","description":"Receive store_hash and cart_id and return a coupon from recharge","operationId":"post__promotions__store_hash__cart_id_bigcommerce_promotions__store_hash___cart_id__post","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":true,"schema":{"title":"Cart Id","type":"string"},"name":"cart_id","in":"path"}],"responses":{"200":{"description":"Coupon ID","content":{"application/json":{"schema":{"title":"Response Post  Promotions  Store Hash  Cart Id Bigcommerce Promotions  Store Hash   Cart Id  Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/webhook/checkouts":{"post":{"tags":["recharge"],"summary":"Process incoming Recharge checkout webhooks","description":"Process checkout webhooks from RC.","operationId":"recharge_webhook_checkout_recharge_webhook_checkouts_post","parameters":[{"required":true,"schema":{"title":"X-Shopify-Shop-Domain","type":"string"},"name":"x-shopify-shop-domain","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_recharge_webhook_checkout_recharge_webhook_checkouts_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Recharge Webhook Checkout Recharge Webhook Checkouts Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/webhook/products":{"post":{"tags":["recharge"],"summary":"Process incoming Recharge product webhooks","description":"Process product webhooks from RC.","operationId":"recharge_webhook_products_recharge_webhook_products_post","parameters":[{"required":true,"schema":{"title":"X-Shopify-Shop-Domain","type":"string"},"name":"x-shopify-shop-domain","in":"header"},{"required":true,"schema":{"title":"X-Recharge-Topic","type":"string"},"name":"x-recharge-topic","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_recharge_webhook_products_recharge_webhook_products_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Recharge Webhook Products Recharge Webhook Products Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/webhook/cancel":{"post":{"tags":["recharge"],"summary":"Process incoming Recharge cancel order webhooks","description":"Process checkout webhooks from RC.","operationId":"recharge_webhook_cancel_recharge_webhook_cancel_post","parameters":[{"required":true,"schema":{"title":"X-Shopify-Shop-Domain","type":"string"},"name":"x-shopify-shop-domain","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"title":"Charge","type":"object"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Recharge Webhook Cancel Recharge Webhook Cancel Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/webhook/refund":{"post":{"tags":["recharge"],"summary":"Process incoming Recharge charge refund webhooks","description":"Process Recharge charge refund webhooks from RC.","operationId":"recharge_webhook_refund_recharge_webhook_refund_post","parameters":[{"required":true,"schema":{"title":"X-Shopify-Shop-Domain","type":"string"},"name":"x-shopify-shop-domain","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"title":"Request Dict","type":"object"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Recharge Webhook Refund Recharge Webhook Refund Post","type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/orders/missing/all":{"get":{"tags":["recharge"],"summary":"Get orders from the ReCharge API that are missing external_order_id","description":"Get the missing recharge orders","operationId":"get_recharge__orders__missing_all_recharge_orders_missing_all_get","parameters":[{"description":"Minimum datetime for processed_at field","required":false,"schema":{"title":"Processed At Min","type":"string","description":"Minimum datetime for processed_at field","format":"date-time"},"example":"2021-01-01T00:00:00","name":"processed_at_min","in":"query"},{"description":"Maximum datetime for processed_at field","required":false,"schema":{"title":"Processed At Max","type":"string","description":"Maximum datetime for processed_at field","format":"date-time"},"example":"2022-01-01T00:00:00","name":"processed_at_max","in":"query"},{"description":"Minimum datetime for updated_at field","required":false,"schema":{"title":"Updated At Min","type":"string","description":"Minimum datetime for updated_at field","format":"date-time"},"example":"2021-01-01T00:00:00","name":"updated_at_min","in":"query"},{"description":"Maximum datetime for updated_at field","required":false,"schema":{"title":"Updated At Max","type":"string","description":"Maximum datetime for updated_at field","format":"date-time"},"example":"2022-01-01T00:00:00","name":"updated_at_max","in":"query"},{"required":false,"schema":{"title":"Exclude","type":"string"},"name":"exclude","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/orders/missing/{store_hash}":{"get":{"tags":["recharge"],"summary":"Get orders from the ReCharge API that are missing external_order_id for each Store Hash","description":"Get the missing orders","operationId":"get__orders_missing_recharge_orders_missing__store_hash__get","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Order Status","type":"string","default":"SUCCESS"},"name":"order_status","in":"query"},{"required":false,"schema":{"title":"Charge Status","type":"string","default":"SUCCESS"},"name":"charge_status","in":"query"},{"description":"Minimum datetime for processed_at field","required":false,"schema":{"title":"Processed At Min","type":"string","description":"Minimum datetime for processed_at field","format":"date-time"},"example":"2021-01-01T00:00:00","name":"processed_at_min","in":"query"},{"description":"Maximum datetime for processed_at field","required":false,"schema":{"title":"Processed At Max","type":"string","description":"Maximum datetime for processed_at field","format":"date-time"},"example":"2022-01-01T00:00:00","name":"processed_at_max","in":"query"},{"description":"Minimum datetime for updated_at field","required":false,"schema":{"title":"Updated At Min","type":"string","description":"Minimum datetime for updated_at field","format":"date-time"},"example":"2021-01-01T00:00:00","name":"updated_at_min","in":"query"},{"description":"Maximum datetime for updated_at field","required":false,"schema":{"title":"Updated At Max","type":"string","description":"Maximum datetime for updated_at field","format":"date-time"},"example":"2022-01-01T00:00:00","name":"updated_at_max","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/orders/{store_hash}":{"get":{"tags":["recharge"],"summary":"Get orders from the ReCharge API","operationId":"get_recharge__orders_recharge_orders__store_hash__get","parameters":[{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"path"},{"required":false,"schema":{"title":"Order Status","type":"string"},"name":"order_status","in":"query"},{"required":false,"schema":{"title":"Charge Status","type":"string"},"name":"charge_status","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/customers/{recharge_customer_id}/portal_url":{"get":{"tags":["recharge"],"summary":"Get customer portal data from the ReCharge API","operationId":"get_customers_portal_url_recharge_customers__recharge_customer_id__portal_url_get","parameters":[{"required":true,"schema":{"title":"Recharge Customer Id","type":"integer"},"name":"recharge_customer_id","in":"path"},{"required":true,"schema":{"title":"Store Hash","type":"string"},"name":"store_hash","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recharge/map/order":{"post":{"tags":["recharge"],"summary":"Map Recharge order to BC order","description":"This endpoint is used for internal testing purposes. It just converts Rechargeorder payload to the Bigcommerce order","operationId":"post__recharge__map__order_recharge_map_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_post__recharge__map__order_recharge_map_order_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BigcommerceWebhook":{"title":"BigcommerceWebhook","required":["data","store_id","producer","scope","hash"],"type":"object","properties":{"data":{"$ref":"#/components/schemas/BigcommerceWebhookData"},"type":{"title":"Type","type":"string"},"store_id":{"title":"Store Id","type":"integer"},"producer":{"title":"Producer","type":"string"},"scope":{"title":"Scope","type":"string"},"hash":{"title":"Hash","type":"string"},"store_hash":{"title":"Store Hash","type":"string"},"product_id":{"title":"Product Id","type":"integer"},"variant_id":{"title":"Variant Id","type":"integer"}},"description":"Schema for Bigcommerce Webhook.\n\nAttributes:\n    data: (dict) BigCommerceWebhookData - Webhook related data\n    type: (str) Type of webhook received, based on value sent in 'data'\n    store_id: (int) Store ID of given store #TODO: is this needed?\n    producer: (str) string containing producer of webhook (ex: stores/[store_hash])\n    scope: (str) Type of action being performed, create, update, delete\n    hash: (str) Hash of webhook for verification\n    store_hash: store_hash of webhook, parsed from 'producer'\n    product_id: (int) product_id if product/sku related webhook, parsed from 'data'\n    variant_id: (int) variant_id if sku related webhook, parsed from 'data'"},"BigcommerceWebhookData":{"title":"BigcommerceWebhookData","required":["type"],"type":"object","properties":{"type":{"title":"Type","type":"string"},"id":{"title":"Id","type":"integer"},"sku":{"title":"Sku","allOf":[{"$ref":"#/components/schemas/BigcommerceWebhookSKU"}],"default":{}}},"description":"Schema for Bigcommerce Webhook Data Dictionary."},"BigcommerceWebhookResponse":{"title":"BigcommerceWebhookResponse","required":["bigcommerce_webhook_validated"],"type":"object","properties":{"bigcommerce_webhook_validated":{"title":"Bigcommerce Webhook Validated","type":"boolean"},"bigcommerce_processing_status":{"title":"Bigcommerce Processing Status","type":"string"},"recharge_processing_status":{"title":"Recharge Processing Status","type":"string"}}},"BigcommerceWebhookSKU":{"title":"BigcommerceWebhookSKU","type":"object","properties":{"product_id":{"title":"Product Id","type":"integer"},"variant_id":{"title":"Variant Id","type":"integer"}},"description":"Schema for Bigcommerce Webhook SKU Dictionary."},"Body_post__recharge__map__order_recharge_map_order_post":{"title":"Body_post__recharge__map__order_recharge_map_order_post","required":["order"],"type":"object","properties":{"order":{"$ref":"#/components/schemas/RechargeOrder"}}},"Body_post__webhook__orders_bigcommerce_webhook_orders_post":{"title":"Body_post__webhook__orders_bigcommerce_webhook_orders_post","required":["order"],"type":"object","properties":{"order":{"title":"ReCharge Order Object","allOf":[{"$ref":"#/components/schemas/RechargeOrder"}],"description":"The ReCharge Order payload sent in the body of the ReCharge Order webhook."}}},"Body_recharge_webhook_checkout_recharge_webhook_checkouts_post":{"title":"Body_recharge_webhook_checkout_recharge_webhook_checkouts_post","required":["checkout"],"type":"object","properties":{"checkout":{"title":"Checkout","type":"object"}}},"Body_recharge_webhook_products_recharge_webhook_products_post":{"title":"Body_recharge_webhook_products_recharge_webhook_products_post","required":["product"],"type":"object","properties":{"product":{"title":"Product","type":"object"}}},"CartValidationBody":{"title":"CartValidationBody","required":["line_items","store"],"type":"object","properties":{"line_items":{"title":"Line Items","type":"array","items":{"$ref":"#/components/schemas/CartValidationLineItem"}},"external_checkout_id":{"title":"External Checkout Id","type":"string","default":""},"external_checkout_source":{"title":"External Checkout Source","type":"string","default":"big_commerce"},"store":{"$ref":"#/components/schemas/Store"},"type":{"title":"Type","type":"string","default":""}},"description":"An enhanced Pydantic BaseModel class"},"CartValidationLineItem":{"title":"CartValidationLineItem","type":"object","properties":{"charge_interval_frequency":{"title":"Charge Interval Frequency"},"cutoff_day_of_month":{"title":"Cutoff Day Of Month"},"cutoff_day_of_week":{"title":"Cutoff Day Of Week"},"decimal_price":{"title":"Decimal Price"},"expire_after_specific_number_of_charges":{"title":"Expire After Specific Number Of Charges"},"fulfillment_service":{"title":"Fulfillment Service"},"grams":{"title":"Grams","type":"integer","default":0},"line_item_id":{"title":"Line Item Id","type":"integer","default":0},"line_price":{"title":"Line Price","type":"number","default":0},"order_interval_frequency":{"title":"Order Interval Frequency"},"order_interval_unit":{"title":"Order Interval Unit"},"order_interval_unit_type":{"title":"Order Interval Unit Type"},"original_price":{"title":"Original Price"},"price":{"title":"Price","type":"number","default":0},"product_id":{"title":"Product Id","type":"integer","default":0},"product_type":{"title":"Product Type"},"properties":{"title":"Properties"},"quantity":{"title":"Quantity"},"recurring_price":{"title":"Recurring Price"},"requires_shipping":{"title":"Requires Shipping"},"sku":{"title":"Sku"},"tax_code":{"title":"Tax Code"},"taxable":{"title":"Taxable"},"title":{"title":"Title"},"type":{"title":"Type","type":"string","default":""},"variant_id":{"title":"Variant Id","type":"integer","default":0},"variant_title":{"title":"Variant Title"},"product":{"title":"Product"},"variant":{"title":"Variant"},"platform_id":{"title":"Platform Id","type":"string"}},"description":"An enhanced Pydantic BaseModel class"},"Customer":{"title":"Customer","required":["store_hash"],"type":"object","properties":{"store_id":{"title":"Store Id","type":"string"},"platform":{"allOf":[{"$ref":"#/components/schemas/Platforms"}],"default":"Headless"},"store_hash":{"title":"Store Hash","type":"string"},"name":{"title":"Name","type":"string"},"email":{"title":"Email","type":"string"},"rc_hash":{"title":"Rc Hash","type":"string"},"rc_id":{"title":"Rc Id","type":"integer"},"platform_id":{"title":"Platform Id","type":"string"},"created_at":{"title":"Created At","type":"string","format":"date-time"},"customer_hash":{"title":"Customer Hash","type":"string"}},"description":"The database model for the customer table.\n\nAttributes:\n    customer_hash: A hash of the customer platform and email.\n    store_id: The ID number for the store record associated with the product.\n    platform: The store platform for this record. Possible values are listed in.\n    One customer can be associated with multiple platforms.\n    store_hash: The unique store hash of the parent store record.\n    name: The first and last name of the customer.\n    email: The email address of the customer.\n    rc_hash: ReCharge customer hash.\n    rc_id: ReCharge customer ID.\n    platform_id: Platform customer ID.\n    created_at: The UTC DateTime of when the customer was created in the customer table."},"CustomerData":{"title":"CustomerData","required":["store_hash"],"type":"object","properties":{"store_id":{"title":"Store Id","type":"integer"},"platform":{"allOf":[{"$ref":"#/components/schemas/Platforms"}],"default":"Headless"},"store_hash":{"title":"Store Hash","type":"string"},"name":{"title":"Name","type":"string"},"email":{"title":"Email","type":"string"},"rc_hash":{"title":"Rc Hash","type":"string"},"rc_id":{"title":"Rc Id","type":"integer"},"platform_id":{"title":"Platform Id","type":"string"},"created_at":{"title":"Created At","type":"string","format":"date-time"},"customer_hash":{"title":"Customer Hash","type":"string"},"portal_url":{"title":"Portal Url","type":"string"},"temp_token":{"title":"Temp Token","type":"string"}},"description":"The ReCharge Customer model\n\nAttributes:\n    customer_hash: A hash of the customer platform and email.\n    store_id: The ID number for the store record associated with the product.\n    platform: The store platform for this record. Possible values are listed in.\n    One customer can be associated with multiple platforms.\n    store_hash: The unique store hash of the parent store record.\n    name: The first and last name of the customer.\n    email: The email address of the customer.\n    rc_hash: ReCharge customer hash.\n    rc_id: ReCharge customer ID.\n    platform_id: Platform customer ID.\n    created_at: The UTC DateTime of when the customer was created in the customer table.\n    portal_url: ReCharge customer portal url."},"EndToEndTestTypes":{"title":"EndToEndTestTypes","enum":["skip","simplified","complete"],"type":"string","description":"Available End to end test types"},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"InstallModel":{"title":"InstallModel","required":["store_id","access_token","store_hash"],"type":"object","properties":{"store_id":{"title":"Store Id","type":"string"},"access_token":{"title":"Access Token","type":"string"},"rc_api_url":{"title":"Rc Api Url","type":"string"},"staging":{"title":"Staging","type":"boolean","default":false},"store_hash":{"title":"Store Hash","type":"string"},"platform":{"$ref":"#/components/schemas/Platforms"}},"description":"Install route parameters\nstore_hash: The store_hash of the store that will be installed\nplatform: Platform of the store that will be installed"},"InstallModelBase":{"title":"InstallModelBase","required":["store_id","access_token"],"type":"object","properties":{"store_id":{"title":"Store Id","type":"string"},"access_token":{"title":"Access Token","type":"string"},"rc_api_url":{"title":"Rc Api Url","type":"string"},"staging":{"title":"Staging","type":"boolean","default":false}},"description":"Base install route parameters\nstore_id: The ID of the store that will be installed\naccess_token: The access_token of the store that will be installed\nrc_api_url: Custom Recharge API URL of the store that will be installed\nstaging: Flag that is true if the Recharge API is the staging one"},"OrderLog":{"title":"OrderLog","required":["store_hash","rc_order_id","rc_charge_id","rc_customer_id"],"type":"object","properties":{"store_hash":{"title":"Store Hash","type":"string"},"status":{"title":"Status","type":"string"},"order_id":{"title":"Order Id","type":"integer"},"order_amount":{"title":"Order Amount","type":"number","default":0},"rc_order_id":{"title":"Rc Order Id","type":"integer"},"rc_charge_id":{"title":"Rc Charge Id","type":"integer"},"rc_customer_id":{"title":"Rc Customer Id","type":"integer"},"rc_product_ids":{"title":"Rc Product Ids","type":"array","items":{"type":"integer"},"default":[]},"rc_variant_ids":{"title":"Rc Variant Ids","type":"array","items":{"type":"integer"},"default":[]},"rc_charge_status":{"title":"Rc Charge Status","type":"string"},"rc_order_status":{"title":"Rc Order Status","type":"string"},"rc_address_id":{"title":"Rc Address Id","type":"integer"},"external_customer_id":{"title":"External Customer Id","type":"integer"},"order_processed_method":{"$ref":"#/components/schemas/OrderProcessedMethod"},"created_at":{"title":"Created At","type":"string","format":"date-time"},"updated_at":{"title":"Updated At","type":"string","format":"date-time"},"processed":{"title":"Processed","type":"boolean","default":false},"locked":{"title":"Locked Status","type":"string","description":"Indicator if the OrderLog is locked by an active process.","format":"date-time"},"customer_addresses_created":{"title":"BigCommerce Customer Address Creation Status","type":"string","description":"Indicator if the BigCommerce Customer Addresses were created in BigCommerce.","format":"date-time"},"recharge_customer_set":{"title":"ReCharge external_customer_id Set Status","type":"string","description":"Indicator if the ReCharge external_custom_id field has been set in the ReCharge API.","format":"date-time"},"recharge_order_set":{"title":"ReCharge external_order_id Set Status","type":"string","description":"Indicator if the ReCharge external_order_id field has been set in the ReCharge API.","format":"date-time"},"metafields_created":{"title":"BigCommerce Order Metafields Creation Status","type":"string","description":"Indicator if the metafields have been created for the BigCommerce Order. ","format":"date-time"},"injected_at":{"title":"BigCommerce injection timestamp","type":"string","description":"Indicator of the order injection timestamps created.","format":"date-time"}},"description":"The database model for order_log entities.\n\nAttributes:\n    store_hash: The unique platform store_hash of the parent store record.\n    status: Status of the order - REFUNDED or SUCCESS\n    order_id: The platform specific ID for the order\n    rc_order_id: The Recharge specific ID for the order\n    rc_charge_id: The Recharge specific ID for the charge\n    external_customer_id: And external customer ID\n    created_at: The UTC DateTime of when the order_log was created in the product table.\n    updated_at: The UTC DateTime of when the order_log was last updated in the product table.\n    processed: A Boolean indicating whether an order_log was successfully processed or not."},"OrderProcessedMethod":{"title":"OrderProcessedMethod","enum":["REFUNDED_VIA_POLLING","REFUNDED_VIA_MANUAL_WEBHOOK","REFUNDED_VIA_WEBHOOK","INJECTED_VIA_POLLING","INJECTED_VIA_MANUAL_WEBHOOK","INJECTED_VIA_WEBHOOK"],"type":"string","description":"An enumeration."},"Platforms":{"title":"Platforms","enum":["BigCommerce","WooCommerce","Magento","BC","Saleor","WordPressOnBigCommerce","Headless","ReCharge"],"type":"string","description":"All of the platforms supported or planned to be supported."},"RechargeOrder":{"title":"RechargeOrder","required":["id","charge_status","payment_processor","address_is_active","status","type","charge_id","address_id","customer_id","hash","is_prepaid","created_at","updated_at","email","subtotal_price","tags","line_items","total_price","shipping_address","billing_address","customer","currency","taxes_included"],"type":"object","properties":{"id":{"title":"Id","type":"integer"},"transaction_id":{"title":"Transaction Id","type":"string"},"charge_status":{"title":"Charge Status","type":"string"},"payment_processor":{"title":"Payment Processor","type":"string"},"address_is_active":{"title":"Address Is Active","type":"integer"},"status":{"title":"Status","type":"string"},"type":{"title":"Type","type":"string"},"charge_id":{"title":"Charge Id","type":"integer"},"address_id":{"title":"Address Id","type":"integer"},"shipping_date":{"title":"Shipping Date","type":"string","format":"date-time"},"scheduled_at":{"title":"Scheduled At","type":"string","format":"date-time"},"shipped_date":{"title":"Shipped Date","type":"string","format":"date-time"},"processed_at":{"title":"Processed At","type":"string","format":"date-time"},"customer_id":{"title":"Customer Id","type":"integer"},"hash":{"title":"Hash","type":"string"},"is_prepaid":{"title":"Is Prepaid","type":"integer"},"created_at":{"title":"Created At","type":"string","format":"date-time"},"updated_at":{"title":"Updated At","type":"string","format":"date-time"},"first_name":{"title":"First Name","type":"string","default":"None"},"last_name":{"title":"Last Name","type":"string","default":"None"},"email":{"title":"Email","type":"string"},"total_line_items_price":{"title":"Total Line Items Price"},"subtotal_price":{"title":"Subtotal Price","type":"number"},"total_discounts":{"title":"Total Discounts","type":"number"},"total_tax":{"title":"Total Tax","type":"number"},"total_weight":{"title":"Total Weight","type":"integer"},"total_refunds":{"title":"Total Refunds"},"tags":{"title":"Tags","type":"array","items":{"type":"string"}},"note":{"title":"Note","type":"string"},"shipping_lines":{"title":"Shipping Lines","type":"array","items":{"$ref":"#/components/schemas/RechargeOrderShippingLine"}},"tax_lines":{"title":"Tax Lines","type":"array","items":{"$ref":"#/components/schemas/RechargeOrderTaxLine"}},"discount_codes":{"title":"Discount Codes","type":"array","items":{}},"note_attributes":{"title":"Note Attributes","type":"array","items":{}},"line_items":{"title":"Line Items","type":"array","items":{"$ref":"#/components/schemas/RechargeOrderLineItem"}},"total_price":{"title":"Total Price","type":"number"},"shipping_address":{"title":"Shipping Address","type":"object"},"billing_address":{"title":"Billing Address","type":"object"},"browser_ip":{"title":"Browser Ip","type":"string","format":"ipvanyaddress"},"customer":{"title":"Customer","type":"object"},"currency":{"title":"Currency","type":"string"},"taxes_included":{"title":"Taxes Included","type":"boolean"},"transactions":{"title":"Transactions","type":"array","items":{}},"processing_method":{"title":"Processing Method","type":"string"},"send_webhooks":{"title":"Send Webhooks","type":"boolean"},"notify_customer":{"title":"Notify Customer","type":"boolean"},"send_fulfillment_receipt":{"title":"Send Fulfillment Receipt","type":"boolean"},"external_order_id":{"title":"External Order Id"},"external_order_number":{"title":"External Order Number"},"external_cart_token":{"title":"External Cart Token","type":"string"},"external_customer_id":{"title":"External Customer Id","type":"integer"}},"description":"A ReCharge Order object"},"RechargeOrderLineItem":{"title":"RechargeOrderLineItem","required":["price","title","external_product_id","external_variant_id","quantity"],"type":"object","properties":{"sku":{"title":"Sku","type":"string"},"grams":{"title":"Grams","type":"integer"},"tax_lines":{"title":"Tax Lines","type":"array","items":{"$ref":"#/components/schemas/RechargeOrderTaxLine"}},"price":{"title":"Price","type":"number"},"title":{"title":"Title","type":"string"},"external_product_id":{"title":"External Product Id","type":"integer"},"external_variant_id":{"title":"External Variant Id","type":"integer"},"images":{"title":"Images","type":"object"},"variant_title":{"title":"Variant Title","type":"string"},"product_title":{"title":"Product Title","type":"string"},"properties":{"title":"Properties","type":"array","items":{}},"quantity":{"title":"Quantity","type":"integer"},"inventory_level":{"title":"Inventory Level","type":"string"}},"description":"A Line Item within a ReCharge Order Object"},"RechargeOrderShippingLine":{"title":"RechargeOrderShippingLine","required":["price","code","tax_lines","title"],"type":"object","properties":{"price":{"title":"Price","type":"number"},"code":{"title":"Code","type":"string"},"tax_lines":{"title":"Tax Lines","type":"array","items":{"$ref":"#/components/schemas/RechargeOrderTaxLine"}},"title":{"title":"Title","type":"string"}},"description":"A Shipping Line within a ReCharge Order object"},"RechargeOrderTaxLine":{"title":"RechargeOrderTaxLine","required":["price","rate","title"],"type":"object","properties":{"price":{"title":"Price","type":"number"},"rate":{"title":"Rate","type":"number"},"title":{"title":"Title","type":"string"}},"description":"A Tax Line within a ReCharger Order object and ReCharge Order Line Item object"},"Settings":{"title":"Settings","required":["store_hash"],"type":"object","properties":{"store_hash":{"title":"Store Hash","type":"string"},"sync_orders":{"title":"Sync Orders","type":"boolean","default":true},"store_id":{"title":"Store Id","type":"string"},"cancel_store_order":{"title":"Cancel Store Order","type":"boolean","default":true},"is_rc_staging":{"title":"Is Rc Staging","type":"boolean","default":false},"rc_api_url":{"title":"Rc Api Url","type":"string"},"sync_rc_refund_order_status_to_platform":{"title":"Sync Rc Refund Order Status To Platform","type":"boolean","default":true},"created_at":{"title":"Created At","type":"string","format":"date-time"},"updated_at":{"title":"Updated At","type":"string","format":"date-time"},"all_checkouts_on_recharge":{"title":"All Checkouts On Recharge","type":"boolean","default":false},"display_and_handoff_coupons":{"title":"Display And Handoff Coupons","type":"boolean","default":false},"use_bc_discounts":{"title":"Use Bc Discounts","type":"boolean","default":false},"stack_subandsave":{"title":"Stack Subandsave","type":"boolean","default":true},"apply_bc_discount_to_first_order":{"title":"Apply Bc Discount To First Order","type":"boolean","default":true},"create_coupon_for_coupon_only_cart":{"title":"Create Coupon For Coupon Only Cart","type":"boolean","default":false},"end_to_end_test_type":{"allOf":[{"$ref":"#/components/schemas/EndToEndTestTypes"}],"default":"skip"},"end_to_end_skip_tests":{"title":"End To End Skip Tests","type":"array","items":{}},"inject_orders_hours_ago_start":{"title":"Inject Orders Hours Ago Start","type":"integer","default":4},"inject_orders_hours_ago_end":{"title":"Inject Orders Hours Ago End","type":"integer","default":1},"refund_orders_days_ago_start":{"title":"Refund Orders Days Ago Start","type":"integer","default":30},"refund_orders_days_ago_end":{"title":"Refund Orders Days Ago End","type":"integer","default":7},"prefill_checkout_form":{"title":"Prefill Checkout Form","type":"boolean","default":false}},"description":"The database model for settings entities.\n\nAttributes:\n    store_id: The ID number for the store record associated with the settings.\n    store_hash: The unique store hash of the parent store record (i.e. Foreign Key).\n    cancel_store_order: Boolean value settings telling process wheather to cancel order on BC\n    or not (defaults to True)\n    sync_rc_refund_order_status_to_platform: Boolean value that controls whether the\n    'status' field on the eCommerce platform (e.g. BigCommerce) should be updated when an admin\n    refunds an order through the ReCharge admin dashboard.\n    is_rc_staging: Boolean value settings on whether to use the ReCharge Staging API or not (\n    defaults to False)\n    rc_api_url: String value that sets a custom recharge API URL\n    created_at: The UTC DateTime of when the settings is created\n    updated_at: The UTC DateTime of when the settings is updated\n\n    all_checkouts_on_recharge: Boolean value that when true, redirects all checkouts to the\n    recharge checkout\n    display_and_handoff_coupons: Boolean value that when true, displays coupon entry field on\n    cart page and hands off coupons to Recharge\n    use_bc_discounts: overrides display_and_handoff_coupons, lumps BC coupons and promos\n    together in RC coupon creation\n    stack_subandsave: Add sub&save discount on top of existing discounts\n    apply_bc_discount_to_first_order: use dynamic coupon generation for discount when apply\n    only to first order\n    create_coupon_for_coupon_only_cart: Pass coupon code directly to recharge/ do not do\n    discount validation and dynamic coupon creation\n    end_to_end_test_type: A type that represents if and how the end-to-end tests should be\n    run for this store\n    end_to_end_skip_tests: List with the end to end tests that are supposed to be skipped (\n    e.g. ['tests/end_to_end/test_account_page.py'])\n    inject_orders_hours_ago_start: The start of the time interval that is used to fetch the\n    missing orders for injection\n    inject_orders_hours_ago_end: The end of the time interval that is used to fetch the\n    missing orders for injection\n    refund_orders_days_ago_start: The start of the time interval that is used to fetch the\n    missing orders for refund\n    refund_orders_days_ago_end: The end of the time interval that is used to fetch the\n    missing orders for refund"},"SettingsUpdateSchema":{"title":"SettingsUpdateSchema","type":"object","properties":{"sync_orders":{"title":"Sync Orders","type":"boolean"},"cancel_store_order":{"title":"Cancel Store Order","type":"boolean"},"is_rc_staging":{"title":"Is Rc Staging","type":"boolean"},"sync_rc_refund_order_status_to_platform":{"title":"Sync Rc Refund Order Status To Platform","type":"boolean"},"created_at":{"title":"Created At","type":"string","format":"date-time"},"updated_at":{"title":"Updated At","type":"string","format":"date-time"},"all_checkouts_on_recharge":{"title":"All Checkouts On Recharge","type":"boolean"},"display_and_handoff_coupons":{"title":"Display And Handoff Coupons","type":"boolean"},"use_bc_discounts":{"title":"Use Bc Discounts","type":"boolean"},"stack_subandsave":{"title":"Stack Subandsave","type":"boolean"},"apply_bc_discount_to_first_order":{"title":"Apply Bc Discount To First Order","type":"boolean"},"create_coupon_for_coupon_only_cart":{"title":"Create Coupon For Coupon Only Cart","type":"boolean"},"end_to_end_test_type":{"$ref":"#/components/schemas/EndToEndTestTypes"},"end_to_end_skip_tests":{"title":"End To End Skip Tests","type":"array","items":{}},"inject_orders_hours_ago_start":{"title":"Inject Orders Hours Ago Start","type":"integer"},"inject_orders_hours_ago_end":{"title":"Inject Orders Hours Ago End","type":"integer"},"refund_orders_days_ago_start":{"title":"Refund Orders Days Ago Start","type":"integer"},"refund_orders_days_ago_end":{"title":"Refund Orders Days Ago End","type":"integer"},"prefill_checkout_form":{"title":"Prefill Checkout Form","type":"boolean","default":false}},"description":"The schema for settings entities.\n\nAttributes:\n    cancel_store_order: Boolean value settings telling process wheather to cancel order on BC or not (defaults to True)\n    sync_rc_refund_order_status_to_platform: Boolean value that controls whether the\n    'status' field on the eCommerce platform (e.g. BigCommerce) should be updated when an admin\n    refunds an order through the ReCharge admin dashboard.\n    is_rc_staging: Boolean value settings on whether to use the ReCharge Staging API or not (defaults to False)\n\n    all_checkouts_on_recharge: Boolean value that when true, redirects all checkouts to the recharge checkout\n    display_and_handoff_coupons: Boolean value that when true, displays coupon entry field on cart page and hands off coupons to Recharge\n    use_bc_discounts: overrides display_and_handoff_coupons, lumps BC coupons and promos together in RC coupon creation\n    stack_subandsave: Add sub&save discount on top of existing discounts\n    apply_bc_discount_to_first_order: use dynamic coupon generation for discount when apply only to first order\n    create_coupon_for_coupon_only_cart: Pass coupon code directly to recharge/ do not do discount validation and dynamic coupon creation\n    end_to_end_test_type: A type that represents if and how the end-to-end tests should be run for this store\n    end_to_end_skip_tests: List with the end to end tests that are supposed to be skipped (e.g. ['tests/end_to_end/test_account_page.py'])\n    inject_orders_hours_ago_start: The start of the time interval that is used to fetch the missing orders for injection\n    inject_orders_hours_ago_end: The end of the time interval that is used to fetch the missing orders for injection\n    refund_orders_days_ago_start: The start of the time interval that is used to fetch the missing orders for refund\n    refund_orders_days_ago_end: The end of the time interval that is used to fetch the missing orders for refund\n    prefillCheckoutForm: Boolean value that when true, allows us to prefill customer infor into checkout form before handoff to recharge","example":{"sync_orders":true,"cancel_store_order":true,"is_rc_staging":false,"sync_rc_refund_order_status_to_platform":true,"updated_at":1796526121,"all_checkouts_on_recharge":false,"display_and_handoff_coupons":false,"use_bc_discounts":false,"stack_subandsave":true,"apply_bc_discount_to_first_order":true,"create_coupon_for_coupon_only_cart":false,"end_to_end_test_type":"skip","end_to_end_skip_tests":["tests/end_to_end/test_store_checkout.py"],"inject_orders_hours_ago_start":4,"inject_orders_hours_ago_end":1,"refund_orders_days_ago_start":30,"refund_orders_days_ago_end":7,"prefill_checkout_form":true}},"Store":{"title":"Store","required":["id"],"type":"object","properties":{"inventory_behaviour":{"title":"Inventory Behaviour","type":"string","default":""},"id":{"title":"Id","type":"integer"},"platform":{"title":"Platform","type":"string","default":"big_commerce"}},"description":"An enhanced Pydantic BaseModel class"},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}}