{"openapi":"3.1.0","info":{"title":"Crate Admin REST API","version":"v1","description":"The Crate public REST API. Token-authenticated (Personal Access Tokens\nor OAuth2 Bearer tokens). Authenticated requests are isolated to\nthe store the token belongs to.\n\n**Auth**: send `Authorization: Bearer <token>`. Permissions are\ndescribed per operation. The web vitals beacon does not require a token.\nCreate a personal access token in **Settings → API keys** and\ncopy it when it is shown. Use **Restricted** to grant only the\npermissions your integration needs.\n\n**Pagination**: paginated list endpoints accept `limit` and `page_info`.\nFollow the `Link` header (`rel=\"next\"` / `rel=\"previous\"`); the cursor\nis opaque. Some lists do not use this pagination. Pass scalar query\nvalues: arrays, objects and booleans are rejected with HTTP 400.\nAn absent or non-positive limit uses 50; values above 250 use 250.\nInvalid cursor strings retain the first-page fallback.\n\n**Rate limits**: API controller responses publish advisory\n`X-Crate-Api-Call-Limit`, `X-RateLimit-Limit` and\n`X-RateLimit-Remaining` headers. Middleware throttles return 429\nwith a plain-text body and `Retry-After` in seconds, before the\ncontroller runs. License validate/activate/deactivate calls can\nalso return a JSON 429 for their per-key limit.\n"},"servers":[{"url":"https://staging.crate.nagara.cloud","description":"API origin"}],"tags":[{"name":"Products"},{"name":"Inventory"},{"name":"Orders"},{"name":"Customers"},{"name":"Discounts"},{"name":"Marketing"},{"name":"Analytics"},{"name":"Finance"},{"name":"Storefront"},{"name":"Subscriptions"},{"name":"Bookings"},{"name":"Apps"},{"name":"Account"},{"name":"License Keys"}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/account":{"get":{"tags":["Account"],"summary":"Show account","operationId":"get_api_v1_account_0ecf80","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}]}},"/api/v1/products/{product_id}/variants":{"get":{"tags":["Products"],"summary":"Index variants","operationId":"get_api_v1_product_variants_845961","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"post":{"tags":["Products"],"summary":"Create variants","operationId":"post_variants_f7db53","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/products/{product_id}/variants/{id}":{"get":{"tags":["Products"],"summary":"Show variants","operationId":"get_api_v1_product_variant_c6bc3c","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"patch":{"tags":["Products"],"summary":"Update variants","operationId":"patch_variants_585062","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"put":{"tags":["Products"],"summary":"Update variants","operationId":"put_variants_489229","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"delete":{"tags":["Products"],"summary":"Destroy variants","operationId":"delete_variants_21b43f","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/products":{"get":{"tags":["Products"],"summary":"Index products","operationId":"get_api_v1_products_fcfb8a","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"post":{"tags":["Products"],"summary":"Create products","operationId":"post_products_449382","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/products/{id}":{"get":{"tags":["Products"],"summary":"Show products","operationId":"get_api_v1_product_780edf","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"patch":{"tags":["Products"],"summary":"Update products","operationId":"patch_products_fae2eb","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"put":{"tags":["Products"],"summary":"Update products","operationId":"put_products_eba04c","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"delete":{"tags":["Products"],"summary":"Destroy products","operationId":"delete_products_3e1a0f","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/collections":{"get":{"tags":["Products"],"summary":"Index collections","operationId":"get_api_v1_collections_e581f5","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"post":{"tags":["Products"],"summary":"Create collections","operationId":"post_collections_d701f8","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/collections/{id}":{"get":{"tags":["Products"],"summary":"Show collections","operationId":"get_api_v1_collection_f59725","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"patch":{"tags":["Products"],"summary":"Update collections","operationId":"patch_collections_53b6f2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"put":{"tags":["Products"],"summary":"Update collections","operationId":"put_collections_7dcc57","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"delete":{"tags":["Products"],"summary":"Destroy collections","operationId":"delete_collections_fcb570","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/bundles":{"get":{"tags":["Products"],"summary":"Index bundles","operationId":"get_api_v1_bundles_c185fb","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"post":{"tags":["Products"],"summary":"Create bundles","operationId":"post_bundles_629e94","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/bundles/{id}":{"get":{"tags":["Products"],"summary":"Show bundles","operationId":"get_api_v1_bundle_81065a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_products`."},"patch":{"tags":["Products"],"summary":"Update bundles","operationId":"patch_bundles_dab4e6","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"put":{"tags":["Products"],"summary":"Update bundles","operationId":"put_bundles_eb7358","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."},"delete":{"tags":["Products"],"summary":"Destroy bundles","operationId":"delete_bundles_78e469","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_products`."}},"/api/v1/inventory":{"get":{"tags":["Inventory Items"],"summary":"Index inventory items","operationId":"get_api_v1_inventory_items_4e3bfd","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_inventory`."}},"/api/v1/inventory/{id}":{"get":{"tags":["Inventory Items"],"summary":"Show inventory items","operationId":"get_api_v1_inventory_item_642b2b","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_inventory`."},"patch":{"tags":["Inventory Items"],"summary":"Update inventory items","operationId":"patch_inventory_items_bc9481","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_inventory`."},"put":{"tags":["Inventory Items"],"summary":"Update inventory items","operationId":"put_inventory_items_09a995","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_inventory`."}},"/api/v1/locations":{"get":{"tags":["Inventory"],"summary":"Index locations","operationId":"get_api_v1_locations_fe5978","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_inventory`."},"post":{"tags":["Inventory"],"summary":"Create locations","operationId":"post_locations_560c5c","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_inventory`."}},"/api/v1/locations/{id}":{"get":{"tags":["Inventory"],"summary":"Show locations","operationId":"get_api_v1_location_7059bb","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_inventory`."},"patch":{"tags":["Inventory"],"summary":"Update locations","operationId":"patch_locations_7aa1d9","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_inventory`."},"put":{"tags":["Inventory"],"summary":"Update locations","operationId":"put_locations_4f4a58","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_inventory`."},"delete":{"tags":["Inventory"],"summary":"Destroy locations","operationId":"delete_locations_b8768f","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_inventory`."}},"/api/v1/orders/{id}/cancel":{"post":{"tags":["Orders"],"summary":"Cancel orders","operationId":"post_cancel_api_v1_order_08f047","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_orders`."}},"/api/v1/orders":{"get":{"tags":["Orders"],"summary":"Index orders","operationId":"get_api_v1_orders_27f481","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_orders`."}},"/api/v1/orders/{id}":{"get":{"tags":["Orders"],"summary":"Show orders","operationId":"get_api_v1_order_9e952a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_orders`."},"patch":{"tags":["Orders"],"summary":"Update orders","operationId":"patch_orders_d689e3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_orders`."},"put":{"tags":["Orders"],"summary":"Update orders","operationId":"put_orders_24d3e1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_orders`."}},"/api/v1/abandoned_carts":{"get":{"tags":["Orders"],"summary":"Index abandoned carts","operationId":"get_api_v1_abandoned_carts_657c1f","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_orders`."}},"/api/v1/abandoned_carts/{id}":{"get":{"tags":["Orders"],"summary":"Show abandoned carts","operationId":"get_api_v1_abandoned_cart_cb83d7","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_orders`."}},"/api/v1/returns":{"get":{"tags":["Orders"],"summary":"Index returns","operationId":"get_api_v1_returns_a6fe1e","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_orders`."}},"/api/v1/returns/{id}":{"get":{"tags":["Orders"],"summary":"Show returns","operationId":"get_api_v1_return_b3134a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_orders`."}},"/api/v1/customers":{"get":{"tags":["Customers"],"summary":"Index customers","operationId":"get_api_v1_customers_79f6fb","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_customers`."},"post":{"tags":["Customers"],"summary":"Create customers","operationId":"post_customers_1c6478","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."}},"/api/v1/customers/{id}":{"get":{"tags":["Customers"],"summary":"Show customers","operationId":"get_api_v1_customer_0b0bcc","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_customers`."},"patch":{"tags":["Customers"],"summary":"Update customers","operationId":"patch_customers_e4c1ba","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."},"put":{"tags":["Customers"],"summary":"Update customers","operationId":"put_customers_2cab18","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."},"delete":{"tags":["Customers"],"summary":"Destroy customers","operationId":"delete_customers_c94ec7","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."}},"/api/v1/customer_groups":{"get":{"tags":["Customers"],"summary":"Index customer groups","operationId":"get_api_v1_customer_groups_de5e6b","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_customers`."},"post":{"tags":["Customers"],"summary":"Create customer groups","operationId":"post_customer_groups_a00709","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."}},"/api/v1/customer_groups/{id}":{"get":{"tags":["Customers"],"summary":"Show customer groups","operationId":"get_api_v1_customer_group_25f889","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_customers`."},"patch":{"tags":["Customers"],"summary":"Update customer groups","operationId":"patch_customer_groups_20c123","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."},"put":{"tags":["Customers"],"summary":"Update customer groups","operationId":"put_customer_groups_88f68a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."},"delete":{"tags":["Customers"],"summary":"Destroy customer groups","operationId":"delete_customer_groups_656891","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_customers`."}},"/api/v1/discounts":{"get":{"tags":["Discounts"],"summary":"Index discounts","operationId":"get_api_v1_discounts_ff894d","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_discounts`."},"post":{"tags":["Discounts"],"summary":"Create discounts","operationId":"post_discounts_d1ae6c","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"For `value_type`, `percent` is accepted as an alias for `percentage`.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/discounts/{id}":{"get":{"tags":["Discounts"],"summary":"Show discounts","operationId":"get_api_v1_discount_84670a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_discounts`."},"patch":{"tags":["Discounts"],"summary":"Update discounts","operationId":"patch_discounts_416742","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"For `value_type`, `percent` is accepted as an alias for `percentage`.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Discounts"],"summary":"Update discounts","operationId":"put_discounts_341cb1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"For `value_type`, `percent` is accepted as an alias for `percentage`.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Discounts"],"summary":"Destroy discounts","operationId":"delete_discounts_133be2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_discounts`."}},"/api/v1/coupons":{"get":{"tags":["Discounts"],"summary":"Index coupons","operationId":"get_api_v1_coupons_87714e","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_discounts`."},"post":{"tags":["Discounts"],"summary":"Create coupons","operationId":"post_coupons_f310f7","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"For `value_type`, `percent` is accepted as an alias for `percentage`.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/coupons/{id}":{"get":{"tags":["Discounts"],"summary":"Show coupons","operationId":"get_api_v1_coupon_8747f9","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_discounts`."},"patch":{"tags":["Discounts"],"summary":"Update coupons","operationId":"patch_coupons_88f551","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"For `value_type`, `percent` is accepted as an alias for `percentage`.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Discounts"],"summary":"Update coupons","operationId":"put_coupons_5e96b3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"For `value_type`, `percent` is accepted as an alias for `percentage`.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Discounts"],"summary":"Destroy coupons","operationId":"delete_coupons_614ab5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_discounts`."}},"/api/v1/gift_cards":{"get":{"tags":["Discounts"],"summary":"Index gift cards","operationId":"get_api_v1_gift_cards_9a5f13","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_discounts`."},"post":{"tags":["Discounts"],"summary":"Create gift cards","operationId":"post_gift_cards_badf32","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_discounts`."}},"/api/v1/gift_cards/{id}":{"get":{"tags":["Discounts"],"summary":"Show gift cards","operationId":"get_api_v1_gift_card_907ba5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_discounts`."},"patch":{"tags":["Discounts"],"summary":"Update gift cards","operationId":"patch_gift_cards_ef47bc","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_discounts`."},"put":{"tags":["Discounts"],"summary":"Update gift cards","operationId":"put_gift_cards_f2a1d8","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_discounts`."},"delete":{"tags":["Discounts"],"summary":"Destroy gift cards","operationId":"delete_gift_cards_ba4805","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_discounts`."}},"/api/v1/gift_with_purchases":{"get":{"tags":["Discounts"],"summary":"Index gift with purchases","operationId":"get_api_v1_gift_with_purchases_d44900","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"description":"Experimental configuration API. Requires the store's gift-with-purchase release flag and dashboard surface access in addition to discount scopes; unavailable stores receive 404. Saving an offer does not enable automatic gift fulfillment in checkout.\n\nRequired scope: `read_discounts`.","security":[{"bearerAuth":[]}]},"post":{"tags":["Discounts"],"summary":"Create gift with purchases","operationId":"post_gift_with_purchases_0aa27f","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"Experimental configuration API. Requires the store's gift-with-purchase release flag and dashboard surface access in addition to discount scopes; unavailable stores receive 404. Saving an offer does not enable automatic gift fulfillment in checkout.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/gift_with_purchases/{id}":{"get":{"tags":["Discounts"],"summary":"Show gift with purchases","operationId":"get_api_v1_gift_with_purchase_7c45e9","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"description":"Experimental configuration API. Requires the store's gift-with-purchase release flag and dashboard surface access in addition to discount scopes; unavailable stores receive 404. Saving an offer does not enable automatic gift fulfillment in checkout.\n\nRequired scope: `read_discounts`.","security":[{"bearerAuth":[]}]},"patch":{"tags":["Discounts"],"summary":"Update gift with purchases","operationId":"patch_gift_with_purchases_e894be","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"Experimental configuration API. Requires the store's gift-with-purchase release flag and dashboard surface access in addition to discount scopes; unavailable stores receive 404. Saving an offer does not enable automatic gift fulfillment in checkout.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Discounts"],"summary":"Update gift with purchases","operationId":"put_gift_with_purchases_f1d270","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"description":"Experimental configuration API. Requires the store's gift-with-purchase release flag and dashboard surface access in addition to discount scopes; unavailable stores receive 404. Saving an offer does not enable automatic gift fulfillment in checkout.\n\nRequired scope: `write_discounts`.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Discounts"],"summary":"Destroy gift with purchases","operationId":"delete_gift_with_purchases_8c41c0","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"description":"Experimental configuration API. Requires the store's gift-with-purchase release flag and dashboard surface access in addition to discount scopes; unavailable stores receive 404. Saving an offer does not enable automatic gift fulfillment in checkout.\n\nRequired scope: `write_discounts`.","security":[{"bearerAuth":[]}]}},"/api/v1/campaigns":{"get":{"tags":["Marketing"],"summary":"Index campaigns","operationId":"get_api_v1_campaigns_16ad91","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."},"post":{"tags":["Marketing"],"summary":"Create campaigns","operationId":"post_campaigns_3cc32b","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."}},"/api/v1/campaigns/{id}":{"get":{"tags":["Marketing"],"summary":"Show campaigns","operationId":"get_api_v1_campaign_a9a148","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."},"patch":{"tags":["Marketing"],"summary":"Update campaigns","operationId":"patch_campaigns_66de76","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."},"put":{"tags":["Marketing"],"summary":"Update campaigns","operationId":"put_campaigns_357dd2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."},"delete":{"tags":["Marketing"],"summary":"Destroy campaigns","operationId":"delete_campaigns_704e4d","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."}},"/api/v1/automations":{"get":{"tags":["Marketing"],"summary":"Index automations","operationId":"get_api_v1_automations_99bbc1","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."},"post":{"tags":["Marketing"],"summary":"Create automations","operationId":"post_automations_a7d31e","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."}},"/api/v1/automations/{id}":{"get":{"tags":["Marketing"],"summary":"Show automations","operationId":"get_api_v1_automation_9421ed","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."},"patch":{"tags":["Marketing"],"summary":"Update automations","operationId":"patch_automations_ea04bf","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."},"put":{"tags":["Marketing"],"summary":"Update automations","operationId":"put_automations_8d9a04","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."},"delete":{"tags":["Marketing"],"summary":"Destroy automations","operationId":"delete_automations_9dfe77","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."}},"/api/v1/countdowns":{"get":{"tags":["Marketing"],"summary":"Index countdowns","operationId":"get_api_v1_countdowns_6a3d6f","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."},"post":{"tags":["Marketing"],"summary":"Create countdowns","operationId":"post_countdowns_77e263","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."}},"/api/v1/countdowns/{id}":{"get":{"tags":["Marketing"],"summary":"Show countdowns","operationId":"get_api_v1_countdown_083186","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."},"patch":{"tags":["Marketing"],"summary":"Update countdowns","operationId":"patch_countdowns_231440","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."},"put":{"tags":["Marketing"],"summary":"Update countdowns","operationId":"put_countdowns_14ddaf","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."},"delete":{"tags":["Marketing"],"summary":"Destroy countdowns","operationId":"delete_countdowns_087ce1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_marketing`."}},"/api/v1/referrals":{"get":{"tags":["Marketing"],"summary":"Index referrals","operationId":"get_api_v1_referrals_06e06f","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."}},"/api/v1/referrals/{id}":{"get":{"tags":["Marketing"],"summary":"Show referrals","operationId":"get_api_v1_referral_08cce4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_marketing`."}},"/api/v1/analytics":{"get":{"tags":["Analytics"],"summary":"Show analytics","operationId":"get_api_v1_analytics_847248","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"},"422":{"$ref":"#/components/responses/Unprocessable"},"503":{"$ref":"#/components/responses/AnalyticsTimeout"}},"description":"Grouping by customers (`groupBy=customers`) or using the customer filter also requires `read_customers`.\n\nRequired scope: `read_analytics`.","security":[{"bearerAuth":[]}]}},"/api/v1/expenses":{"get":{"tags":["Finance"],"summary":"Index expenses","operationId":"get_api_v1_expenses_2db4fd","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."},"post":{"tags":["Finance"],"summary":"Create expenses","operationId":"post_expenses_2f46ca","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."}},"/api/v1/expenses/{id}":{"get":{"tags":["Finance"],"summary":"Show expenses","operationId":"get_api_v1_expense_313302","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."},"patch":{"tags":["Finance"],"summary":"Update expenses","operationId":"patch_expenses_7a657a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."},"put":{"tags":["Finance"],"summary":"Update expenses","operationId":"put_expenses_dedebf","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."},"delete":{"tags":["Finance"],"summary":"Destroy expenses","operationId":"delete_expenses_b1737f","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."}},"/api/v1/income_entries":{"get":{"tags":["Finance"],"summary":"Index income entries","operationId":"get_api_v1_income_entries_5ef288","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."},"post":{"tags":["Finance"],"summary":"Create income entries","operationId":"post_income_entries_38ae30","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."}},"/api/v1/income_entries/{id}":{"get":{"tags":["Finance"],"summary":"Show income entries","operationId":"get_api_v1_income_entry_25461e","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."},"patch":{"tags":["Finance"],"summary":"Update income entries","operationId":"patch_income_entries_62478d","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."},"put":{"tags":["Finance"],"summary":"Update income entries","operationId":"put_income_entries_b786ac","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."},"delete":{"tags":["Finance"],"summary":"Destroy income entries","operationId":"delete_income_entries_583b0c","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."}},"/api/v1/chargebacks":{"get":{"tags":["Finance"],"summary":"Index chargebacks","operationId":"get_api_v1_chargebacks_e83f4d","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/chargebacks/{id}":{"get":{"tags":["Finance"],"summary":"Show chargebacks","operationId":"get_api_v1_chargeback_d71cab","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."},"patch":{"tags":["Finance"],"summary":"Update chargebacks","operationId":"patch_chargebacks_6fd5fc","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."},"put":{"tags":["Finance"],"summary":"Update chargebacks","operationId":"put_chargebacks_f35ec3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_finance`."}},"/api/v1/payouts":{"get":{"tags":["Finance"],"summary":"Index payouts","operationId":"get_api_v1_payouts_0f3a56","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/payouts/{id}":{"get":{"tags":["Finance"],"summary":"Show payouts","operationId":"get_api_v1_payout_c7fc2c","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/invoices":{"get":{"tags":["Finance"],"summary":"Index invoices","operationId":"get_api_v1_invoices_90474a","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/invoices/{id}":{"get":{"tags":["Finance"],"summary":"Show invoices","operationId":"get_api_v1_invoice_5f5711","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/receipts":{"get":{"tags":["Finance"],"summary":"Index receipts","operationId":"get_api_v1_receipts_c215a3","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/receipts/{id}":{"get":{"tags":["Finance"],"summary":"Show receipts","operationId":"get_api_v1_receipt_c0cfdf","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/capital":{"get":{"tags":["Finance"],"summary":"Show capital","operationId":"get_api_v1_capital_15c311","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/wallet":{"get":{"tags":["Finance"],"summary":"Show wallet","operationId":"get_api_v1_wallet_9ff868","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_finance`."}},"/api/v1/pages":{"get":{"tags":["Storefront"],"summary":"Index pages","operationId":"get_api_v1_pages_a7c00f","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."},"post":{"tags":["Storefront"],"summary":"Create pages","operationId":"post_pages_b94f12","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/pages/{id}":{"get":{"tags":["Storefront"],"summary":"Show pages","operationId":"get_api_v1_page_48e1ee","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."},"patch":{"tags":["Storefront"],"summary":"Update pages","operationId":"patch_pages_e6e0c4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."},"put":{"tags":["Storefront"],"summary":"Update pages","operationId":"put_pages_891126","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."},"delete":{"tags":["Storefront"],"summary":"Destroy pages","operationId":"delete_pages_61a02d","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/catalog_settings":{"get":{"tags":["Storefront"],"summary":"Show catalog settings","operationId":"get_api_v1_catalog_settings_9b359d","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."},"patch":{"tags":["Storefront"],"summary":"Update catalog settings","operationId":"patch_catalog_settings_355132","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/subscriptions":{"get":{"tags":["Subscriptions"],"summary":"Index subscriptions","operationId":"get_api_v1_subscriptions_222403","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_subscriptions`."}},"/api/v1/subscriptions/{id}":{"get":{"tags":["Subscriptions"],"summary":"Show subscriptions","operationId":"get_api_v1_subscription_bf2cc9","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_subscriptions`."},"patch":{"tags":["Subscriptions"],"summary":"Update subscriptions","operationId":"patch_subscriptions_645a20","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_subscriptions`."},"put":{"tags":["Subscriptions"],"summary":"Update subscriptions","operationId":"put_subscriptions_575384","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_subscriptions`."}},"/api/v1/subscription_plans":{"get":{"tags":["Subscriptions"],"summary":"Index subscription plans","operationId":"get_api_v1_subscription_plans_5a31d8","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_subscriptions`."},"post":{"tags":["Subscriptions"],"summary":"Create subscription plans","operationId":"post_subscription_plans_bb7291","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_subscriptions`."}},"/api/v1/subscription_plans/{id}":{"get":{"tags":["Subscriptions"],"summary":"Show subscription plans","operationId":"get_api_v1_subscription_plan_4de984","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_subscriptions`."},"patch":{"tags":["Subscriptions"],"summary":"Update subscription plans","operationId":"patch_subscription_plans_15c6a9","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_subscriptions`."},"put":{"tags":["Subscriptions"],"summary":"Update subscription plans","operationId":"put_subscription_plans_625f5b","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_subscriptions`."},"delete":{"tags":["Subscriptions"],"summary":"Destroy subscription plans","operationId":"delete_subscription_plans_fc4651","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_subscriptions`."}},"/api/v1/services":{"get":{"tags":["Bookings"],"summary":"Index services","operationId":"get_api_v1_services_d5bc37","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_bookings`."},"post":{"tags":["Bookings"],"summary":"Create services","operationId":"post_services_f8a5b4","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_bookings`."}},"/api/v1/services/{id}":{"get":{"tags":["Bookings"],"summary":"Show services","operationId":"get_api_v1_service_ab53f3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_bookings`."},"patch":{"tags":["Bookings"],"summary":"Update services","operationId":"patch_services_9ea0b1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_bookings`."},"put":{"tags":["Bookings"],"summary":"Update services","operationId":"put_services_9aa383","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_bookings`."},"delete":{"tags":["Bookings"],"summary":"Destroy services","operationId":"delete_services_beb420","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_bookings`."}},"/api/v1/appointments":{"get":{"tags":["Bookings"],"summary":"Index appointments","operationId":"get_api_v1_appointments_961eb1","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_bookings`."}},"/api/v1/appointments/{id}":{"get":{"tags":["Bookings"],"summary":"Show appointments","operationId":"get_api_v1_appointment_1e3651","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_bookings`."},"patch":{"tags":["Bookings"],"summary":"Update appointments","operationId":"patch_appointments_4aa697","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_bookings`."},"put":{"tags":["Bookings"],"summary":"Update appointments","operationId":"put_appointments_0f3986","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_bookings`."}},"/api/v1/webhooks":{"get":{"tags":["Apps"],"summary":"Index webhooks","operationId":"get_api_v1_webhooks_8d76a5","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_apps`."},"post":{"tags":["Apps"],"summary":"Create webhooks","operationId":"post_webhooks_866920","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_apps`."}},"/api/v1/webhooks/{id}":{"get":{"tags":["Apps"],"summary":"Show webhooks","operationId":"get_api_v1_webhook_397a9c","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_apps`."},"patch":{"tags":["Apps"],"summary":"Update webhooks","operationId":"patch_webhooks_2ff2aa","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_apps`."},"put":{"tags":["Apps"],"summary":"Update webhooks","operationId":"put_webhooks_b53ec5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_apps`."},"delete":{"tags":["Apps"],"summary":"Destroy webhooks","operationId":"delete_webhooks_f88973","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_apps`."}},"/api/v1/web_vitals":{"post":{"tags":["Web Vitals"],"summary":"Create web vitals","operationId":"post_api_v1_web_vitals_33b16c","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"400":{"description":"Beacon error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"422":{"description":"Beacon error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"500":{"description":"Beacon error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[]}},"/api/v1/me":{"get":{"tags":["Account"],"summary":"Show account","operationId":"get_api_v1_me_f5c00c","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}]}},"/api/v1/license_keys/validate":{"post":{"tags":["License Keys"],"summary":"Validate license keys","operationId":"post_validate_api_v1_license_keys_e6af95","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean"},"code":{"type":"string","enum":["valid","revoked","expired","not_issued","not_activated"]},"status":{"type":"string","enum":["issued","revoked","expired"]},"expires_at":{"type":["string","null"],"format":"date-time"},"activations":{"type":"integer"},"activation_limit":{"type":["integer","null"]},"product_id":{"type":"integer"},"variant_id":{"type":["integer","null"]},"activation":{"type":["object","null"],"description":"The active device record when `instance_id` was supplied and checked successfully."}},"required":["valid","code","status","expires_at","activations","activation_limit","product_id","variant_id","activation"]}}}},"429":{"$ref":"#/components/responses/LicenseRateLimited"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key"],"properties":{"key":{"type":"string","description":"The buyer's license key.","examples":["ABCD-EFGH-JKMN-PQRS"]},"product_id":{"type":"integer","description":"Match only keys for this product."},"instance_id":{"type":"string","description":"Also check that the key is activated on this device."}}}}}},"description":"Check a buyer's license key in the store associated with the bearer token. A recognized key returns 200 with a `valid` boolean, even when revoked, expired, or not active on the requested device. An unknown key, an unsold key, a key from another store, or a key for a different requested product returns 404.\n\nRequired scope: `read_licenses or licenses:activate`.","security":[{"bearerAuth":[]}]}},"/api/v1/license_keys/activate":{"post":{"tags":["License Keys"],"summary":"Activate license keys","operationId":"post_activate_api_v1_license_keys_b804fd","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"201":{"description":"Activation created","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/LicenseRateLimited"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"400":{"$ref":"#/components/responses/BadRequest"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `licenses:activate`."}},"/api/v1/license_keys/deactivate":{"post":{"tags":["License Keys"],"summary":"Deactivate license keys","operationId":"post_deactivate_api_v1_license_keys_871c70","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/LicenseRateLimited"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"400":{"$ref":"#/components/responses/BadRequest"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `licenses:activate`."}},"/api/v1/license_keys/{id}/revoke":{"post":{"tags":["License Keys"],"summary":"Revoke license keys","operationId":"post_revoke_api_v1_license_key_80ee32","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_licenses`."}},"/api/v1/license_keys/{id}/reactivate":{"post":{"tags":["License Keys"],"summary":"Reactivate license keys","operationId":"post_reactivate_api_v1_license_key_5851e4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_licenses`."}},"/api/v1/license_keys":{"get":{"tags":["License Keys"],"summary":"Index license keys","operationId":"get_api_v1_license_keys_38e0b7","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page_info"}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"400":{"$ref":"#/components/responses/BadRequest"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_licenses`."}},"/api/v1/license_keys/{id}":{"get":{"tags":["License Keys"],"summary":"Show license keys","operationId":"get_api_v1_license_key_e02e34","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_licenses`."}},"/api/v1/webhook_subscriptions/samples":{"get":{"tags":["Webhook Subscriptions"],"summary":"Samples webhook subscriptions","operationId":"get_samples_api_v1_webhook_subscriptions_fc5cf6","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `webhooks:manage`."}},"/api/v1/webhook_subscriptions":{"post":{"tags":["Webhook Subscriptions"],"summary":"Create webhook subscriptions","operationId":"post_api_v1_webhook_subscriptions_10601f","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `webhooks:manage`."}},"/api/v1/webhook_subscriptions/{id}":{"delete":{"tags":["Webhook Subscriptions"],"summary":"Destroy webhook subscriptions","operationId":"delete_api_v1_webhook_subscription_0f3f04","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `webhooks:manage`."}},"/api/v1/storefront/sections/publish":{"post":{"tags":["Sections"],"summary":"Publish sections","operationId":"post_publish_api_v1_storefront_sections_5f1a7e","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/sections/preview":{"get":{"tags":["Sections"],"summary":"Preview sections","operationId":"get_preview_api_v1_storefront_sections_86e632","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}},"/api/v1/storefront/sections/history":{"get":{"tags":["Sections"],"summary":"History sections","operationId":"get_history_api_v1_storefront_sections_abc0f2","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}},"/api/v1/storefront/sections/{id}/restore":{"patch":{"tags":["Sections"],"summary":"Restore sections","operationId":"patch_restore_api_v1_storefront_section_56d41a","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/sections/{id}/duplicate":{"post":{"tags":["Sections"],"summary":"Duplicate sections","operationId":"post_duplicate_api_v1_storefront_section_065835","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"409":{"$ref":"#/components/responses/Conflict"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/sections/{id}/move_higher":{"patch":{"tags":["Sections"],"summary":"Move higher sections","operationId":"patch_move_higher_api_v1_storefront_section_74714c","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/sections/{id}/move_lower":{"patch":{"tags":["Sections"],"summary":"Move lower sections","operationId":"patch_move_lower_api_v1_storefront_section_13cf0b","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/sections":{"get":{"tags":["Sections"],"summary":"Index sections","operationId":"get_api_v1_storefront_sections_37c043","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."},"post":{"tags":["Sections"],"summary":"Create sections","operationId":"post_sections_ad3e27","parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/sections/{id}":{"get":{"tags":["Sections"],"summary":"Show sections","operationId":"get_api_v1_storefront_section_4046a0","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."},"patch":{"tags":["Sections"],"summary":"Update sections","operationId":"patch_sections_fabb9c","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."},"put":{"tags":["Sections"],"summary":"Update sections","operationId":"put_sections_27ee09","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."},"delete":{"tags":["Sections"],"summary":"Destroy sections","operationId":"delete_sections_092c90","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/publish/go":{"post":{"tags":["Publishes"],"summary":"Publish publishes","operationId":"post_go_api_v1_storefront_publish_736c9b","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/publish/take_down":{"post":{"tags":["Publishes"],"summary":"Unpublish publishes","operationId":"post_take_down_api_v1_storefront_publish_b8a183","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/publish/rollback":{"post":{"tags":["Publishes"],"summary":"Rollback publishes","operationId":"post_rollback_api_v1_storefront_publish_d972e2","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/publish/history":{"get":{"tags":["Publishes"],"summary":"History publishes","operationId":"get_history_api_v1_storefront_publish_29a056","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}},"/api/v1/storefront/preview/url":{"get":{"tags":["Previews"],"summary":"Url previews","operationId":"get_url_api_v1_storefront_preview_57bf7d","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}},"/api/v1/storefront/preview/refresh":{"post":{"tags":["Previews"],"summary":"Refresh previews","operationId":"post_refresh_api_v1_storefront_preview_bcdaab","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/preview/status":{"get":{"tags":["Previews"],"summary":"Status previews","operationId":"get_status_api_v1_storefront_preview_d46002","parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}},"/api/v1/storefront/snapshots/{id}/restore":{"post":{"tags":["Snapshots"],"summary":"Restore snapshots","operationId":"post_restore_api_v1_storefront_snapshot_3eb603","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object"}}}},"security":[{"bearerAuth":[]}],"description":"Required scope: `write_storefront`."}},"/api/v1/storefront/snapshots":{"get":{"tags":["Snapshots"],"summary":"Index snapshots","operationId":"get_api_v1_storefront_snapshots_3c9649","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100},"description":"Maximum snapshots returned. Values above 250 are clamped; absent or non-positive values use 100."},{"name":"page_id","in":"query","required":false,"schema":{"type":"string"},"description":"Filter by a page ID or slug."}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}},"/api/v1/storefront/snapshots/{id}":{"get":{"tags":["Snapshots"],"summary":"Show snapshots","operationId":"get_api_v1_storefront_snapshot_7bb838","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Crate-Api-Call-Limit":{"description":"Advisory requests used / per-minute limit.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Advisory per-minute request limit.","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Advisory requests remaining; other limits may apply.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"bearerAuth":[]}],"description":"Required scope: `read_storefront`."}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal Access Token (crate_pat_…) or OAuth2 access token (crate_oat_…)."},"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"/api/oauth/authorize","tokenUrl":"/api/oauth/token","scopes":{"read_products":"Read products","write_products":"Write products","read_inventory":"Read inventory","write_inventory":"Write inventory","read_orders":"Read orders","write_orders":"Write orders","read_customers":"Read customers","write_customers":"Write customers","read_discounts":"Read discounts","write_discounts":"Write discounts","read_marketing":"Read marketing","write_marketing":"Write marketing","read_analytics":"Read analytics","write_analytics":"Write analytics","read_finance":"Read finance","write_finance":"Write finance","read_storefront":"Read storefront","write_storefront":"Write storefront","read_subscriptions":"Read subscriptions","write_subscriptions":"Write subscriptions","read_bookings":"Read bookings","write_bookings":"Write bookings","read_apps":"Read apps","write_apps":"Write apps","read_licenses":"Read licenses","write_licenses":"Write licenses","licenses:activate":"Licenses:activate","webhooks:manage":"Webhooks:manage"}}}}},"parameters":{"limit":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50},"description":"Maximum results per page. Values above 250 are clamped; absent or non-positive values use 50."},"page_info":{"name":"page_info","in":"query","required":false,"schema":{"type":"string"},"description":"String cursor from the Link header. Non-string values return 400; invalid strings start at the first page."}},"responses":{"BadRequest":{"description":"Missing or invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"The requested operation conflicts with the current resource state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Token is missing the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"AnalyticsTimeout":{"description":"Analytics query timed out; narrow the query or retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}}},"TooManyRequests":{"description":"Request limit exceeded before controller execution","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string","pattern":"^[0-9]+$"}}},"content":{"text/plain":{"schema":{"type":"string"}}}},"LicenseRateLimited":{"description":"Middleware request limit or per-license-key limit exceeded","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string","pattern":"^[0-9]+$"}}},"content":{"text/plain":{"schema":{"type":"string"}},"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"errors":{"oneOf":[{"type":"string"},{"type":"object"},{"type":"array","items":{"type":"string"}}]}}}}}}