{"openapi":"3.0.3","info":{"title":"West End Systems API","version":"0.0.0"},"components":{"schemas":{}},"paths":{"/health":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"db":{"type":"boolean"},"ip":{"type":"string"}},"required":["ok","db","ip"],"additionalProperties":false}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"db":{"type":"boolean"},"ip":{"type":"string"}},"required":["ok","db","ip"],"additionalProperties":false}}}}}}},"/auth/login":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254},"password":{"type":"string","minLength":1,"maxLength":200},"tenantSlug":{"type":"string","maxLength":100}},"required":["email","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"},"tenant":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}},"required":["accessToken","refreshToken","expiresIn","sessionExpiresAt","tenant"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},"tenants":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}}},"required":["error","tenants"],"additionalProperties":false}}}}}}},"/auth/refresh":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string","minLength":1,"maxLength":200}},"required":["refreshToken"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"}},"required":["accessToken","refreshToken","expiresIn","sessionExpiresAt"],"additionalProperties":false}}}}}}},"/auth/logout":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/auth/tenants":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/auth/switch-tenant":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenantSlug":{"type":"string","minLength":1,"maxLength":100}},"required":["tenantSlug"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"},"tenant":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}},"required":["accessToken","refreshToken","expiresIn","sessionExpiresAt","tenant"],"additionalProperties":false}}}}}}},"/auth/web/login":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254},"password":{"type":"string","minLength":1,"maxLength":200},"tenantSlug":{"type":"string","maxLength":100}},"required":["email","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"},"tenant":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}},"required":["accessToken","expiresIn","sessionExpiresAt","tenant"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},"tenants":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}}},"required":["error","tenants"],"additionalProperties":false}}}}}}},"/auth/web/refresh":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"}},"required":["accessToken","expiresIn","sessionExpiresAt"],"additionalProperties":false}}}}}}},"/auth/web/support":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"}},"required":["accessToken","expiresIn","sessionExpiresAt"],"additionalProperties":false}}}}}}},"/auth/web/logout":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/auth/web/switch-tenant":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenantSlug":{"type":"string","minLength":1,"maxLength":100}},"required":["tenantSlug"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"},"tenant":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["slug","name","role"],"additionalProperties":false}},"required":["accessToken","expiresIn","sessionExpiresAt","tenant"],"additionalProperties":false}}}}}}},"/auth/setup-password/check":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"displayName":{"type":"string"},"businessName":{"type":"string"}},"required":["email","displayName","businessName"],"additionalProperties":false}}}}}}},"/auth/setup-password":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"password":{"type":"string","maxLength":200}},"required":["token","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"],"additionalProperties":false}}}}}}},"/auth/client-config":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"string"},"sentryDsn":{"nullable":true,"type":"string"},"supportContact":{"type":"string"},"emailEnabled":{"type":"boolean"},"signupEnabled":{"type":"boolean"},"termsUrl":{"nullable":true,"type":"string"},"privacyUrl":{"nullable":true,"type":"string"}},"required":["environment","sentryDsn","supportContact","emailEnabled","signupEnabled","termsUrl","privacyUrl"],"additionalProperties":false}}}}}}},"/auth/forgot-password":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"email":{"type":"boolean"}},"required":["ok","email"],"additionalProperties":false}}}}}}},"/auth/reset-password/check":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"displayName":{"type":"string"}},"required":["email","displayName"],"additionalProperties":false}}}}}}},"/auth/reset-password":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"password":{"type":"string","maxLength":200}},"required":["token","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"],"additionalProperties":false}}}}}}},"/auth/register/pair":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":8,"maxLength":20},"label":{"type":"string","maxLength":80}},"required":["code"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"deviceSecret":{"type":"string"},"deviceNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tenant":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"register":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"location":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"},"taxJurisdiction":{"type":"string"}},"required":["id","name","code","taxJurisdiction"],"additionalProperties":false}},"required":["deviceId","deviceSecret","deviceNumber","tenant","register","location"],"additionalProperties":false}}}}}}},"/auth/register/staff":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","minLength":1,"maxLength":64},"deviceSecret":{"type":"string","minLength":1,"maxLength":200}},"required":["deviceId","deviceSecret"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"pinSetAt":{"nullable":true,"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}},"required":["membershipId","displayName","pinSetAt","permissions"],"additionalProperties":false}},"deviceNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxJurisdiction":{"type":"string"}},"required":["data","deviceNumber","taxJurisdiction"],"additionalProperties":false}}}}}}},"/auth/register/pin-login":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","minLength":1,"maxLength":64},"deviceSecret":{"type":"string","minLength":1,"maxLength":200},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pin":{"type":"string","minLength":1,"maxLength":12}},"required":["deviceId","deviceSecret","membershipId","pin"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresIn":{"type":"number"},"sessionExpiresAt":{"type":"string"},"displayName":{"type":"string"},"staffStamp":{"type":"string"}},"required":["accessToken","refreshToken","expiresIn","sessionExpiresAt","displayName","staffStamp"],"additionalProperties":false}}}}}}},"/auth/register/approve":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","minLength":1,"maxLength":64},"deviceSecret":{"type":"string","minLength":1,"maxLength":200},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pin":{"type":"string","minLength":1,"maxLength":12},"approval":{"type":"string","enum":["sale.discount.over_limit","refund.create","sale.void","sale.return_no_receipt","sale.memo","sale.buy","sale.house_account"]}},"required":["deviceId","deviceSecret","membershipId","pin","approval"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"}},"required":["membershipId","displayName"],"additionalProperties":false}}}}}}},"/public/o/{token}":{"get":{"parameters":[{"schema":{"type":"string","maxLength":200},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/public/c/{token}":{"get":{"parameters":[{"schema":{"type":"string","maxLength":600},"in":"query","name":"u","required":true},{"schema":{"type":"string","maxLength":200},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/public/unsubscribe":{"get":{"parameters":[{"schema":{"type":"string","maxLength":400},"in":"query","name":"t","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"parameters":[{"schema":{"type":"string","maxLength":400},"in":"query","name":"t","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/public/pay/{token}":{"get":{"parameters":[{"schema":{"type":"string","maxLength":200},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"parameters":[{"schema":{"type":"string","maxLength":200},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/public/pay/{token}/done":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"p","required":true},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":99},"in":"query","name":"n","required":false},{"schema":{"type":"string","maxLength":200},"in":"path","name":"token","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"displayName":{"type":"string"}},"required":["id","email","displayName"],"additionalProperties":false},"tenant":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"allLocations":{"type":"boolean"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"billing":{"type":"object","properties":{"state":{"type":"string","enum":["none","ok","free","trial","trial_ending","problem","locked","suspended","closed"]},"readOnly":{"type":"boolean"},"until":{"nullable":true,"type":"string"},"daysLeft":{"nullable":true,"type":"number"}},"required":["state","readOnly","until","daysLeft"],"additionalProperties":false},"support":{"nullable":true,"type":"object","properties":{"adminName":{"type":"string"},"until":{"type":"string"}},"required":["adminName","until"],"additionalProperties":false},"termsToAccept":{"nullable":true,"type":"string"}},"required":["user","tenant","role","permissions","allLocations","locationIds","billing","support","termsToAccept"],"additionalProperties":false}}}}}}},"/v1/locations":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"},"timezone":{"type":"string"},"taxJurisdiction":{"type":"string"}},"required":["id","name","code","timezone","taxJurisdiction"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"code":{"type":"string","pattern":"^[A-Z0-9]{1,6}$"},"timezone":{"default":"America/New_York","type":"string"},"taxJurisdiction":{"type":"string","pattern":"^[A-Z]{2}(-[A-Z0-9]+)+$"}},"required":["name","code","taxJurisdiction"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"},"timezone":{"type":"string"},"taxJurisdiction":{"type":"string"}},"required":["id","name","code","timezone","taxJurisdiction"],"additionalProperties":false}}}}}}},"/v1/registers":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptPaper":{"type":"string","enum":["roll","letter"]},"pairedDevices":{"type":"number"},"devices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"nullable":true,"type":"string"},"pairedAt":{"type":"string"},"lastSeenAt":{"nullable":true,"type":"string"},"outbox":{"nullable":true,"type":"object","properties":{"waiting":{"type":"number"},"oldestAt":{"nullable":true,"type":"string"},"reportedAt":{"type":"string"}},"required":["waiting","oldestAt","reportedAt"],"additionalProperties":false}},"required":["id","label","pairedAt","lastSeenAt","outbox"],"additionalProperties":false}},"cardTerminal":{"type":"string","enum":["none","pairing","paired"]}},"required":["id","name","code","locationId","receiptPaper","pairedDevices","devices","cardTerminal"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":60},"code":{"type":"string","pattern":"^[A-Z0-9]{1,4}$"}},"required":["locationId","name","code"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptPaper":{"type":"string","enum":["roll","letter"]},"pairedDevices":{"type":"number"},"devices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"nullable":true,"type":"string"},"pairedAt":{"type":"string"},"lastSeenAt":{"nullable":true,"type":"string"},"outbox":{"nullable":true,"type":"object","properties":{"waiting":{"type":"number"},"oldestAt":{"nullable":true,"type":"string"},"reportedAt":{"type":"string"}},"required":["waiting","oldestAt","reportedAt"],"additionalProperties":false}},"required":["id","label","pairedAt","lastSeenAt","outbox"],"additionalProperties":false}},"cardTerminal":{"type":"string","enum":["none","pairing","paired"]}},"required":["id","name","code","locationId","receiptPaper","pairedDevices","devices","cardTerminal"],"additionalProperties":false}}}}}}},"/v1/registers/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptPaper":{"type":"string","enum":["roll","letter"]}},"required":["receiptPaper"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptPaper":{"type":"string","enum":["roll","letter"]}},"required":["id","receiptPaper"],"additionalProperties":false}}}}}}},"/v1/registers/{id}/pairing-code":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"expiresAt":{"type":"string"},"register":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"}},"required":["name","code"],"additionalProperties":false}},"required":["code","expiresAt","register"],"additionalProperties":false}}}}}}},"/v1/register-devices/{id}":{"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/contact":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"nullable":true,"type":"string","maxLength":40},"scheduleTexts":{"type":"boolean"}},"required":["phone","scheduleTexts"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"nullable":true,"type":"string"},"scheduleTexts":{"type":"boolean"}},"required":["phone","scheduleTexts"],"additionalProperties":false}}}}}},"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"nullable":true,"type":"string"},"scheduleTexts":{"type":"boolean"}},"required":["phone","scheduleTexts"],"additionalProperties":false}}}}}}},"/v1/me/pin":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pin":{"type":"string"}},"required":["pin"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/password":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currentPassword":{"type":"string","minLength":1,"maxLength":200},"newPassword":{"type":"string","maxLength":200}},"required":["currentPassword","newPassword"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/today":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"},"sales":{"nullable":true,"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returnCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returnsCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStore":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","count","totalCents"],"additionalProperties":false}}},"required":["count","totalCents","returnCount","returnsCents","byStore"],"additionalProperties":false},"repairs":{"nullable":true,"type":"object","properties":{"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"readyLong":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dueToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"overdue":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ready","readyLong","dueToday","overdue"],"additionalProperties":false},"layaways":{"nullable":true,"type":"object","properties":{"overdue":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dueThisWeek":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["overdue","dueThisWeek"],"additionalProperties":false},"memos":{"nullable":true,"type":"object","properties":{"overdue":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["overdue","open"],"additionalProperties":false},"reviews":{"nullable":true,"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false},"lowStock":{"nullable":true,"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false},"dates":{"nullable":true,"type":"object","properties":{"birthdays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"anniversaries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["birthdays","anniversaries"],"additionalProperties":false},"registers":{"nullable":true,"type":"object","properties":{"stuck":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["stuck"],"additionalProperties":false}},"required":["date","sales","repairs","layaways","memos","reviews","lowStock","dates","registers"],"additionalProperties":false}}}}}}},"/v1/activity":{"get":{"parameters":[{"schema":{"type":"string","maxLength":40,"pattern":"^[a-z_]+$"},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"userId","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string"},"action":{"type":"string"},"entityType":{"type":"string"},"entityId":{"nullable":true,"type":"string"},"by":{"nullable":true,"type":"string"},"byUserId":{"nullable":true,"type":"string"},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"nullable":true}}},"required":["id","at","action","entityType","entityId","by","byUserId","details"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["data","nextCursor","people"],"additionalProperties":false}}}}}}},"/v1/roles":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"assignable":{"type":"boolean"},"isSystem":{"type":"boolean"},"edited":{"type":"boolean"},"editable":{"type":"boolean"},"people":{"type":"number"}},"required":["id","key","name","permissions","assignable","isSystem","edited","editable","people"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"permissions":{"maxItems":200,"type":"array","items":{"type":"string"}}},"required":["name","permissions"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"assignable":{"type":"boolean"},"isSystem":{"type":"boolean"},"edited":{"type":"boolean"},"editable":{"type":"boolean"},"people":{"type":"number"}},"required":["id","key","name","permissions","assignable","isSystem","edited","editable","people"],"additionalProperties":false}}}}}}},"/v1/roles/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"permissions":{"maxItems":200,"type":"array","items":{"type":"string"}},"reset":{"type":"boolean","enum":[true]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"assignable":{"type":"boolean"},"isSystem":{"type":"boolean"},"edited":{"type":"boolean"},"editable":{"type":"boolean"},"people":{"type":"number"}},"required":["id","key","name","permissions","assignable","isSystem","edited","editable","people"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/staff":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"type":"string"},"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"}},"required":["id","key","name"],"additionalProperties":false},"allLocations":{"type":"boolean"},"locationIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pin":{"type":"object","properties":{"set":{"type":"boolean"},"setAt":{"nullable":true,"type":"string"},"lockedUntil":{"nullable":true,"type":"string"}},"required":["set","setAt","lockedUntil"],"additionalProperties":false},"login":{"type":"object","properties":{"hasPassword":{"type":"boolean"},"linkExpiresAt":{"nullable":true,"type":"string"}},"required":["hasPassword","linkExpiresAt"],"additionalProperties":false},"isYou":{"type":"boolean"},"canManage":{"type":"boolean"},"phone":{"nullable":true,"type":"string"},"scheduleTexts":{"type":"boolean"}},"required":["membershipId","userId","displayName","email","role","allLocations","locationIds","pin","login","isYou","canManage","phone","scheduleTexts"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":80},"email":{"type":"string","maxLength":254,"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"roleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"allLocations":{"type":"boolean"},"locationIds":{"default":[],"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pin":{"type":"string","maxLength":12}},"required":["displayName","email","roleId","allLocations"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"setupLink":{"nullable":true,"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string"}},"required":["token","expiresAt"],"additionalProperties":false},"emailed":{"type":"boolean"}},"required":["membershipId","setupLink","emailed"],"additionalProperties":false}}}}}}},"/v1/staff/{membershipId}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"allLocations":{"type":"boolean"},"locationIds":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"phone":{"nullable":true,"type":"string","maxLength":40},"scheduleTexts":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"membershipId","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"membershipId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/staff/{membershipId}/pin":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pin":{"type":"string","maxLength":12}},"required":["pin"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"membershipId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/staff/{membershipId}/unlock-pin":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"membershipId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/staff/{membershipId}/setup-link":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"membershipId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string"},"emailed":{"type":"boolean"}},"required":["token","expiresAt","emailed"],"additionalProperties":false}}}}}}},"/v1/inventory/categories":{"get":{"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"all","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string","enum":["standard","bullion"]},"sortOrder":{"type":"number"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","taxClass","sortOrder","archived","itemCount"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"taxClass":{"default":"standard","type":"string","enum":["standard","bullion"]}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string","enum":["standard","bullion"]},"sortOrder":{"type":"number"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","taxClass","sortOrder","archived","itemCount"],"additionalProperties":false}}}}}}},"/v1/inventory/categories/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"taxClass":{"type":"string","enum":["standard","bullion"]},"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string","enum":["standard","bullion"]},"sortOrder":{"type":"number"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","taxClass","sortOrder","archived","itemCount"],"additionalProperties":false}}}}}}},"/v1/inventory/categories/order":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["ids"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string","enum":["standard","bullion"]},"sortOrder":{"type":"number"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","taxClass","sortOrder","archived","itemCount"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/inventory/vendors":{"get":{"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"all","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contactName":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"repairs":{"type":"boolean"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","contactName","phone","email","notes","repairs","archived","itemCount"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"contactName":{"nullable":true,"type":"string","maxLength":120},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254},"notes":{"nullable":true,"type":"string","maxLength":2000},"repairs":{"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contactName":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"repairs":{"type":"boolean"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","contactName","phone","email","notes","repairs","archived","itemCount"],"additionalProperties":false}}}}}}},"/v1/inventory/vendors/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"contactName":{"nullable":true,"type":"string","maxLength":120},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254},"notes":{"nullable":true,"type":"string","maxLength":2000},"repairs":{"type":"boolean"},"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contactName":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"repairs":{"type":"boolean"},"archived":{"type":"boolean"},"itemCount":{"type":"number"}},"required":["id","name","contactName","phone","email","notes","repairs","archived","itemCount"],"additionalProperties":false}}}}}}},"/v1/inventory/items":{"get":{"parameters":[{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"default":"piece","type":"string","enum":["piece","stock"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"categoryId","required":false},{"schema":{"default":"active","type":"string","enum":["active","in_stock","on_hold","sold","removed","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"lowStock","required":false},{"schema":{"type":"string","enum":["owned","memo","consignment","not_owned"]},"in":"query","name":"ownership","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"memoOut","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"semiMount","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","tag","name","price_high","price_low"]},"in":"query","name":"sort","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":400},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":7400},"in":"query","name":"ids","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"summary":{"type":"object","properties":{"count":{"type":"number"},"units":{"type":"number"},"retailCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"}},"required":["count","units","retailCents","costCents"],"additionalProperties":false},"canSeeCost":{"type":"boolean"}},"required":["data","nextCursor","summary","canSeeCost"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"nullable":true,"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"categoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorStyle":{"nullable":true,"type":"string","maxLength":60},"metal":{"nullable":true,"type":"string","enum":["yellow_gold","white_gold","rose_gold","two_tone","platinum","silver","palladium","titanium","tungsten","stainless","other"]},"purity":{"nullable":true,"type":"string","maxLength":12},"metalWeightG":{"nullable":true,"type":"number","minimum":0,"maximum":99999},"size":{"nullable":true,"type":"string","maxLength":20},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string","maxLength":60},"description":{"nullable":true,"type":"string","maxLength":2000},"internalNotes":{"nullable":true,"type":"string","maxLength":2000},"priceCents":{"type":"integer","minimum":0,"maximum":10000000000},"costCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"reorderPoint":{"nullable":true,"type":"integer","minimum":0,"maximum":100000},"stones":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone"]}},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payoutBps":{"nullable":true,"type":"integer","minimum":0,"maximum":10000},"payoutCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"returnBy":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"kind":{"default":"piece","type":"string","enum":["piece","stock"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantities":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":0,"maximum":1000000}},"required":["locationId","quantity"]}}},"required":["title","categoryId","priceCents"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}}}}}},"/v1/inventory/export.csv":{"get":{"parameters":[{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"default":"piece","type":"string","enum":["piece","stock"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"categoryId","required":false},{"schema":{"default":"active","type":"string","enum":["active","in_stock","on_hold","sold","removed","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"lowStock","required":false},{"schema":{"type":"string","enum":["owned","memo","consignment","not_owned"]},"in":"query","name":"ownership","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"memoOut","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"semiMount","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","tag","name","price_high","price_low"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","maxLength":7400},"in":"query","name":"ids","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/inventory/items/by-style":{"get":{"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":60},"in":"query","name":"style","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"vendorId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"item":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}},"required":["item"],"additionalProperties":false}}}}}}},"/v1/inventory/items/batch":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"object","properties":{"tag":{"nullable":true,"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"categoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorStyle":{"nullable":true,"type":"string","maxLength":60},"metal":{"nullable":true,"type":"string","enum":["yellow_gold","white_gold","rose_gold","two_tone","platinum","silver","palladium","titanium","tungsten","stainless","other"]},"purity":{"nullable":true,"type":"string","maxLength":12},"metalWeightG":{"nullable":true,"type":"number","minimum":0,"maximum":99999},"size":{"nullable":true,"type":"string","maxLength":20},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string","maxLength":60},"description":{"nullable":true,"type":"string","maxLength":2000},"internalNotes":{"nullable":true,"type":"string","maxLength":2000},"priceCents":{"type":"integer","minimum":0,"maximum":10000000000},"costCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"reorderPoint":{"nullable":true,"type":"integer","minimum":0,"maximum":100000},"stones":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone"]}},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payoutBps":{"nullable":true,"type":"integer","minimum":0,"maximum":10000},"payoutCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"returnBy":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"kind":{"default":"piece","type":"string","enum":["piece","stock"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantities":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":0,"maximum":1000000}},"required":["locationId","quantity"]}}},"required":["title","categoryId","priceCents"]},"copies":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"tag":{"nullable":true,"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9-]+$"},"size":{"nullable":true,"type":"string","maxLength":20},"metalWeightG":{"nullable":true,"type":"number","minimum":0,"maximum":99999},"certNumber":{"nullable":true,"type":"string","maxLength":40}}}}},"required":["item","copies"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"},"history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"},"data":{"nullable":true,"type":"object","additionalProperties":{}},"at":{"type":"string"},"by":{"nullable":true,"type":"string"}},"required":["id","type","data","at","by"],"additionalProperties":false}},"canSeeCost":{"type":"boolean"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt","history","canSeeCost"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"nullable":true,"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"categoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorStyle":{"nullable":true,"type":"string","maxLength":60},"metal":{"nullable":true,"type":"string","enum":["yellow_gold","white_gold","rose_gold","two_tone","platinum","silver","palladium","titanium","tungsten","stainless","other"]},"purity":{"nullable":true,"type":"string","maxLength":12},"metalWeightG":{"nullable":true,"type":"number","minimum":0,"maximum":99999},"size":{"nullable":true,"type":"string","maxLength":20},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string","maxLength":60},"description":{"nullable":true,"type":"string","maxLength":2000},"internalNotes":{"nullable":true,"type":"string","maxLength":2000},"priceCents":{"type":"integer","minimum":0,"maximum":10000000000},"costCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"reorderPoint":{"nullable":true,"type":"integer","minimum":0,"maximum":100000},"stones":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone"]}},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payoutBps":{"nullable":true,"type":"integer","minimum":0,"maximum":10000},"payoutCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"returnBy":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}}}}}},"/v1/inventory/items/bulk":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"change":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["price"]},"percent":{"type":"number","minimum":-90,"maximum":500},"priceCents":{"type":"integer","minimum":0,"maximum":100000000},"roundToCents":{"type":"integer","minimum":1,"maximum":100000},"endIn99":{"type":"boolean"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["category"]},"categoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","categoryId"]},{"type":"object","properties":{"kind":{"type":"string","enum":["store"]},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","locationId"]}]}},"required":["ids","change"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"number"},"skipped":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"tag":{"type":"string"},"why":{"type":"string"}},"required":["id","tag","why"],"additionalProperties":false}}},"required":["changed","skipped"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/transfer":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fromLocationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"note":{"nullable":true,"type":"string","maxLength":500}},"required":["locationId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/adjust":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-1000000,"maximum":1000000},"setTo":{"type":"integer","minimum":0,"maximum":1000000},"reason":{"type":"string","enum":["received","count","damaged","used","other"]},"note":{"nullable":true,"type":"string","maxLength":500}},"required":["locationId","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/remove":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["damaged","returned_to_vendor","lost","stolen","used_in_repair","discontinued","other"]},"note":{"nullable":true,"type":"string","maxLength":500}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/restock":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"kind":{"type":"string","enum":["piece","stock"]},"title":{"type":"string"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"taxClass":{"type":"string"}},"required":["id","name","taxClass"],"additionalProperties":false},"vendor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"vendorStyle":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"}},"required":["id","name","code"],"additionalProperties":false},"status":{"type":"string"},"metal":{"nullable":true,"type":"string"},"purity":{"nullable":true,"type":"string"},"metalWeightG":{"nullable":true,"type":"number"},"size":{"nullable":true,"type":"string"},"semiMount":{"type":"boolean"},"takesCenter":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"internalNotes":{"nullable":true,"type":"string"},"priceCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"receivedAt":{"type":"string"},"soldAt":{"nullable":true,"type":"string"},"removedReason":{"nullable":true,"type":"string"},"stones":{"type":"array","items":{"type":"object","properties":{"role":{"nullable":true,"type":"string","enum":["center","side","accent"]},"stone":{"type":"string","minLength":1,"maxLength":40},"origin":{"nullable":true,"type":"string","enum":["natural","lab"]},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":9999},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":20},"certLab":{"nullable":true,"type":"string","maxLength":20},"certNumber":{"nullable":true,"type":"string","maxLength":40}},"required":["stone","count"],"additionalProperties":false}},"photos":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}},"stock":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["locationId","locationName","quantity"],"additionalProperties":false}},"reorderPoint":{"nullable":true,"type":"number"},"ownership":{"type":"string","enum":["owned","memo","consignment"]},"consignor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"payoutBps":{"nullable":true,"type":"number"},"payoutCents":{"nullable":true,"type":"number"},"returnBy":{"nullable":true,"type":"string"},"memoOut":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},"version":{"type":"number"},"updatedAt":{"type":"string"}},"required":["id","tag","kind","title","category","vendor","vendorStyle","location","status","metal","purity","metalWeightG","size","semiMount","takesCenter","description","internalNotes","priceCents","costCents","receivedAt","soldAt","removedReason","stones","photos","stock","reorderPoint","ownership","consignor","payoutBps","payoutCents","returnBy","memoOut","version","updatedAt"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/photos":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/photos/{photoId}":{"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"photoId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/inventory/items/{id}/photos/order":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["ids"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"thumb":{"type":"string"},"large":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","thumb","large","width","height"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/settings":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discountLimitBps":{"type":"integer","minimum":0,"maximum":10000},"receiptHeader":{"type":"string","maxLength":300},"receiptFooter":{"type":"string","maxLength":500},"receiptLogo":{"type":"boolean"},"cardProcessor":{"type":"string","enum":["external","square","stripe","simulator"]},"houseDefaultLimitCents":{"type":"integer","minimum":0,"maximum":100000000},"houseOnlinePay":{"type":"boolean"},"layawayMinDepositBps":{"type":"integer","minimum":0,"maximum":10000},"layawayTermDays":{"type":"integer","minimum":1,"maximum":730},"layawayCancelFeeBps":{"type":"integer","minimum":0,"maximum":10000},"layawayTerms":{"type":"string","maxLength":600},"repairMenu":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":80},"priceCents":{"type":"integer","minimum":0,"maximum":10000000}},"required":["id","name","priceCents"],"additionalProperties":false}},"repairTermDays":{"type":"integer","minimum":1,"maximum":365},"repairTerms":{"type":"string","maxLength":600},"orderDepositBps":{"type":"integer","minimum":0,"maximum":10000},"orderTerms":{"type":"string","maxLength":600},"memoTermDays":{"type":"integer","minimum":1,"maximum":90},"memoTerms":{"type":"string","maxLength":600},"buyPayoutBps":{"type":"object","properties":{"gold":{"type":"integer","minimum":0,"maximum":10000},"silver":{"type":"integer","minimum":0,"maximum":10000},"platinum":{"type":"integer","minimum":0,"maximum":10000},"palladium":{"type":"integer","minimum":0,"maximum":10000}},"required":["gold","silver","platinum","palladium"],"additionalProperties":false},"buyHoldDays":{"type":"integer","minimum":0,"maximum":90},"buyTerms":{"type":"string","maxLength":600},"readyEmail":{"type":"boolean"},"readyText":{"type":"boolean"},"appraiserName":{"type":"string","maxLength":80},"appraiserCredentials":{"type":"string","maxLength":120},"appraisalTerms":{"type":"string","maxLength":1500},"lockAfterMinutes":{"type":"integer","minimum":0,"maximum":30},"weekStartsOn":{"type":"integer","minimum":0,"maximum":6},"rewardsEnabled":{"type":"boolean"},"rewardEveryCents":{"type":"integer","minimum":1000,"maximum":100000000},"rewardCents":{"type":"integer","minimum":100,"maximum":10000000},"rewardsSince":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","enum":[""]}]},"pointsEnabled":{"type":"boolean"},"pointsPerDollar":{"type":"integer","minimum":1,"maximum":100},"pointsSince":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","enum":[""]}]},"pointsExpireMonths":{"type":"integer","minimum":0,"maximum":60},"pointsRewards":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"points":{"type":"integer","minimum":1,"maximum":10000000},"percentBps":{"type":"integer","minimum":1,"maximum":10000},"capCents":{"nullable":true,"type":"integer","minimum":1,"maximum":100000000}},"required":["id","points","percentBps","capCents"],"additionalProperties":false}},"attributionDays":{"type":"integer","minimum":1,"maximum":60},"reviewUrl":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"string","enum":[""]}]},"emailLogo":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"],"additionalProperties":false},"emailAccent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["discountLimitBps","receiptHeader","receiptFooter","receiptLogo","cardProcessor","houseDefaultLimitCents","houseOnlinePay","layawayMinDepositBps","layawayTermDays","layawayCancelFeeBps","layawayTerms","repairMenu","repairTermDays","repairTerms","orderDepositBps","orderTerms","memoTermDays","memoTerms","buyPayoutBps","buyHoldDays","buyTerms","readyEmail","readyText","appraiserName","appraiserCredentials","appraisalTerms","lockAfterMinutes","weekStartsOn","rewardsEnabled","rewardEveryCents","rewardCents","rewardsSince","pointsEnabled","pointsPerDollar","pointsSince","pointsExpireMonths","pointsRewards","attributionDays","reviewUrl","emailLogo","emailAccent"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"discountLimitBps":{"type":"integer","minimum":0,"maximum":10000},"receiptHeader":{"type":"string","maxLength":300},"receiptFooter":{"type":"string","maxLength":500},"receiptLogo":{"type":"boolean"},"cardProcessor":{"type":"string","enum":["external","square","stripe","simulator"]},"houseDefaultLimitCents":{"type":"integer","minimum":0,"maximum":100000000},"houseOnlinePay":{"type":"boolean"},"layawayMinDepositBps":{"type":"integer","minimum":0,"maximum":10000},"layawayTermDays":{"type":"integer","minimum":1,"maximum":730},"layawayCancelFeeBps":{"type":"integer","minimum":0,"maximum":10000},"layawayTerms":{"type":"string","maxLength":600},"repairMenu":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":80},"priceCents":{"type":"integer","minimum":0,"maximum":10000000}},"required":["id","name","priceCents"]}},"repairTermDays":{"type":"integer","minimum":1,"maximum":365},"repairTerms":{"type":"string","maxLength":600},"orderDepositBps":{"type":"integer","minimum":0,"maximum":10000},"orderTerms":{"type":"string","maxLength":600},"memoTermDays":{"type":"integer","minimum":1,"maximum":90},"memoTerms":{"type":"string","maxLength":600},"buyPayoutBps":{"type":"object","properties":{"gold":{"type":"integer","minimum":0,"maximum":10000},"silver":{"type":"integer","minimum":0,"maximum":10000},"platinum":{"type":"integer","minimum":0,"maximum":10000},"palladium":{"type":"integer","minimum":0,"maximum":10000}},"required":["gold","silver","platinum","palladium"]},"buyHoldDays":{"type":"integer","minimum":0,"maximum":90},"buyTerms":{"type":"string","maxLength":600},"readyEmail":{"type":"boolean"},"readyText":{"type":"boolean"},"appraiserName":{"type":"string","maxLength":80},"appraiserCredentials":{"type":"string","maxLength":120},"appraisalTerms":{"type":"string","maxLength":1500},"lockAfterMinutes":{"type":"integer","minimum":0,"maximum":30},"weekStartsOn":{"type":"integer","minimum":0,"maximum":6},"rewardsEnabled":{"type":"boolean"},"rewardEveryCents":{"type":"integer","minimum":1000,"maximum":100000000},"rewardCents":{"type":"integer","minimum":100,"maximum":10000000},"rewardsSince":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","enum":[""]}]},"pointsEnabled":{"type":"boolean"},"pointsPerDollar":{"type":"integer","minimum":1,"maximum":100},"pointsSince":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","enum":[""]}]},"pointsExpireMonths":{"type":"integer","minimum":0,"maximum":60},"pointsRewards":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"points":{"type":"integer","minimum":1,"maximum":10000000},"percentBps":{"type":"integer","minimum":1,"maximum":10000},"capCents":{"nullable":true,"type":"integer","minimum":1,"maximum":100000000}},"required":["id","points","percentBps","capCents"]}},"attributionDays":{"type":"integer","minimum":1,"maximum":60},"reviewUrl":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"string","enum":[""]}]},"emailLogo":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"]},"emailAccent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discountLimitBps":{"type":"integer","minimum":0,"maximum":10000},"receiptHeader":{"type":"string","maxLength":300},"receiptFooter":{"type":"string","maxLength":500},"receiptLogo":{"type":"boolean"},"cardProcessor":{"type":"string","enum":["external","square","stripe","simulator"]},"houseDefaultLimitCents":{"type":"integer","minimum":0,"maximum":100000000},"houseOnlinePay":{"type":"boolean"},"layawayMinDepositBps":{"type":"integer","minimum":0,"maximum":10000},"layawayTermDays":{"type":"integer","minimum":1,"maximum":730},"layawayCancelFeeBps":{"type":"integer","minimum":0,"maximum":10000},"layawayTerms":{"type":"string","maxLength":600},"repairMenu":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":80},"priceCents":{"type":"integer","minimum":0,"maximum":10000000}},"required":["id","name","priceCents"],"additionalProperties":false}},"repairTermDays":{"type":"integer","minimum":1,"maximum":365},"repairTerms":{"type":"string","maxLength":600},"orderDepositBps":{"type":"integer","minimum":0,"maximum":10000},"orderTerms":{"type":"string","maxLength":600},"memoTermDays":{"type":"integer","minimum":1,"maximum":90},"memoTerms":{"type":"string","maxLength":600},"buyPayoutBps":{"type":"object","properties":{"gold":{"type":"integer","minimum":0,"maximum":10000},"silver":{"type":"integer","minimum":0,"maximum":10000},"platinum":{"type":"integer","minimum":0,"maximum":10000},"palladium":{"type":"integer","minimum":0,"maximum":10000}},"required":["gold","silver","platinum","palladium"],"additionalProperties":false},"buyHoldDays":{"type":"integer","minimum":0,"maximum":90},"buyTerms":{"type":"string","maxLength":600},"readyEmail":{"type":"boolean"},"readyText":{"type":"boolean"},"appraiserName":{"type":"string","maxLength":80},"appraiserCredentials":{"type":"string","maxLength":120},"appraisalTerms":{"type":"string","maxLength":1500},"lockAfterMinutes":{"type":"integer","minimum":0,"maximum":30},"weekStartsOn":{"type":"integer","minimum":0,"maximum":6},"rewardsEnabled":{"type":"boolean"},"rewardEveryCents":{"type":"integer","minimum":1000,"maximum":100000000},"rewardCents":{"type":"integer","minimum":100,"maximum":10000000},"rewardsSince":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","enum":[""]}]},"pointsEnabled":{"type":"boolean"},"pointsPerDollar":{"type":"integer","minimum":1,"maximum":100},"pointsSince":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","enum":[""]}]},"pointsExpireMonths":{"type":"integer","minimum":0,"maximum":60},"pointsRewards":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"points":{"type":"integer","minimum":1,"maximum":10000000},"percentBps":{"type":"integer","minimum":1,"maximum":10000},"capCents":{"nullable":true,"type":"integer","minimum":1,"maximum":100000000}},"required":["id","points","percentBps","capCents"],"additionalProperties":false}},"attributionDays":{"type":"integer","minimum":1,"maximum":60},"reviewUrl":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"string","enum":[""]}]},"emailLogo":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"],"additionalProperties":false},"emailAccent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["discountLimitBps","receiptHeader","receiptFooter","receiptLogo","cardProcessor","houseDefaultLimitCents","houseOnlinePay","layawayMinDepositBps","layawayTermDays","layawayCancelFeeBps","layawayTerms","repairMenu","repairTermDays","repairTerms","orderDepositBps","orderTerms","memoTermDays","memoTerms","buyPayoutBps","buyHoldDays","buyTerms","readyEmail","readyText","appraiserName","appraiserCredentials","appraisalTerms","lockAfterMinutes","weekStartsOn","rewardsEnabled","rewardEveryCents","rewardCents","rewardsSince","pointsEnabled","pointsPerDollar","pointsSince","pointsExpireMonths","pointsRewards","attributionDays","reviewUrl","emailLogo","emailAccent"],"additionalProperties":false}}}}}}},"/v1/sales":{"get":{"parameters":[{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"boolean"},"in":"query","name":"issues","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptNumber":{"type":"string"},"status":{"type":"string","enum":["completed","voided"]},"occurredAt":{"type":"string"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"registerName":{"nullable":true,"type":"string"},"customerName":{"nullable":true,"type":"string"},"soldBy":{"type":"string"},"itemCount":{"type":"number"},"firstTitle":{"type":"string"},"lineCount":{"type":"number"},"subtotalCents":{"type":"number"},"discountCents":{"type":"number"},"taxCents":{"type":"number"},"totalCents":{"type":"number"},"giftCardCents":{"type":"number"},"issueCount":{"type":"number"},"returnCount":{"type":"number"}},"required":["id","receiptNumber","status","occurredAt","locationId","locationName","registerName","customerName","soldBy","itemCount","firstTitle","lineCount","subtotalCents","discountCents","taxCents","totalCents","giftCardCents","issueCount","returnCount"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"summary":{"type":"object","properties":{"count":{"type":"number"},"subtotalCents":{"type":"number"},"discountCents":{"type":"number"},"taxCents":{"type":"number"},"totalCents":{"type":"number"},"giftCardCents":{"type":"number"},"returns":{"type":"object","properties":{"count":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"totalCents":{"type":"number"}},"required":["count","netCents","taxCents","totalCents"],"additionalProperties":false}},"required":["count","subtotalCents","discountCents","taxCents","totalCents","giftCardCents","returns"],"additionalProperties":false}},"required":["data","nextCursor","summary"],"additionalProperties":false}}}}}}},"/v1/sales/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/returns":{"get":{"parameters":[{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"returnNumber":{"type":"string"},"saleId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptNumber":{"nullable":true,"type":"string"},"occurredAt":{"type":"string"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"registerName":{"nullable":true,"type":"string"},"customerName":{"nullable":true,"type":"string"},"returnedBy":{"type":"string"},"reason":{"type":"string"},"itemCount":{"type":"number"},"firstTitle":{"type":"string"},"lineCount":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"totalCents":{"type":"number"},"issueCount":{"type":"number"}},"required":["id","returnNumber","saleId","receiptNumber","occurredAt","locationId","locationName","registerName","customerName","returnedBy","reason","itemCount","firstTitle","lineCount","netCents","taxCents","totalCents","issueCount"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["data","nextCursor"],"additionalProperties":false}}}}}}},"/v1/returns/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/drawers":{"get":{"parameters":[{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"default":60,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/drawers/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/layaways":{"get":{"parameters":[{"schema":{"default":"open","type":"string","enum":["open","overdue","completed","canceled","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"today","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"customerId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"status":{"type":"string","enum":["open","completed","canceled"]},"occurredAt":{"type":"string"},"dueDate":{"type":"string"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"customerName":{"nullable":true,"type":"string"},"createdBy":{"type":"string"},"firstTitle":{"type":"string"},"lineCount":{"type":"number"},"totalCents":{"type":"number"},"paidCents":{"type":"number"},"balanceCents":{"type":"number"},"lastPaidAt":{"nullable":true,"type":"string"},"issueCount":{"type":"number"}},"required":["id","number","status","occurredAt","dueDate","locationId","locationName","customerName","createdBy","firstTitle","lineCount","totalCents","paidCents","balanceCents","lastPaidAt","issueCount"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"open":{"type":"number"},"overdue":{"type":"number"},"openBalanceCents":{"type":"number"}},"required":["open","overdue","openBalanceCents"],"additionalProperties":false}},"required":["data","nextCursor","counts"],"additionalProperties":false}}}}}}},"/v1/layaways/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/repairs":{"get":{"parameters":[{"schema":{"default":"open","type":"string","enum":["open","received","at_vendor","ready","late","done","all"]},"in":"query","name":"status","required":false},{"schema":{"default":"all","type":"string","enum":["repairs","orders","all"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"today","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","pattern":"^(shop|jeweler):[0-9a-f-]{36}$"},"in":"query","name":"with","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["repair","special_order","custom"]},"number":{"type":"string"},"approved":{"type":"boolean"},"status":{"type":"string","enum":["received","at_vendor","ready","picked_up","canceled"]},"occurredAt":{"type":"string"},"promisedDate":{"nullable":true,"type":"string"},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locationName":{"type":"string"},"customerName":{"nullable":true,"type":"string"},"customerPhone":{"nullable":true,"type":"string"},"itemDescription":{"type":"string"},"firstWork":{"type":"string"},"lineCount":{"type":"number"},"vendorName":{"nullable":true,"type":"string"},"jewelerName":{"nullable":true,"type":"string"},"totalCents":{"type":"number"},"paidCents":{"type":"number"},"balanceCents":{"type":"number"},"issueCount":{"type":"number"}},"required":["id","kind","number","approved","status","occurredAt","promisedDate","locationId","locationName","customerName","customerPhone","itemDescription","firstWork","lineCount","vendorName","jewelerName","totalCents","paidCents","balanceCents","issueCount"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"received":{"type":"number"},"atVendor":{"type":"number"},"ready":{"type":"number"},"late":{"type":"number"}},"required":["received","atVendor","ready","late"],"additionalProperties":false}},"required":["data","nextCursor","counts"],"additionalProperties":false}}}}}}},"/v1/repairs/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/repairs/{id}/update":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["received","at_vendor","ready"]},"vendorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"jewelerMembershipId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"promisedDate":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"note":{"nullable":true,"type":"string","maxLength":500},"instructions":{"nullable":true,"type":"string","maxLength":2000},"vendorCostCents":{"nullable":true,"type":"integer","minimum":0,"maximum":100000000},"vendorRef":{"nullable":true,"type":"string","maxLength":60},"approved":{"type":"boolean","enum":[true]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/repair-shops":{"get":{"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"all","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"shops":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contactName":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"archived":{"type":"boolean"},"out":{"type":"number"}},"required":["id","name","contactName","phone","email","notes","archived","out"],"additionalProperties":false}},"jewelers":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"jeweler":{"type":"boolean"},"open":{"type":"number"}},"required":["membershipId","name","role","jeweler","open"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["shops","jewelers","canManage"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"contactName":{"nullable":true,"type":"string","maxLength":120},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254},"notes":{"nullable":true,"type":"string","maxLength":2000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contactName":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"archived":{"type":"boolean"},"out":{"type":"number"}},"required":["id","name","contactName","phone","email","notes","archived","out"],"additionalProperties":false}}}}}}},"/v1/repair-shops/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"contactName":{"nullable":true,"type":"string","maxLength":120},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254},"notes":{"nullable":true,"type":"string","maxLength":2000},"archived":{"type":"boolean"},"repairs":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contactName":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"archived":{"type":"boolean"},"out":{"type":"number"}},"required":["id","name","contactName","phone","email","notes","archived","out"],"additionalProperties":false}}}}}}},"/v1/repair-shops/jewelers/{membershipId}":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jeweler":{"type":"boolean"}},"required":["jeweler"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"membershipId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"jeweler":{"type":"boolean"},"open":{"type":"number"}},"required":["membershipId","name","role","jeweler","open"],"additionalProperties":false}}}}}}},"/v1/repairs/{id}/photos":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"header","name":"x-photo-id","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"header","name":"x-taken-at","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"header","name":"x-taken-by","required":false}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"},"duplicate":{"type":"boolean"}},"required":["id","width","height","duplicate"],"additionalProperties":false}}}}}}},"/v1/repairs/{id}/photos/{photoId}":{"get":{"parameters":[{"schema":{"default":"large","type":"string","enum":["thumb","large","full"]},"in":"query","name":"size","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"photoId","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"photoId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/schedules":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"week","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string"},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"weekStartsOn":{"type":"number"},"publishedAt":{"nullable":true,"type":"string"},"version":{"type":"number"},"unpublishedChanges":{"type":"number"},"shifts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"position":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["id","membershipId","name","startsAt","endsAt","position","note"],"additionalProperties":false}},"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"texts":{"type":"boolean"},"hasEmail":{"type":"boolean"}},"required":["membershipId","name","role","texts","hasEmail"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["locationId","timezone","weekStart","weekStartsOn","publishedAt","version","unpublishedChanges","shifts","people","canManage"],"additionalProperties":false}}}}}}},"/v1/schedules/shifts":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"position":{"nullable":true,"type":"string","maxLength":60},"note":{"nullable":true,"type":"string","maxLength":300},"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["membershipId","day","start","end","locationId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string"},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"weekStartsOn":{"type":"number"},"publishedAt":{"nullable":true,"type":"string"},"version":{"type":"number"},"unpublishedChanges":{"type":"number"},"shifts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"position":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["id","membershipId","name","startsAt","endsAt","position","note"],"additionalProperties":false}},"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"texts":{"type":"boolean"},"hasEmail":{"type":"boolean"}},"required":["membershipId","name","role","texts","hasEmail"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["locationId","timezone","weekStart","weekStartsOn","publishedAt","version","unpublishedChanges","shifts","people","canManage"],"additionalProperties":false}}}}}}},"/v1/schedules/shifts/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"position":{"nullable":true,"type":"string","maxLength":60},"note":{"nullable":true,"type":"string","maxLength":300}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string"},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"weekStartsOn":{"type":"number"},"publishedAt":{"nullable":true,"type":"string"},"version":{"type":"number"},"unpublishedChanges":{"type":"number"},"shifts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"position":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["id","membershipId","name","startsAt","endsAt","position","note"],"additionalProperties":false}},"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"texts":{"type":"boolean"},"hasEmail":{"type":"boolean"}},"required":["membershipId","name","role","texts","hasEmail"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["locationId","timezone","weekStart","weekStartsOn","publishedAt","version","unpublishedChanges","shifts","people","canManage"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string"},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"weekStartsOn":{"type":"number"},"publishedAt":{"nullable":true,"type":"string"},"version":{"type":"number"},"unpublishedChanges":{"type":"number"},"shifts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"position":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["id","membershipId","name","startsAt","endsAt","position","note"],"additionalProperties":false}},"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"texts":{"type":"boolean"},"hasEmail":{"type":"boolean"}},"required":["membershipId","name","role","texts","hasEmail"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["locationId","timezone","weekStart","weekStartsOn","publishedAt","version","unpublishedChanges","shifts","people","canManage"],"additionalProperties":false}}}}}}},"/v1/schedules/copy":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"replace":{"default":false,"type":"boolean"}},"required":["locationId","from","to"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string"},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"weekStartsOn":{"type":"number"},"publishedAt":{"nullable":true,"type":"string"},"version":{"type":"number"},"unpublishedChanges":{"type":"number"},"shifts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"position":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["id","membershipId","name","startsAt","endsAt","position","note"],"additionalProperties":false}},"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"texts":{"type":"boolean"},"hasEmail":{"type":"boolean"}},"required":["membershipId","name","role","texts","hasEmail"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["locationId","timezone","weekStart","weekStartsOn","publishedAt","version","unpublishedChanges","shifts","people","canManage"],"additionalProperties":false}}}}}}},"/v1/schedules/publish":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"week":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["locationId","week"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string"},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"weekStartsOn":{"type":"number"},"publishedAt":{"nullable":true,"type":"string"},"version":{"type":"number"},"unpublishedChanges":{"type":"number"},"shifts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"position":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["id","membershipId","name","startsAt","endsAt","position","note"],"additionalProperties":false}},"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"texts":{"type":"boolean"},"hasEmail":{"type":"boolean"}},"required":["membershipId","name","role","texts","hasEmail"],"additionalProperties":false}},"canManage":{"type":"boolean"},"notified":{"type":"number"}},"required":["locationId","timezone","weekStart","weekStartsOn","publishedAt","version","unpublishedChanges","shifts","people","canManage","notified"],"additionalProperties":false}}}}}}},"/v1/customers/upcoming":{"get":{"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":366},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"today":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"partnerName":{"nullable":true,"type":"string"},"kind":{"type":"string","enum":["birthday","anniversary"]},"date":{"type":"string"},"inDays":{"type":"number"},"years":{"nullable":true,"type":"number"},"okEmail":{"nullable":true,"type":"boolean"},"okText":{"nullable":true,"type":"boolean"},"preferredContact":{"nullable":true,"type":"string"}},"required":["id","firstName","lastName","phone","email","partnerName","kind","date","inDays","years","okEmail","okText","preferredContact"],"additionalProperties":false}}},"required":["today","data"],"additionalProperties":false}}}}}}},"/v1/customers":{"get":{"parameters":[{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"string","maxLength":400},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":"true","type":"string","enum":["true","false"]},"in":"query","name":"total","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"homeLocationName":{"nullable":true,"type":"string"},"archived":{"type":"boolean"},"visits":{"type":"number"},"spentCents":{"type":"number"},"lastVisitAt":{"nullable":true,"type":"string"},"openLayaways":{"type":"number"},"openRepairs":{"type":"number"},"readyRepairs":{"type":"number"}},"required":["id","firstName","lastName","email","phone","homeLocationName","archived","visits","spentCents","lastVisitAt","openLayaways","openRepairs","readyRepairs"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"nullable":true,"type":"number"}},"required":["data","nextCursor","total"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"nullable":true,"type":"string","maxLength":40},"notes":{"nullable":true,"type":"string","maxLength":2000},"homeLocationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"phone2":{"nullable":true,"type":"string","maxLength":40},"address":{"nullable":true,"type":"object","properties":{"line1":{"type":"string","minLength":1,"maxLength":120},"line2":{"nullable":true,"type":"string","maxLength":120},"city":{"type":"string","minLength":1,"maxLength":80},"state":{"type":"string","minLength":2,"maxLength":40},"postalCode":{"type":"string","minLength":3,"maxLength":12}},"required":["line1","city","state","postalCode"]},"birthday":{"nullable":true,"type":"string","pattern":"^(\\d{4}-)?(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"anniversary":{"nullable":true,"type":"string","pattern":"^(\\d{4}-)?(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"partnerName":{"nullable":true,"type":"string","maxLength":100},"ringSize":{"nullable":true,"type":"string","maxLength":12},"metals":{"nullable":true,"maxItems":12,"type":"array","items":{"type":"string","enum":["yellow_gold","white_gold","rose_gold","two_tone","platinum","silver","palladium","titanium","tungsten","stainless"]}},"stones":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","enum":["diamond","sapphire","ruby","emerald","pearl","aquamarine","amethyst","garnet","opal","tanzanite","topaz","morganite","peridot","citrine","moissanite"]}},"wishList":{"nullable":true,"type":"string","maxLength":1000},"okEmail":{"nullable":true,"type":"boolean"},"okText":{"nullable":true,"type":"boolean"},"preferredContact":{"nullable":true,"type":"string","enum":["phone","text","email"]},"heardFrom":{"nullable":true,"type":"string","maxLength":100}},"required":["firstName","lastName"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"nullable":true,"type":"string","maxLength":40},"notes":{"nullable":true,"type":"string","maxLength":2000},"homeLocationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"phone2":{"nullable":true,"type":"string","maxLength":40},"address":{"nullable":true,"type":"object","properties":{"line1":{"type":"string","minLength":1,"maxLength":120},"line2":{"nullable":true,"type":"string","maxLength":120},"city":{"type":"string","minLength":1,"maxLength":80},"state":{"type":"string","minLength":2,"maxLength":40},"postalCode":{"type":"string","minLength":3,"maxLength":12}},"required":["line1","city","state","postalCode"]},"birthday":{"nullable":true,"type":"string","pattern":"^(\\d{4}-)?(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"anniversary":{"nullable":true,"type":"string","pattern":"^(\\d{4}-)?(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"partnerName":{"nullable":true,"type":"string","maxLength":100},"ringSize":{"nullable":true,"type":"string","maxLength":12},"metals":{"nullable":true,"maxItems":12,"type":"array","items":{"type":"string","enum":["yellow_gold","white_gold","rose_gold","two_tone","platinum","silver","palladium","titanium","tungsten","stainless"]}},"stones":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","enum":["diamond","sapphire","ruby","emerald","pearl","aquamarine","amethyst","garnet","opal","tanzanite","topaz","morganite","peridot","citrine","moissanite"]}},"wishList":{"nullable":true,"type":"string","maxLength":1000},"okEmail":{"nullable":true,"type":"boolean"},"okText":{"nullable":true,"type":"boolean"},"preferredContact":{"nullable":true,"type":"string","enum":["phone","text","email"]},"heardFrom":{"nullable":true,"type":"string","maxLength":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/archive":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/restore":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/unmerge":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"duplicateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["duplicateId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/merge":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"duplicateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["duplicateId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reports/sales":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"totals":{"type":"object","properties":{"grossCents":{"type":"number"},"discountCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"marginCents":{"nullable":true,"type":"number"},"marginBaseCents":{"nullable":true,"type":"number"},"saleCount":{"type":"number"},"returnCount":{"type":"number"},"itemsSold":{"type":"number"},"linesWithoutCost":{"nullable":true,"type":"number"}},"required":["grossCents","discountCents","returnsCents","netCents","taxCents","costCents","marginCents","marginBaseCents","saleCount","returnCount","itemsSold","linesWithoutCost"],"additionalProperties":false},"byDay":{"type":"array","items":{"type":"object","properties":{"grossCents":{"type":"number"},"discountCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"marginCents":{"nullable":true,"type":"number"},"marginBaseCents":{"nullable":true,"type":"number"},"day":{"type":"string"},"saleCount":{"type":"number"}},"required":["grossCents","discountCents","returnsCents","netCents","taxCents","costCents","marginCents","marginBaseCents","day","saleCount"],"additionalProperties":false}},"byCategory":{"type":"array","items":{"type":"object","properties":{"grossCents":{"type":"number"},"discountCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"marginCents":{"nullable":true,"type":"number"},"marginBaseCents":{"nullable":true,"type":"number"},"key":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"number"}},"required":["grossCents","discountCents","returnsCents","netCents","taxCents","costCents","marginCents","marginBaseCents","key","name","quantity"],"additionalProperties":false}},"bySalesperson":{"type":"array","items":{"type":"object","properties":{"grossCents":{"type":"number"},"discountCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"marginCents":{"nullable":true,"type":"number"},"marginBaseCents":{"nullable":true,"type":"number"},"key":{"type":"string"},"name":{"type":"string"},"saleCount":{"type":"number"}},"required":["grossCents","discountCents","returnsCents","netCents","taxCents","costCents","marginCents","marginBaseCents","key","name","saleCount"],"additionalProperties":false}},"square":{"nullable":true,"type":"object","properties":{"status":{"type":"object","properties":{"connected":{"type":"boolean"},"syncedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["connected","syncedAt","lastError"],"additionalProperties":false},"totals":{"type":"object","properties":{"grossCents":{"type":"number"},"discountCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"tipCents":{"type":"number"},"saleCount":{"type":"number"},"returnCount":{"type":"number"}},"required":["grossCents","discountCents","returnsCents","netCents","taxCents","tipCents","saleCount","returnCount"],"additionalProperties":false},"byDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"saleCount":{"type":"number"}},"required":["day","netCents","taxCents","saleCount"],"additionalProperties":false}},"dashboard":{"type":"object","properties":{"netCents":{"type":"number"},"taxCents":{"type":"number"},"fromHereCents":{"type":"number"}},"required":["netCents","taxCents","fromHereCents"],"additionalProperties":false}},"required":["status","totals","byDay","dashboard"],"additionalProperties":false}},"required":["totals","byDay","byCategory","bySalesperson","square"],"additionalProperties":false}}}}}}},"/v1/reports/tax":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"jurisdiction":{"type":"string"},"taxClass":{"type":"string"},"rateBps":{"type":"number"},"salesNetCents":{"type":"number"},"salesTaxCents":{"type":"number"},"returnsNetCents":{"type":"number"},"returnsTaxCents":{"type":"number"}},"required":["month","jurisdiction","taxClass","rateBps","salesNetCents","salesTaxCents","returnsNetCents","returnsTaxCents"],"additionalProperties":false}},"square":{"nullable":true,"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"salesNetCents":{"type":"number"},"salesTaxCents":{"type":"number"},"returnsNetCents":{"type":"number"},"returnsTaxCents":{"type":"number"}},"required":["month","salesNetCents","salesTaxCents","returnsNetCents","returnsTaxCents"],"additionalProperties":false}}},"required":["rows","square"],"additionalProperties":false}}}}}}},"/v1/reports/payments":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"tender":{"type":"string","enum":["cash","card_terminal","card_external","card_online","exchange","layaway","deposit","gift_card","store_credit","trade_in","house","square_card","square_cash","square_gift_card","square_other","square_refund"]},"source":{"type":"string","enum":["sale","layaway","repair","house","return_refund","layaway_refund","repair_refund","void_refund","buy","square","square_refund"]},"count":{"type":"number"},"amountCents":{"type":"number"}},"required":["day","tender","source","count","amountCents"],"additionalProperties":false}}},"required":["rows"],"additionalProperties":false}}}}}}},"/v1/reports/inventory":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"totals":{"type":"object","properties":{"pieces":{"type":"number"},"units":{"type":"number"},"retailCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"withoutCost":{"nullable":true,"type":"number"}},"required":["pieces","units","retailCents","costCents","withoutCost"],"additionalProperties":false},"byCategory":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"pieces":{"type":"number"},"units":{"type":"number"},"retailCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"withoutCost":{"nullable":true,"type":"number"}},"required":["key","name","pieces","units","retailCents","costCents","withoutCost"],"additionalProperties":false}},"byStore":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"pieces":{"type":"number"},"units":{"type":"number"},"retailCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"withoutCost":{"nullable":true,"type":"number"}},"required":["key","name","pieces","units","retailCents","costCents","withoutCost"],"additionalProperties":false}},"aging":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"pieces":{"type":"number"},"units":{"type":"number"},"retailCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"withoutCost":{"nullable":true,"type":"number"}},"required":["key","name","pieces","units","retailCents","costCents","withoutCost"],"additionalProperties":false}},"notOwned":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"pieces":{"type":"number"},"units":{"type":"number"},"retailCents":{"type":"number"},"costCents":{"nullable":true,"type":"number"},"withoutCost":{"nullable":true,"type":"number"}},"required":["key","name","pieces","units","retailCents","costCents","withoutCost"],"additionalProperties":false}}},"required":["totals","byCategory","byStore","aging","notOwned"],"additionalProperties":false}}}}}}},"/v1/square-sales":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"squareOrderId":{"type":"string"},"closedAt":{"type":"string"},"storeName":{"nullable":true,"type":"string"},"netCents":{"type":"number"},"taxCents":{"type":"number"},"tipCents":{"type":"number"},"totalCents":{"type":"number"},"returnsTotalCents":{"type":"number"},"lines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"variation":{"nullable":true,"type":"string"},"quantity":{"type":"number"},"grossCents":{"type":"number"},"discountCents":{"type":"number"},"taxCents":{"type":"number"},"totalCents":{"type":"number"}},"required":["name","variation","quantity","grossCents","discountCents","taxCents","totalCents"],"additionalProperties":false}},"returnedLines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"variation":{"nullable":true,"type":"string"},"quantity":{"type":"number"},"grossCents":{"type":"number"},"discountCents":{"type":"number"},"taxCents":{"type":"number"},"totalCents":{"type":"number"}},"required":["name","variation","quantity","grossCents","discountCents","taxCents","totalCents"],"additionalProperties":false}},"tenders":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"amountCents":{"type":"number"},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"}},"required":["type","amountCents","brand","last4"],"additionalProperties":false}},"refunds":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"amountCents":{"type":"number"},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"}},"required":["type","amountCents","brand","last4"],"additionalProperties":false}}},"required":["id","squareOrderId","closedAt","storeName","netCents","taxCents","tipCents","totalCents","returnsTotalCents","lines","returnedLines","tenders","refunds"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"status":{"type":"object","properties":{"connected":{"type":"boolean"},"syncedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["connected","syncedAt","lastError"],"additionalProperties":false}},"required":["data","nextCursor","status"],"additionalProperties":false}}}}}}},"/v1/square-sales/check":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"status":{"type":"object","properties":{"connected":{"type":"boolean"},"syncedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["connected","syncedAt","lastError"],"additionalProperties":false},"totals":{"type":"object","properties":{"squarePaidCents":{"type":"number"},"squareRefundedCents":{"type":"number"},"squareNetCents":{"type":"number"},"terminalCents":{"type":"number"},"onlineCents":{"type":"number"},"squareOnlyCents":{"type":"number"},"hereCents":{"type":"number"},"differenceCents":{"type":"number"}},"required":["squarePaidCents","squareRefundedCents","squareNetCents","terminalCents","onlineCents","squareOnlyCents","hereCents","differenceCents"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"squarePaidCents":{"type":"number"},"squareRefundedCents":{"type":"number"},"squareNetCents":{"type":"number"},"terminalCents":{"type":"number"},"onlineCents":{"type":"number"},"squareOnlyCents":{"type":"number"},"hereCents":{"type":"number"},"differenceCents":{"type":"number"},"day":{"type":"string"}},"required":["squarePaidCents","squareRefundedCents","squareNetCents","terminalCents","onlineCents","squareOnlyCents","hereCents","differenceCents","day"],"additionalProperties":false}},"unfinished":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"amountCents":{"type":"number"},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"storeName":{"type":"string"},"registerName":{"type":"string"}},"required":["at","amountCents","brand","last4","storeName","registerName"],"additionalProperties":false}},"refundedInSquare":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"amountCents":{"type":"number"},"storeName":{"nullable":true,"type":"string"}},"required":["at","amountCents","storeName"],"additionalProperties":false}},"unusedRefunds":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"amountCents":{"type":"number"},"storeName":{"type":"string"},"registerName":{"type":"string"}},"required":["at","amountCents","storeName","registerName"],"additionalProperties":false}}},"required":["status","totals","days","unfinished","refundedInSquare","unusedRefunds"],"additionalProperties":false}}}}}}},"/v1/square-sales/status":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"syncedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["connected","syncedAt","lastError"],"additionalProperties":false}}}}}}},"/v1/square-sales/refresh":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"syncedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["connected","syncedAt","lastError"],"additionalProperties":false}}}}}}},"/v1/square-sales/recording":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"on":{"type":"boolean"},"since":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"sent":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"},"skipped":{"type":"number"}},"required":["sent","waiting","failed","skipped"],"additionalProperties":false},"lastSentAt":{"nullable":true,"type":"string"},"unmappedStores":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["sale","return","void","layaway_payment","layaway_refund","repair_payment","repair_refund","house_payment"]},"number":{"type":"string"},"occurredAt":{"type":"string"},"status":{"type":"string"},"note":{"nullable":true,"type":"string"},"attempts":{"type":"number"}},"required":["id","kind","number","occurredAt","status","note","attempts"],"additionalProperties":false}}},"required":["connected","on","since","counts","lastSentAt","unmappedStores","problems"],"additionalProperties":false}}}}}},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"on":{"type":"boolean"}},"required":["on"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"on":{"type":"boolean"},"since":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"sent":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"},"skipped":{"type":"number"}},"required":["sent","waiting","failed","skipped"],"additionalProperties":false},"lastSentAt":{"nullable":true,"type":"string"},"unmappedStores":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["sale","return","void","layaway_payment","layaway_refund","repair_payment","repair_refund","house_payment"]},"number":{"type":"string"},"occurredAt":{"type":"string"},"status":{"type":"string"},"note":{"nullable":true,"type":"string"},"attempts":{"type":"number"}},"required":["id","kind","number","occurredAt","status","note","attempts"],"additionalProperties":false}}},"required":["connected","on","since","counts","lastSentAt","unmappedStores","problems"],"additionalProperties":false}}}}}}},"/v1/square-sales/recording/past":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["from"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"on":{"type":"boolean"},"since":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"sent":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"},"skipped":{"type":"number"}},"required":["sent","waiting","failed","skipped"],"additionalProperties":false},"lastSentAt":{"nullable":true,"type":"string"},"unmappedStores":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["sale","return","void","layaway_payment","layaway_refund","repair_payment","repair_refund","house_payment"]},"number":{"type":"string"},"occurredAt":{"type":"string"},"status":{"type":"string"},"note":{"nullable":true,"type":"string"},"attempts":{"type":"number"}},"required":["id","kind","number","occurredAt","status","note","attempts"],"additionalProperties":false}}},"required":["connected","on","since","counts","lastSentAt","unmappedStores","problems"],"additionalProperties":false}}}}}}},"/v1/square-sales/recording/send":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"on":{"type":"boolean"},"since":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"sent":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"},"skipped":{"type":"number"}},"required":["sent","waiting","failed","skipped"],"additionalProperties":false},"lastSentAt":{"nullable":true,"type":"string"},"unmappedStores":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["sale","return","void","layaway_payment","layaway_refund","repair_payment","repair_refund","house_payment"]},"number":{"type":"string"},"occurredAt":{"type":"string"},"status":{"type":"string"},"note":{"nullable":true,"type":"string"},"attempts":{"type":"number"}},"required":["id","kind","number","occurredAt","status","note","attempts"],"additionalProperties":false}}},"required":["connected","on","since","counts","lastSentAt","unmappedStores","problems"],"additionalProperties":false}}}}}}},"/v1/square-sales/recording/retry":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean"},"on":{"type":"boolean"},"since":{"nullable":true,"type":"string"},"counts":{"type":"object","properties":{"sent":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"},"skipped":{"type":"number"}},"required":["sent","waiting","failed","skipped"],"additionalProperties":false},"lastSentAt":{"nullable":true,"type":"string"},"unmappedStores":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["sale","return","void","layaway_payment","layaway_refund","repair_payment","repair_refund","house_payment"]},"number":{"type":"string"},"occurredAt":{"type":"string"},"status":{"type":"string"},"note":{"nullable":true,"type":"string"},"attempts":{"type":"number"}},"required":["id","kind","number","occurredAt","status","note","attempts"],"additionalProperties":false}}},"required":["connected","on","since","counts","lastSentAt","unmappedStores","problems"],"additionalProperties":false}}}}}}},"/v1/imports/check":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["pieces","stock","customers"]},"rows":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","minimum":1,"maximum":1000000},"values":{"type":"object","additionalProperties":{"type":"string","maxLength":4000}}},"required":["n","values"]}},"options":{"default":{},"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"categoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}},"required":["kind","rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"n":{"type":"number"},"status":{"type":"string","enum":["ok","warning","skip","error"]},"messages":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"}},"required":["n","status","messages","summary"],"additionalProperties":false}},"counts":{"type":"object","properties":{"ok":{"type":"number"},"warning":{"type":"number"},"skip":{"type":"number"},"error":{"type":"number"},"creates":{"type":"number"}},"required":["ok","warning","skip","error","creates"],"additionalProperties":false},"newCategories":{"type":"array","items":{"type":"string"}},"newVendors":{"type":"array","items":{"type":"string"}}},"required":["rows","counts","newCategories","newVendors"],"additionalProperties":false}}}}}}},"/v1/imports":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["pieces","stock","customers"]},"fileName":{"type":"string","minLength":1,"maxLength":200},"rowCount":{"type":"integer","minimum":1,"maximum":10000}},"required":["kind","fileName","rowCount"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}}}},"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["pieces","stock","customers"]},"fileName":{"type":"string"},"status":{"type":"string","enum":["running","done"]},"rowCount":{"type":"number"},"createdCount":{"type":"number"},"skippedCount":{"type":"number"},"errorCount":{"type":"number"},"createdAt":{"type":"string"},"finishedAt":{"nullable":true,"type":"string"},"by":{"type":"string"}},"required":["id","kind","fileName","status","rowCount","createdCount","skippedCount","errorCount","createdAt","finishedAt","by"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/imports/{id}/rows":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","minimum":1,"maximum":1000000},"values":{"type":"object","additionalProperties":{"type":"string","maxLength":4000}}},"required":["n","values"]}},"options":{"default":{},"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"categoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}},"required":["rows"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"n":{"type":"number"},"status":{"type":"string","enum":["created","skipped","error","already"]},"messages":{"type":"array","items":{"type":"string"}},"ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["n","status","messages","ids"],"additionalProperties":false}}},"required":["rows"],"additionalProperties":false}}}}}}},"/v1/imports/{id}/finish":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["pieces","stock","customers"]},"fileName":{"type":"string"},"status":{"type":"string","enum":["running","done"]},"rowCount":{"type":"number"},"createdCount":{"type":"number"},"skippedCount":{"type":"number"},"errorCount":{"type":"number"},"createdAt":{"type":"string"},"finishedAt":{"nullable":true,"type":"string"},"by":{"type":"string"}},"required":["id","kind","fileName","status","rowCount","createdCount","skippedCount","errorCount","createdAt","finishedAt","by"],"additionalProperties":false}}}}}}},"/v1/card-payments":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountCents":{"type":"integer","minimum":0,"maximum":10000000000}},"required":["reference","amountCents"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","approved","declined","canceled","failed"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"authCode":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"}},"required":["id","reference","provider","amountCents","status","brand","last4","authCode","message"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"default":true,"type":"boolean"},"in":"query","name":"unattached","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","approved","declined","canceled","failed"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"authCode":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"registerName":{"type":"string"}},"required":["id","reference","provider","amountCents","status","brand","last4","authCode","message","createdAt","registerName"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/card-payments/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","approved","declined","canceled","failed"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"authCode":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"}},"required":["id","reference","provider","amountCents","status","brand","last4","authCode","message"],"additionalProperties":false}}}}}}},"/v1/card-payments/{id}/cancel":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","approved","declined","canceled","failed"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"authCode":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"}},"required":["id","reference","provider","amountCents","status","brand","last4","authCode","message"],"additionalProperties":false}}}}}}},"/v1/card-refunds":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cardPaymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountCents":{"type":"integer","minimum":0,"maximum":10000000000},"approvedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["reference","cardPaymentId","amountCents"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cardPaymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","approved","failed"]},"message":{"nullable":true,"type":"string"}},"required":["id","reference","cardPaymentId","amountCents","status","message"],"additionalProperties":false}}}}}}},"/v1/card-refunds/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reference":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cardPaymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","approved","failed"]},"message":{"nullable":true,"type":"string"}},"required":["id","reference","cardPaymentId","amountCents","status","message"],"additionalProperties":false}}}}}}},"/v1/integrations/square":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"environment":{"nullable":true,"type":"string","enum":["sandbox","production"]},"status":{"type":"string","enum":["not_connected","connected","error"]},"merchantName":{"nullable":true,"type":"string"},"connectedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"},"stores":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"squareLocationId":{"nullable":true,"type":"string"}},"required":["locationId","name","squareLocationId"],"additionalProperties":false}},"squareLocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"additionalProperties":false}},"needsReconnect":{"type":"boolean"}},"required":["available","environment","status","merchantName","connectedAt","lastError","stores","squareLocations","needsReconnect"],"additionalProperties":false}}}}}}},"/v1/integrations/square/connect":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/integrations/square/callback":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","minLength":20,"maxLength":200},"code":{"type":"string","maxLength":500},"error":{"type":"string","maxLength":100},"errorDescription":{"type":"string","maxLength":500}},"required":["state"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"environment":{"nullable":true,"type":"string","enum":["sandbox","production"]},"status":{"type":"string","enum":["not_connected","connected","error"]},"merchantName":{"nullable":true,"type":"string"},"connectedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"},"stores":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"squareLocationId":{"nullable":true,"type":"string"}},"required":["locationId","name","squareLocationId"],"additionalProperties":false}},"squareLocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"additionalProperties":false}},"needsReconnect":{"type":"boolean"}},"required":["available","environment","status","merchantName","connectedAt","lastError","stores","squareLocations","needsReconnect"],"additionalProperties":false}}}}}}},"/v1/integrations/square/stores":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stores":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"squareLocationId":{"nullable":true,"type":"string","maxLength":64}},"required":["locationId","squareLocationId"]}}},"required":["stores"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"environment":{"nullable":true,"type":"string","enum":["sandbox","production"]},"status":{"type":"string","enum":["not_connected","connected","error"]},"merchantName":{"nullable":true,"type":"string"},"connectedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"},"stores":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"squareLocationId":{"nullable":true,"type":"string"}},"required":["locationId","name","squareLocationId"],"additionalProperties":false}},"squareLocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"additionalProperties":false}},"needsReconnect":{"type":"boolean"}},"required":["available","environment","status","merchantName","connectedAt","lastError","stores","squareLocations","needsReconnect"],"additionalProperties":false}}}}}}},"/v1/integrations/square/disconnect":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"environment":{"nullable":true,"type":"string","enum":["sandbox","production"]},"status":{"type":"string","enum":["not_connected","connected","error"]},"merchantName":{"nullable":true,"type":"string"},"connectedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"},"stores":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"squareLocationId":{"nullable":true,"type":"string"}},"required":["locationId","name","squareLocationId"],"additionalProperties":false}},"squareLocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"additionalProperties":false}},"needsReconnect":{"type":"boolean"}},"required":["available","environment","status","merchantName","connectedAt","lastError","stores","squareLocations","needsReconnect"],"additionalProperties":false}}}}}}},"/v1/registers/{id}/card-terminal/pairing":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["none","pairing","paired","expired"]},"code":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string"},"pairedAt":{"nullable":true,"type":"string"}},"required":["status","code","expiresAt","pairedAt"],"additionalProperties":false}}}}}}},"/v1/registers/{id}/card-terminal":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["none","pairing","paired","expired"]},"code":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string"},"pairedAt":{"nullable":true,"type":"string"}},"required":["status","code","expiresAt","pairedAt"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["none","pairing","paired","expired"]},"code":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string"},"pairedAt":{"nullable":true,"type":"string"}},"required":["status","code","expiresAt","pairedAt"],"additionalProperties":false}}}}}}},"/v1/registers/{id}/card-terminal/sandbox":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","enum":["9fa747a2-25ff-48ee-b078-04381f7c828f","841100b9-ee60-4537-9bcf-e30b2ba5e215","0a956d49-619a-4530-8e5e-8eac603ffc5e"]}},"required":["deviceId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["none","pairing","paired","expired"]},"code":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string"},"pairedAt":{"nullable":true,"type":"string"}},"required":["status","code","expiresAt","pairedAt"],"additionalProperties":false}}}}}}},"/v1/sync/push":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commands":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","minLength":1,"maxLength":100},"payload":{},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"deviceSeq":{"type":"integer","minimum":0,"maximum":9007199254740991},"actorMembershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actorStamp":{"type":"string","maxLength":200}},"required":["id","type","payload","occurredAt"]}}},"required":["commands"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["applied","rejected","needs_review","failed"]},"duplicate":{"type":"boolean"},"code":{"type":"string"},"message":{"type":"string"},"data":{"type":"object","additionalProperties":{}}},"required":["id","status","duplicate"],"additionalProperties":false}}},"required":["results"],"additionalProperties":false}}}}}}},"/v1/sync/pull":{"get":{"parameters":[{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"default":200,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"integer","minimum":0,"maximum":1000000},"in":"query","name":"waiting","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"oldest","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entity":{"type":"string"},"entityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"op":{"type":"string","enum":["upsert","delete"]},"data":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["seq","entity","entityId","op","data"],"additionalProperties":false}},"cursor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["changes","cursor","hasMore"],"additionalProperties":false}}}}}}},"/v1/sync/reviews":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"},"code":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"},"data":{"nullable":true,"type":"object","additionalProperties":{}},"payload":{},"occurredAt":{"type":"string"},"byUser":{"type":"string"},"registerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"registerName":{"nullable":true,"type":"string"},"customers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"archived":{"type":"boolean"}},"required":["id","name","email","phone","createdAt","archived"],"additionalProperties":false}}},"required":["commandId","type","code","message","data","payload","occurredAt","byUser","registerId","registerName","customers"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/sync/reviews/count":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}}}}},"/v1/sync/rejected":{"get":{"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"commandId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"},"what":{"type":"string"},"code":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"},"payload":{},"occurredAt":{"type":"string"},"byUser":{"type":"string"},"registerName":{"nullable":true,"type":"string"}},"required":["commandId","type","what","code","message","payload","occurredAt","byUser","registerName"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/sync/reviews/{commandId}/resolve":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":1000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"commandId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/billing":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"lock":{"type":"object","properties":{"state":{"type":"string","enum":["none","ok","free","trial","trial_ending","problem","locked","suspended","closed"]},"readOnly":{"type":"boolean"},"until":{"nullable":true,"type":"string"},"daysLeft":{"nullable":true,"type":"number"}},"required":["state","readOnly","until","daysLeft"],"additionalProperties":false},"plan":{"type":"object","properties":{"storeCents":{"type":"number"},"registersIncluded":{"type":"number"},"extraRegisterCents":{"type":"number"}},"required":["storeCents","registersIncluded","extraRegisterCents"],"additionalProperties":false},"quantities":{"type":"object","properties":{"stores":{"type":"number"},"registers":{"type":"number"},"billedStores":{"type":"number"},"extraRegisters":{"type":"number"}},"required":["stores","registers","billedStores","extraRegisters"],"additionalProperties":false},"monthly":{"type":"object","properties":{"subtotalCents":{"type":"number"},"totalCents":{"type":"number"}},"required":["subtotalCents","totalCents"],"additionalProperties":false},"account":{"nullable":true,"type":"object","properties":{"status":{"type":"string"},"trialEndsAt":{"nullable":true,"type":"string"},"currentPeriodEnd":{"nullable":true,"type":"string"},"cancelAt":{"nullable":true,"type":"string"},"card":{"nullable":true,"type":"object","properties":{"brand":{"type":"string"},"last4":{"type":"string"}},"required":["brand","last4"],"additionalProperties":false},"discount":{"nullable":true,"type":"object","properties":{"label":{"type":"string"},"endsAt":{"nullable":true,"type":"string"}},"required":["label","endsAt"],"additionalProperties":false},"comped":{"type":"boolean"},"compUntil":{"nullable":true,"type":"string"}},"required":["status","trialEndsAt","currentPeriodEnd","cancelAt","card","discount","comped","compUntil"],"additionalProperties":false},"address":{"nullable":true,"type":"object","properties":{"line1":{"type":"string"},"line2":{"nullable":true,"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}},"required":["line1","city","state","postalCode","country"],"additionalProperties":false},"tax":{"type":"object","properties":{"enabled":{"type":"boolean"},"active":{"type":"boolean"}},"required":["enabled","active"],"additionalProperties":false},"nextCharge":{"nullable":true,"type":"object","properties":{"at":{"type":"string"},"amountCents":{"type":"number"}},"required":["at","amountCents"],"additionalProperties":false}},"required":["enabled","lock","plan","quantities","monthly","account","address","tax","nextCharge"],"additionalProperties":false}}}}}}},"/v1/billing/invoices":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"nullable":true,"type":"string"},"status":{"type":"string"},"taxCents":{"type":"number"},"totalCents":{"type":"number"},"paidCents":{"type":"number"},"createdAt":{"type":"string"},"url":{"nullable":true,"type":"string"},"pdf":{"nullable":true,"type":"string"}},"required":["id","number","status","taxCents","totalCents","paidCents","createdAt","url","pdf"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/billing/card":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/billing/card/done":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"card":{"type":"boolean"}},"required":["card"],"additionalProperties":false}}}}}}},"/v1/billing/address":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"line1":{"type":"string","minLength":3,"maxLength":120},"line2":{"nullable":true,"type":"string","maxLength":120},"city":{"type":"string","minLength":2,"maxLength":80},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$"},"country":{"default":"US","type":"string","enum":["US"]}},"required":["line1","city","state","postalCode"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/billing/portal":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/announcements":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"nullable":true,"type":"string"},"level":{"type":"string","enum":["info","warning"]},"endsAt":{"type":"string"}},"required":["id","title","body","level","endsAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/support":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"grantedBy":{"type":"string"},"note":{"nullable":true,"type":"string"},"includeCosts":{"type":"boolean"}},"required":["id","createdAt","expiresAt","grantedBy","note","includeCosts"],"additionalProperties":false},"views":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"adminName":{"type":"string"},"path":{"type":"string"}},"required":["at","adminName","path"],"additionalProperties":false}},"contact":{"type":"string"}},"required":["grant","views","contact"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hours":{"anyOf":[{"type":"number","enum":[4]},{"type":"number","enum":[24]},{"type":"number","enum":[72]},{"type":"number","enum":[168]}]},"note":{"type":"string","maxLength":500},"includeCosts":{"default":false,"type":"boolean"}},"required":["hours"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"grantedBy":{"type":"string"},"note":{"nullable":true,"type":"string"},"includeCosts":{"type":"boolean"}},"required":["id","createdAt","expiresAt","grantedBy","note","includeCosts"],"additionalProperties":false}}}}}}},"/v1/support/end":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ended":{"type":"boolean"}},"required":["ended"],"additionalProperties":false}}}}}}},"/v1/help/tickets":{"get":{"parameters":[{"schema":{"default":"active","type":"string","enum":["active","closed","all"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"openedBy":{"type":"string"},"mine":{"type":"boolean"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"lastFrom":{"type":"string","enum":["store","wes"]},"unread":{"type":"boolean"}},"required":["id","number","subject","category","urgent","status","openedBy","mine","createdAt","lastMessageAt","lastFrom","unread"],"additionalProperties":false}},"seesAll":{"type":"boolean"}},"required":["data","seesAll"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":3,"maxLength":140},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"default":false,"type":"boolean"},"body":{"type":"string","minLength":1,"maxLength":10000},"page":{"type":"string","maxLength":300,"pattern":"^\\/[^?#\\s]*$"}},"required":["subject","category","body"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"openedBy":{"type":"string"},"mine":{"type":"boolean"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"lastFrom":{"type":"string","enum":["store","wes"]},"unread":{"type":"boolean"},"page":{"nullable":true,"type":"string"},"closedAt":{"nullable":true,"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"type":"string","enum":["store","wes"]},"authorName":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","width","height"],"additionalProperties":false}}},"required":["id","author","authorName","body","createdAt","files"],"additionalProperties":false}}},"required":["id","number","subject","category","urgent","status","openedBy","mine","createdAt","lastMessageAt","lastFrom","unread","page","closedAt","messages"],"additionalProperties":false},"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["ticket","messageId"],"additionalProperties":false}}}}}}},"/v1/help/unread":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"unread":{"type":"number"}},"required":["unread"],"additionalProperties":false}}}}}}},"/v1/help/tickets/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"openedBy":{"type":"string"},"mine":{"type":"boolean"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"lastFrom":{"type":"string","enum":["store","wes"]},"unread":{"type":"boolean"},"page":{"nullable":true,"type":"string"},"closedAt":{"nullable":true,"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"type":"string","enum":["store","wes"]},"authorName":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","width","height"],"additionalProperties":false}}},"required":["id","author","authorName","body","createdAt","files"],"additionalProperties":false}}},"required":["id","number","subject","category","urgent","status","openedBy","mine","createdAt","lastMessageAt","lastFrom","unread","page","closedAt","messages"],"additionalProperties":false}}}}}}},"/v1/help/tickets/{id}/messages":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["open"]}},"required":["messageId","status"],"additionalProperties":false}}}}}}},"/v1/help/tickets/{id}/close":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["closed"]}},"required":["status"],"additionalProperties":false}}}}}}},"/v1/help/tickets/{id}/messages/{messageId}/files":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","width","height"],"additionalProperties":false}}}}}}},"/v1/help/tickets/{id}/files/{fileId}":{"get":{"parameters":[{"schema":{"default":"large","type":"string","enum":["thumb","large"]},"in":"query","name":"size","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fileId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/export":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/business":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"details":{"type":"object","additionalProperties":{}},"terms":{"nullable":true,"type":"object","properties":{"acceptedAt":{"type":"string"},"by":{"type":"string"},"url":{"nullable":true,"type":"string"},"ip":{"nullable":true,"type":"string"}},"required":["acceptedAt","by","url","ip"],"additionalProperties":false},"termsUrl":{"nullable":true,"type":"string"},"termsPending":{"type":"boolean"}},"required":["name","details","terms","termsUrl","termsPending"],"additionalProperties":false}}}}}},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"nullable":true,"type":"string","maxLength":150},"ownerPhone":{"nullable":true,"type":"string","maxLength":40},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":200},"salesTaxPermit":{"nullable":true,"type":"string","maxLength":40},"ein":{"nullable":true,"type":"string"},"plannedStores":{"nullable":true,"type":"integer","minimum":1,"maximum":500},"plannedRegisters":{"nullable":true,"type":"integer","minimum":1,"maximum":5000},"sells":{"nullable":true,"maxItems":10,"type":"array","items":{"type":"string","enum":["fine_jewelry","bridal","fashion","watches","repairs","custom","estate","gold_buying","bullion","appraisals"]}},"currentSystem":{"nullable":true,"type":"string","maxLength":100},"heardFrom":{"nullable":true,"type":"string","maxLength":100},"name":{"type":"string","minLength":2,"maxLength":100}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/business/terms":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/credits":{"get":{"parameters":[{"schema":{"default":"all","type":"string","enum":["gift_card","store_credit","all"]},"in":"query","name":"kind","required":false},{"schema":{"default":"open","type":"string","enum":["open","all"]},"in":"query","name":"show","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["gift_card","store_credit"]},"codeLast4":{"nullable":true,"type":"string"},"customer":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"recipientName":{"nullable":true,"type":"string"},"balanceCents":{"type":"number"},"issuedAt":{"type":"string"},"lastUsedAt":{"nullable":true,"type":"string"}},"required":["id","kind","codeLast4","customer","recipientName","balanceCents","issuedAt","lastUsedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"summary":{"type":"object","properties":{"giftCardCents":{"type":"number"},"giftCards":{"type":"number"},"storeCreditCents":{"type":"number"},"storeCredits":{"type":"number"}},"required":["giftCardCents","giftCards","storeCreditCents","storeCredits"],"additionalProperties":false}},"required":["data","nextCursor","summary"],"additionalProperties":false}}}}}}},"/v1/credits/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/credits/{id}/adjust":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amountCents":{"type":"integer","minimum":-10000000,"maximum":10000000},"reason":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["store_credit"]}},"required":["amountCents","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/credits/{id}/email":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/house-accounts":{"get":{"parameters":[{"schema":{"default":"open","type":"string","enum":["open","owing","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limitCents":{"type":"integer","minimum":0,"maximum":100000000},"note":{"nullable":true,"type":"string","maxLength":300}},"required":["customerId"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/house-accounts/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limitCents":{"type":"integer","minimum":0,"maximum":100000000},"note":{"nullable":true,"type":"string","maxLength":300},"status":{"type":"string","enum":["open","closed"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/house-accounts/{id}/pay-link":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"},"code":{"nullable":true,"type":"string"}},"required":["url","message","code"],"additionalProperties":false}}}}}}},"/v1/house-accounts/{id}/statement":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/house-accounts/{id}/adjust":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amountCents":{"type":"integer","minimum":-100000000,"maximum":100000000},"reason":{"type":"string","minLength":2,"maxLength":200}},"required":["amountCents","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/commission-rates":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"string","enum":["person","category","repairs"]},"targetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bps":{"nullable":true,"type":"number"},"effectiveFrom":{"type":"string"},"createdAt":{"type":"string"},"by":{"nullable":true,"type":"string"}},"required":["id","scope","targetId","bps","effectiveFrom","createdAt","by"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","enum":["person","category","repairs"]},"targetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bps":{"nullable":true,"type":"integer","minimum":0,"maximum":10000},"effectiveFrom":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["scope","targetId","bps","effectiveFrom"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"string","enum":["person","category","repairs"]},"targetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bps":{"nullable":true,"type":"number"},"effectiveFrom":{"type":"string"},"createdAt":{"type":"string"},"by":{"nullable":true,"type":"string"}},"required":["id","scope","targetId","bps","effectiveFrom","createdAt","by"],"additionalProperties":false}}}}}}},"/v1/reports/commissions":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"membershipId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"people":{"type":"array","items":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"rateBps":{"type":"number"},"saleCount":{"type":"number"},"salesCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"commissionCents":{"type":"number"}},"required":["membershipId","name","rateBps","saleCount","salesCents","returnsCents","netCents","commissionCents"],"additionalProperties":false}},"totals":{"type":"object","properties":{"salesCents":{"type":"number"},"returnsCents":{"type":"number"},"netCents":{"type":"number"},"commissionCents":{"type":"number"}},"required":["salesCents","returnsCents","netCents","commissionCents"],"additionalProperties":false},"lines":{"nullable":true,"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"kind":{"type":"string","enum":["sale","return"]},"saleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptNumber":{"type":"string"},"returnId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"returnNumber":{"nullable":true,"type":"string"},"title":{"type":"string"},"shareBps":{"type":"number"},"creditedCents":{"type":"number"},"rateBps":{"type":"number"},"commissionCents":{"type":"number"}},"required":["day","kind","saleId","receiptNumber","returnId","returnNumber","title","shareBps","creditedCents","rateBps","commissionCents"],"additionalProperties":false}}},"required":["people","totals","lines"],"additionalProperties":false}}}}}}},"/v1/payouts":{"get":{"parameters":[{"schema":{"default":"owed","type":"string","enum":["owed","paid","canceled","all"]},"in":"query","name":"status","required":false},{"schema":{"default":"all","type":"string","enum":["memo","consignment","all"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["memo","consignment"]},"status":{"type":"string","enum":["owed","paid","canceled"]},"item":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tag":{"type":"string"},"title":{"type":"string"}},"required":["id","tag","title"],"additionalProperties":false},"sale":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptNumber":{"type":"string"},"occurredAt":{"type":"string"}},"required":["id","receiptNumber","occurredAt"],"additionalProperties":false},"party":{"nullable":true,"type":"object","properties":{"kind":{"type":"string","enum":["vendor","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["kind","id","name"],"additionalProperties":false},"saleNetCents":{"type":"number"},"amountCents":{"type":"number"},"paidAt":{"nullable":true,"type":"string"},"paidBy":{"nullable":true,"type":"string"},"method":{"nullable":true,"type":"string"},"reference":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"},"canceledReason":{"nullable":true,"type":"string"}},"required":["id","kind","status","item","sale","party","saleNetCents","amountCents","paidAt","paidBy","method","reference","note","canceledReason"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"owed":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["memo","consignment"]},"partyId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"count":{"type":"number"},"amountCents":{"type":"number"}},"required":["kind","partyId","name","count","amountCents"],"additionalProperties":false}}},"required":["data","nextCursor","owed"],"additionalProperties":false}}}}}}},"/v1/payouts/pay":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"method":{"type":"string","enum":["check","cash","transfer","store_credit","other"]},"reference":{"nullable":true,"type":"string","maxLength":80},"note":{"nullable":true,"type":"string","maxLength":300}},"required":["ids","method"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"paid":{"type":"number"},"amountCents":{"type":"number"}},"required":["paid","amountCents"],"additionalProperties":false}}}}}}},"/v1/memos":{"get":{"parameters":[{"schema":{"default":"open","type":"string","enum":["open","overdue","closed","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"today","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"status":{"type":"string","enum":["open","closed"]},"occurredAt":{"type":"string"},"dueDate":{"type":"string"},"locationName":{"type":"string"},"customerName":{"nullable":true,"type":"string"},"customerPhone":{"nullable":true,"type":"string"},"createdBy":{"type":"string"},"out":{"type":"number"},"outCents":{"type":"number"},"lineCount":{"type":"number"},"firstTitle":{"type":"string"},"issueCount":{"type":"number"}},"required":["id","number","status","occurredAt","dueDate","locationName","customerName","customerPhone","createdBy","out","outCents","lineCount","firstTitle","issueCount"],"additionalProperties":false}},"counts":{"type":"object","properties":{"open":{"type":"number"},"overdue":{"type":"number"},"outCents":{"type":"number"}},"required":["open","overdue","outCents"],"additionalProperties":false}},"required":["data","counts"],"additionalProperties":false}}}}}}},"/v1/memos/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/metal-prices":{"get":{"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"prices":{"type":"object","properties":{"gold":{"type":"integer","minimum":1,"maximum":100000000},"silver":{"type":"integer","minimum":1,"maximum":100000000},"platinum":{"type":"integer","minimum":1,"maximum":100000000},"palladium":{"type":"integer","minimum":1,"maximum":100000000}}}},"required":["day","prices"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buys":{"get":{"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"locationId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"customerId","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"occurredAt":{"type":"string"},"locationName":{"type":"string"},"customer":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"sellerId":{"type":"string"},"createdBy":{"type":"string"},"totalCents":{"type":"number"},"scrapCount":{"type":"number"},"pieceCount":{"type":"number"},"methods":{"type":"array","items":{"type":"string"}},"holdUntil":{"nullable":true,"type":"string"},"saleId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issueCount":{"type":"number"}},"required":["id","number","occurredAt","locationName","customer","sellerId","createdBy","totalCents","scrapCount","pieceCount","methods","holdUntil","saleId","issueCount"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"totals":{"type":"object","properties":{"count":{"type":"number"},"totalCents":{"type":"number"},"cashCents":{"type":"number"}},"required":["count","totalCents","cashCents"],"additionalProperties":false}},"required":["data","nextCursor","totals"],"additionalProperties":false}}}}}}},"/v1/buys/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/scrap":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/refinery-lots":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refiner":{"type":"string","minLength":1,"maxLength":120},"reference":{"nullable":true,"type":"string","maxLength":80},"note":{"nullable":true,"type":"string","maxLength":300},"today":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"lines":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"buyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lineNo":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["buyId","lineNo"]}}},"required":["refiner","today","lines"]}}}},"responses":{"200":{"description":"Default Response"}}},"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"refiner":{"type":"string"},"reference":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"},"sentAt":{"type":"string"},"sentBy":{"type":"string"},"receivedCents":{"nullable":true,"type":"number"},"receivedAt":{"nullable":true,"type":"string"},"lineCount":{"type":"number"},"weightG":{"type":"number"},"paidCents":{"type":"number"}},"required":["id","refiner","reference","note","sentAt","sentBy","receivedCents","receivedAt","lineCount","weightG","paidCents"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/v1/refinery-lots/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/refinery-lots/{id}/received":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receivedCents":{"type":"integer","minimum":0,"maximum":1000000000},"note":{"nullable":true,"type":"string","maxLength":300}},"required":["receivedCents"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/messaging":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/messaging/domain":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","maxLength":253},"fromLocal":{"default":"hello","type":"string","maxLength":40}},"required":["domain"]}}}},"responses":{"200":{"description":"Default Response"}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromLocal":{"type":"string","maxLength":40}},"required":["fromLocal"]}}}},"responses":{"200":{"description":"Default Response"}}},"delete":{"responses":{"200":{"description":"Default Response"}}}},"/v1/messaging/domain/check":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/v1/messaging/test":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms"]},"phone":{"type":"string","maxLength":40},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"automationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["channel"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/messages":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sales/{id}/email-receipt":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["to"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customer-lists/preview":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"type":"object","properties":{"spentMinCents":{"nullable":true,"type":"integer","minimum":0,"maximum":100000000},"boughtWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"notBoughtDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"categoryIds":{"nullable":true,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"birthdayMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"anniversaryMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"metals":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"stones":{"nullable":true,"maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"newWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}}}},"required":["filters"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/customer-lists":{"get":{"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"filters":{"type":"object","properties":{"spentMinCents":{"nullable":true,"type":"integer","minimum":0,"maximum":100000000},"boughtWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"notBoughtDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"categoryIds":{"nullable":true,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"birthdayMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"anniversaryMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"metals":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"stones":{"nullable":true,"maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"newWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}}}},"required":["name","filters"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/customer-lists/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"filters":{"type":"object","properties":{"spentMinCents":{"nullable":true,"type":"integer","minimum":0,"maximum":100000000},"boughtWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"notBoughtDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"categoryIds":{"nullable":true,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"birthdayMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"anniversaryMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"metals":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"stones":{"nullable":true,"maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"newWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}}},"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns":{"get":{"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"channel":{"type":"string","enum":["email","sms"]},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filters":{"type":"object","properties":{"spentMinCents":{"nullable":true,"type":"integer","minimum":0,"maximum":100000000},"boughtWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"notBoughtDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"categoryIds":{"nullable":true,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"birthdayMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"anniversaryMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"metals":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"stones":{"nullable":true,"maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"newWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}}},"subject":{"nullable":true,"type":"string","maxLength":150},"body":{"type":"string","minLength":1,"maxLength":5000},"design":{"type":"object","properties":{"hero":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"]},"itemIds":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"button":{"nullable":true,"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500,"format":"uri"}},"required":["label","url"]}}},"offerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","channel","body"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"channel":{"type":"string","enum":["email","sms"]},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filters":{"type":"object","properties":{"spentMinCents":{"nullable":true,"type":"integer","minimum":0,"maximum":100000000},"boughtWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"notBoughtDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"categoryIds":{"nullable":true,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"birthdayMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"anniversaryMonth":{"nullable":true,"anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"string","enum":["this","next"]}]},"metals":{"nullable":true,"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"stones":{"nullable":true,"maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"newWithinDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}}},"subject":{"nullable":true,"type":"string","maxLength":150},"body":{"type":"string","minLength":1,"maxLength":5000},"design":{"type":"object","properties":{"hero":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"]},"itemIds":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"button":{"nullable":true,"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500,"format":"uri"}},"required":["label","url"]}}},"offerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/audience":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/send":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/schedule":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["at"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/unschedule":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/preview":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/cancel":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/campaigns/{id}/resume":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/offers":{"get":{"parameters":[{"schema":{"default":false,"type":"boolean"},"in":"query","name":"ended","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"code":{"nullable":true,"type":"string","maxLength":24},"codePrefix":{"type":"string","minLength":2,"maxLength":8},"kind":{"type":"string","enum":["percent","amount"]},"value":{"type":"integer","minimum":1,"maximum":10000000},"minSpendCents":{"default":0,"type":"integer","minimum":0,"maximum":100000000},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"codeDays":{"nullable":true,"type":"integer","minimum":1,"maximum":365},"perCustomer":{"nullable":true,"type":"integer","minimum":1,"maximum":100}},"required":["name","kind","value"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/offers/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"code":{"nullable":true,"type":"string","maxLength":24},"codePrefix":{"type":"string","minLength":2,"maxLength":8},"kind":{"type":"string","enum":["percent","amount"]},"value":{"type":"integer","minimum":1,"maximum":10000000},"minSpendCents":{"default":0,"type":"integer","minimum":0,"maximum":100000000},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"codeDays":{"nullable":true,"type":"integer","minimum":1,"maximum":365},"perCustomer":{"nullable":true,"type":"integer","minimum":1,"maximum":100},"ended":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/automations":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/automations/{id}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"sendEmail":{"type":"boolean"},"sendText":{"type":"boolean"},"days":{"nullable":true,"type":"integer","minimum":0,"maximum":730},"minSpendCents":{"type":"integer","minimum":0,"maximum":100000000},"subject":{"type":"string","minLength":1,"maxLength":150},"body":{"type":"string","minLength":1,"maxLength":5000},"textBody":{"type":"string","minLength":1,"maxLength":600},"design":{"type":"object","properties":{"hero":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"]},"itemIds":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"button":{"nullable":true,"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500,"format":"uri"}},"required":["label","url"]}}},"offerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/automations/{id}/preview":{"get":{"parameters":[{"schema":{"default":"email","type":"string","enum":["email","sms"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/marketing/preview":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms"]},"subject":{"default":"","type":"string","maxLength":150},"body":{"type":"string","maxLength":5000},"design":{"type":"object","properties":{"hero":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"]},"itemIds":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"button":{"nullable":true,"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500,"format":"uri"}},"required":["label","url"]}}},"offerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewButton":{"type":"boolean"}},"required":["channel","body"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/marketing/images":{"post":{"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"],"additionalProperties":false}}}}}}},"/v1/marketing/settings":{"get":{"responses":{"200":{"description":"Default Response"}}},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emailLogo":{"nullable":true,"type":"object","properties":{"keyBase":{"type":"string","maxLength":200},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keyBase","width","height"]},"emailAccent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"reviewUrl":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"string","enum":[""]}]},"attributionDays":{"type":"integer","minimum":1,"maximum":60},"rewardsEnabled":{"type":"boolean"},"rewardEveryCents":{"type":"integer","minimum":1000,"maximum":100000000},"rewardCents":{"type":"integer","minimum":100,"maximum":10000000},"pointsEnabled":{"type":"boolean"},"pointsPerDollar":{"type":"integer","minimum":1,"maximum":100},"pointsSince":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"pointsExpireMonths":{"type":"integer","minimum":0,"maximum":60},"pointsRewards":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"points":{"type":"integer","minimum":1,"maximum":10000000},"percentBps":{"type":"integer","minimum":1,"maximum":10000},"capCents":{"nullable":true,"type":"integer","minimum":1,"maximum":100000000}},"required":["id","points","percentBps","capCents"]}}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/marketing/results":{"get":{"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":400},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/rewards":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/points":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/points/adjust":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"points":{"type":"integer","minimum":-10000000,"maximum":10000000},"reason":{"type":"string","minLength":3,"maxLength":200}},"required":["points","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/customers/{id}/offers":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/texting-request":{"get":{"responses":{"200":{"description":"Default Response"}}},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"details":{"type":"object","properties":{"legalName":{"type":"string","minLength":2,"maxLength":100},"ein":{"type":"string"},"legalForm":{"type":"string","enum":["PRIVATE_PROFIT","NOT_FOR_PROFIT"]},"dba":{"nullable":true,"type":"string","minLength":0,"maxLength":100},"street":{"type":"string","minLength":2,"maxLength":100},"city":{"type":"string","minLength":2,"maxLength":60},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"zip":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$"},"website":{"type":"string","maxLength":300},"privacyUrl":{"type":"string","maxLength":300},"termsUrl":{"type":"string","maxLength":300},"verifyEmail":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"supportEmail":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"supportPhone":{"type":"string"},"marketing":{"type":"boolean"},"websiteReady":{"type":"boolean","enum":[true]},"askFirst":{"type":"boolean","enum":[true]},"agreeFees":{"type":"boolean","enum":[true]}},"required":["legalName","ein","legalForm","street","city","state","zip","website","privacyUrl","termsUrl","verifyEmail","supportEmail","supportPhone","marketing","websiteReady","askFirst","agreeFees"]}},"required":["details"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/texting-request/wording":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dba":{"nullable":true,"type":"string","maxLength":100},"supportPhone":{"nullable":true,"type":"string","maxLength":40},"supportEmail":{"nullable":true,"type":"string","maxLength":254},"marketing":{"type":"boolean"}},"required":["marketing"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/texting-request/withdraw":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/v1/texting/costs":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/texts/unread":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/texts":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/v1/texts/{phone}":{"get":{"parameters":[{"schema":{"type":"string","pattern":"^\\+1\\d{10}$"},"in":"path","name":"phone","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":320}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^\\+1\\d{10}$"},"in":"path","name":"phone","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/appraisals":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"customerId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appraisedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"title":{"type":"string","maxLength":150},"description":{"nullable":true,"type":"string","maxLength":3000},"metal":{"nullable":true,"type":"string","maxLength":40},"purity":{"nullable":true,"type":"string","maxLength":20},"weightG":{"nullable":true,"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100000},"measurements":{"nullable":true,"type":"string","maxLength":200},"stones":{"maxItems":60,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":40},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":10000},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":30},"measurements":{"nullable":true,"type":"string","maxLength":60},"certificate":{"nullable":true,"type":"string","maxLength":80}},"required":["type"]}},"valueCents":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000},"appraiserName":{"nullable":true,"type":"string","maxLength":80},"appraiserCredentials":{"nullable":true,"type":"string","maxLength":120},"notes":{"nullable":true,"type":"string","maxLength":3000},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["customerId"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/appraisals/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appraisedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"title":{"type":"string","minLength":1,"maxLength":150},"description":{"nullable":true,"type":"string","maxLength":3000},"metal":{"nullable":true,"type":"string","maxLength":40},"purity":{"nullable":true,"type":"string","maxLength":20},"weightG":{"nullable":true,"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100000},"measurements":{"nullable":true,"type":"string","maxLength":200},"stones":{"maxItems":60,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":40},"shape":{"nullable":true,"type":"string","maxLength":40},"count":{"default":1,"type":"integer","minimum":1,"maximum":10000},"carat":{"nullable":true,"type":"number","minimum":0,"maximum":10000},"color":{"nullable":true,"type":"string","maxLength":20},"clarity":{"nullable":true,"type":"string","maxLength":20},"cut":{"nullable":true,"type":"string","maxLength":30},"measurements":{"nullable":true,"type":"string","maxLength":60},"certificate":{"nullable":true,"type":"string","maxLength":80}},"required":["type"]}},"valueCents":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000},"appraiserName":{"nullable":true,"type":"string","maxLength":80},"appraiserCredentials":{"nullable":true,"type":"string","maxLength":120},"notes":{"nullable":true,"type":"string","maxLength":3000},"locationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/appraisals/{id}/finalize":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/appraisals/{id}/revise":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/appraisals/{id}/photos":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/appraisals/{id}/photos/{n}":{"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"integer","minimum":0,"maximum":20},"in":"path","name":"n","required":true}],"responses":{"200":{"description":"Default Response"}}},"get":{"parameters":[{"schema":{"default":"large","type":"string","enum":["thumb","large","full"]},"in":"query","name":"size","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"integer","minimum":0,"maximum":20},"in":"path","name":"n","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/auth/signup/":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessName":{"type":"string","minLength":2,"maxLength":100},"name":{"type":"string","minLength":2,"maxLength":100},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"storeName":{"default":"Main Store","type":"string","minLength":1,"maxLength":100},"timezone":{"default":"America/New_York","type":"string","enum":["America/New_York","America/Chicago","America/Denver","America/Phoenix","America/Los_Angeles","America/Anchorage","Pacific/Honolulu"]},"address":{"type":"object","properties":{"line1":{"type":"string","minLength":3,"maxLength":120},"line2":{"nullable":true,"type":"string","maxLength":120},"city":{"type":"string","minLength":2,"maxLength":80},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$"},"country":{"default":"US","type":"string","enum":["US"]}},"required":["line1","city","state","postalCode"]},"details":{"type":"object","properties":{"legalName":{"nullable":true,"type":"string","maxLength":150},"ownerPhone":{"nullable":true,"type":"string","maxLength":40},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":200},"salesTaxPermit":{"nullable":true,"type":"string","maxLength":40},"ein":{"nullable":true,"type":"string"},"plannedStores":{"nullable":true,"type":"integer","minimum":1,"maximum":500},"plannedRegisters":{"nullable":true,"type":"integer","minimum":1,"maximum":5000},"sells":{"nullable":true,"maxItems":10,"type":"array","items":{"type":"string","enum":["fine_jewelry","bridal","fashion","watches","repairs","custom","estate","gold_buying","bullion","appraisals"]}},"currentSystem":{"nullable":true,"type":"string","maxLength":100},"heardFrom":{"nullable":true,"type":"string","maxLength":100}}},"acceptTerms":{"type":"boolean","enum":[true]}},"required":["businessName","name","email","address","details","acceptTerms"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/auth/signup/check":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"businessName":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"hasPassword":{"type":"boolean"}},"required":["businessName","name","email","hasPassword"],"additionalProperties":false}}}}}}},"/auth/signup/complete":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"password":{"type":"string","maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"businessName":{"type":"string"},"slug":{"type":"string"}},"required":["email","businessName","slug"],"additionalProperties":false}}}}}}},"/auth/signup/options":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"boolean"},"states":{"type":"array","items":{"type":"string"}},"timezones":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}}},"required":["open","states","timezones"],"additionalProperties":false}}}}}}},"/platform/auth/setup/peek":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"displayName":{"type":"string"}},"required":["email","displayName"],"additionalProperties":false}}}}}}},"/platform/auth/setup/password":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"password":{"type":"string","minLength":12,"maxLength":200}},"required":["token","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"},"otpauthUrl":{"type":"string"}},"required":["secret","otpauthUrl"],"additionalProperties":false}}}}}}},"/platform/auth/setup/confirm":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"code":{"type":"string","maxLength":10}},"required":["token","code"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"admin":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","support"]}},"required":["id","email","displayName","role"],"additionalProperties":false},"sessionExpiresAt":{"type":"string"}},"required":["admin","sessionExpiresAt"],"additionalProperties":false}}}}}}},"/platform/auth/login":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254},"password":{"type":"string","minLength":1,"maxLength":200}},"required":["email","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"challenge":{"type":"string"}},"required":["challenge"],"additionalProperties":false}}}}}}},"/platform/auth/code":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challenge":{"type":"string","minLength":20,"maxLength":200},"code":{"type":"string","maxLength":10}},"required":["challenge","code"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"admin":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","support"]}},"required":["id","email","displayName","role"],"additionalProperties":false},"sessionExpiresAt":{"type":"string"}},"required":["admin","sessionExpiresAt"],"additionalProperties":false}}}}}}},"/platform/client-config":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/platform/auth/logout":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/platform/me":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"admin":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","support"]}},"required":["id","email","displayName","role"],"additionalProperties":false}},"required":["admin"],"additionalProperties":false}}}}}}},"/platform/options":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"timezones":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"jurisdictions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}}},"required":["timezones","jurisdictions"],"additionalProperties":false}}}}}}},"/platform/businesses":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["trial","active","suspended","closed"]},"createdAt":{"type":"string"},"owner":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"hasPassword":{"type":"boolean"}},"required":["name","email","hasPassword"],"additionalProperties":false},"stores":{"type":"number"},"registers":{"type":"number"},"devices":{"type":"number"},"staff":{"type":"number"},"lastSeenAt":{"nullable":true,"type":"string"},"billing":{"type":"object","properties":{"state":{"type":"string","enum":["none","ok","free","trial","trial_ending","problem","locked","suspended","closed"]},"status":{"type":"string"},"trialEndsAt":{"nullable":true,"type":"string"},"hasCard":{"type":"boolean"},"comped":{"type":"boolean"},"discount":{"nullable":true,"type":"string"},"monthlyCents":{"type":"number"}},"required":["state","status","trialEndsAt","hasCard","comped","discount","monthlyCents"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"health":{"type":"object","properties":{"quietRegisters":{"type":"number"},"openReviews":{"type":"number"}},"required":["quietRegisters","openReviews"],"additionalProperties":false},"test":{"type":"boolean"},"eraseBy":{"nullable":true,"type":"string"}},"required":["id","name","slug","status","createdAt","owner","stores","registers","devices","staff","lastSeenAt","billing","tags","health","test","eraseBy"],"additionalProperties":false}},"totals":{"type":"object","properties":{"businesses":{"type":"number"},"trial":{"type":"number"},"active":{"type":"number"},"paying":{"type":"number"},"free":{"type":"number"},"attention":{"type":"number"},"mrrCents":{"type":"number"},"stores":{"type":"number"},"registers":{"type":"number"}},"required":["businesses","trial","active","paying","free","attention","mrrCents","stores","registers"],"additionalProperties":false},"billingEnabled":{"type":"boolean"}},"required":["data","totals","billingEnabled"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"ownerName":{"type":"string","minLength":1,"maxLength":100},"ownerEmail":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"storeName":{"type":"string","minLength":1,"maxLength":100},"storeCode":{"default":"S1","type":"string","pattern":"^[A-Za-z0-9]{1,6}$"},"timezone":{"type":"string","enum":["America/New_York","America/Chicago","America/Denver","America/Phoenix","America/Los_Angeles","America/Anchorage","Pacific/Honolulu"]},"taxJurisdiction":{"type":"string"},"address":{"type":"object","properties":{"line1":{"type":"string","minLength":3,"maxLength":120},"line2":{"nullable":true,"type":"string","maxLength":120},"city":{"type":"string","minLength":2,"maxLength":80},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$"},"country":{"default":"US","type":"string","enum":["US"]}},"required":["line1","city","state","postalCode"]},"details":{"type":"object","properties":{"legalName":{"nullable":true,"type":"string","maxLength":150},"ownerPhone":{"nullable":true,"type":"string","maxLength":40},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":200},"salesTaxPermit":{"nullable":true,"type":"string","maxLength":40},"ein":{"nullable":true,"type":"string"},"plannedStores":{"nullable":true,"type":"integer","minimum":1,"maximum":500},"plannedRegisters":{"nullable":true,"type":"integer","minimum":1,"maximum":5000},"sells":{"nullable":true,"maxItems":10,"type":"array","items":{"type":"string","enum":["fine_jewelry","bridal","fashion","watches","repairs","custom","estate","gold_buying","bullion","appraisals"]}},"currentSystem":{"nullable":true,"type":"string","maxLength":100},"heardFrom":{"nullable":true,"type":"string","maxLength":100}}},"test":{"default":false,"type":"boolean"}},"required":["name","ownerName","ownerEmail","storeName","timezone","taxJurisdiction"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"ownerStatus":{"type":"string","enum":["link","has_password","other_business"]},"ownerLink":{"nullable":true,"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string"}},"required":["token","expiresAt"],"additionalProperties":false},"billing":{"type":"string","enum":["trial","off","failed"]},"emailed":{"type":"boolean"}},"required":["id","slug","ownerStatus","ownerLink","billing","emailed"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"business":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["trial","active","suspended","closed"]},"createdAt":{"type":"string"},"owner":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"hasPassword":{"type":"boolean"}},"required":["name","email","hasPassword"],"additionalProperties":false},"stores":{"type":"number"},"registers":{"type":"number"},"devices":{"type":"number"},"staff":{"type":"number"},"lastSeenAt":{"nullable":true,"type":"string"},"billing":{"type":"object","properties":{"state":{"type":"string","enum":["none","ok","free","trial","trial_ending","problem","locked","suspended","closed"]},"status":{"type":"string"},"trialEndsAt":{"nullable":true,"type":"string"},"hasCard":{"type":"boolean"},"comped":{"type":"boolean"},"discount":{"nullable":true,"type":"string"},"monthlyCents":{"type":"number"}},"required":["state","status","trialEndsAt","hasCard","comped","discount","monthlyCents"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"health":{"type":"object","properties":{"quietRegisters":{"type":"number"},"openReviews":{"type":"number"}},"required":["quietRegisters","openReviews"],"additionalProperties":false},"test":{"type":"boolean"},"eraseBy":{"nullable":true,"type":"string"}},"required":["id","name","slug","status","createdAt","owner","stores","registers","devices","staff","lastSeenAt","billing","tags","health","test","eraseBy"],"additionalProperties":false},"stores":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"code":{"type":"string"},"timezone":{"type":"string"},"taxJurisdiction":{"type":"string"},"registers":{"type":"number"},"devices":{"type":"number"},"lastSeenAt":{"nullable":true,"type":"string"}},"required":["id","name","code","timezone","taxJurisdiction","registers","devices","lastSeenAt"],"additionalProperties":false}},"activity":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string"},"by":{"nullable":true,"type":"string"},"businessId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"data":{"nullable":true,"type":"object","additionalProperties":{}},"at":{"type":"string"}},"required":["id","action","by","businessId","data","at"],"additionalProperties":false}},"billing":{"type":"object","properties":{"enabled":{"type":"boolean"},"status":{"type":"string"},"stripeUrl":{"nullable":true,"type":"string"},"trialEndsAt":{"nullable":true,"type":"string"},"currentPeriodEnd":{"nullable":true,"type":"string"},"problemSince":{"nullable":true,"type":"string"},"card":{"nullable":true,"type":"string"},"discount":{"nullable":true,"type":"object","properties":{"label":{"type":"string"},"endsAt":{"nullable":true,"type":"string"}},"required":["label","endsAt"],"additionalProperties":false},"comped":{"type":"boolean"},"compReason":{"nullable":true,"type":"string"},"compUntil":{"nullable":true,"type":"string"},"billed":{"type":"object","properties":{"stores":{"type":"number"},"extraRegisters":{"type":"number"}},"required":["stores","extraRegisters"],"additionalProperties":false},"shouldBill":{"type":"object","properties":{"stores":{"type":"number"},"extraRegisters":{"type":"number"}},"required":["stores","extraRegisters"],"additionalProperties":false},"monthly":{"type":"object","properties":{"subtotalCents":{"type":"number"},"totalCents":{"type":"number"}},"required":["subtotalCents","totalCents"],"additionalProperties":false},"address":{"nullable":true,"type":"object","properties":{"line1":{"type":"string"},"line2":{"nullable":true,"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}},"required":["line1","city","state","postalCode","country"],"additionalProperties":false},"taxActive":{"type":"boolean"},"otherMode":{"type":"boolean"}},"required":["enabled","status","stripeUrl","trialEndsAt","currentPeriodEnd","problemSince","card","discount","comped","compReason","compUntil","billed","shouldBill","monthly","address","taxActive","otherMode"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"roleName":{"type":"string"},"hasPassword":{"type":"boolean"},"otherBusiness":{"type":"boolean"},"archived":{"type":"boolean"},"joinedAt":{"type":"string"},"lastSignInAt":{"nullable":true,"type":"string"},"activeSessions":{"type":"number"}},"required":["userId","name","email","role","roleName","hasPassword","otherBusiness","archived","joinedAt","lastSignInAt","activeSessions"],"additionalProperties":false}},"health":{"type":"object","properties":{"registers":{"type":"number"},"quietRegisters":{"type":"number"},"unpairedRegisters":{"type":"number"},"openReviews":{"type":"number"},"rejected7d":{"type":"number"},"lastSyncAt":{"nullable":true,"type":"string"}},"required":["registers","quietRegisters","unpairedRegisters","openReviews","rejected7d","lastSyncAt"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"by":{"type":"string"},"at":{"type":"string"}},"required":["id","body","by","at"],"additionalProperties":false}},"support":{"nullable":true,"type":"object","properties":{"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"grantedBy":{"type":"string"},"note":{"nullable":true,"type":"string"},"includeCosts":{"type":"boolean"},"lastViewAt":{"nullable":true,"type":"string"}},"required":["createdAt","expiresAt","grantedBy","note","includeCosts","lastViewAt"],"additionalProperties":false},"texting":{"type":"object","properties":{"smsNumber":{"nullable":true,"type":"string"},"smsMarketing":{"type":"boolean"},"note":{"nullable":true,"type":"string"}},"required":["smsNumber","smsMarketing","note"],"additionalProperties":false},"erase":{"nullable":true,"type":"object","properties":{"receivedOn":{"type":"string"},"deadline":{"type":"string"},"fromWhom":{"type":"string"},"note":{"nullable":true,"type":"string"},"by":{"type":"string"},"at":{"type":"string"}},"required":["receivedOn","deadline","fromWhom","note","by","at"],"additionalProperties":false},"setup":{"type":"object","properties":{"done":{"type":"number"},"total":{"type":"number"},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"done":{"type":"boolean"},"optional":{"type":"boolean"},"detail":{"type":"string"}},"required":["key","label","done","optional","detail"],"additionalProperties":false}}},"required":["done","total","steps"],"additionalProperties":false},"profile":{"type":"object","additionalProperties":{}},"plan":{"type":"object","properties":{"storeCents":{"type":"number"},"registersIncluded":{"type":"number"},"extraRegisterCents":{"type":"number"},"trialDays":{"type":"number"},"graceDays":{"type":"number"}},"required":["storeCents","registersIncluded","extraRegisterCents","trialDays","graceDays"],"additionalProperties":false}},"required":["business","stores","activity","billing","people","health","notes","support","texting","erase","setup","profile","plan"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/owner-link":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string"},"emailed":{"type":"boolean"}},"required":["token","expiresAt","emailed"],"additionalProperties":false}}}}}}},"/platform/activity":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"before","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string"},"by":{"nullable":true,"type":"string"},"businessId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"data":{"nullable":true,"type":"object","additionalProperties":{}},"at":{"type":"string"}},"required":["id","action","by","businessId","data","at"],"additionalProperties":false}},"next":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["data","next"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/start":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trialDays":{"type":"integer","minimum":0,"maximum":365}},"required":["trialDays"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/trial":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"until":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["until"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/discount":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["percent","amount"]},"value":{"type":"number","minimum":0,"exclusiveMinimum":true},"duration":{"type":"string","enum":["once","repeating","forever"]},"months":{"type":"integer","minimum":1,"maximum":36}},"required":["kind","value","duration"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/comp":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"months":{"nullable":true,"type":"integer","minimum":1,"maximum":36},"reason":{"type":"string","minLength":3,"maxLength":500}},"required":["months","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/discount/remove":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/details":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"nullable":true,"type":"string","maxLength":150},"ownerPhone":{"nullable":true,"type":"string","maxLength":40},"phone":{"nullable":true,"type":"string","maxLength":40},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":200},"salesTaxPermit":{"nullable":true,"type":"string","maxLength":40},"ein":{"nullable":true,"type":"string"},"plannedStores":{"nullable":true,"type":"integer","minimum":1,"maximum":500},"plannedRegisters":{"nullable":true,"type":"integer","minimum":1,"maximum":5000},"sells":{"nullable":true,"maxItems":10,"type":"array","items":{"type":"string","enum":["fine_jewelry","bridal","fashion","watches","repairs","custom","estate","gold_buying","bullion","appraisals"]}},"currentSystem":{"nullable":true,"type":"string","maxLength":100},"heardFrom":{"nullable":true,"type":"string","maxLength":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/support/open":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string"}},"required":["token","expiresAt"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/address":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"line1":{"type":"string","minLength":3,"maxLength":120},"line2":{"nullable":true,"type":"string","maxLength":120},"city":{"type":"string","minLength":2,"maxLength":80},"state":{"type":"string","enum":["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"postalCode":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$"},"country":{"default":"US","type":"string","enum":["US"]}},"required":["line1","city","state","postalCode"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/resync":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/billing/charge-now":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/test":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"test":{"type":"boolean"},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["test","code"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/erase-request":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receivedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"fromWhom":{"type":"string","minLength":3,"maxLength":200},"note":{"nullable":true,"type":"string","maxLength":1000}},"required":["receivedOn","fromWhom"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"receivedOn":{"type":"string"},"deadline":{"type":"string"},"fromWhom":{"type":"string"},"note":{"nullable":true,"type":"string"},"by":{"type":"string"},"at":{"type":"string"}},"required":["receivedOn","deadline","fromWhom","note","by","at"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/erase-request/withdraw":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":500}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/delete":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","minLength":1,"maxLength":100},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["confirm","code"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"rows":{"type":"number"},"people":{"type":"number"},"photos":{"type":"number"}},"required":["ok","rows","people","photos"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/status":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["suspend","reactivate","close"]},"reason":{"type":"string","minLength":3,"maxLength":500}},"required":["action","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/sign-out":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["userId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ended":{"type":"number"}},"required":["ended"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/notes":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":4000}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"by":{"type":"string"},"at":{"type":"string"}},"required":["id","body","by","at"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/texting":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"smsNumber":{"nullable":true,"type":"string"},"smsMarketing":{"type":"boolean"},"note":{"nullable":true,"type":"string","maxLength":300}},"required":["smsNumber","smsMarketing"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/tags":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"type":"string","pattern":"^[a-z0-9][a-z0-9 -]{0,23}$"}},"required":["tag"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/businesses/{id}/tags/remove":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"type":"string","pattern":"^[a-z0-9][a-z0-9 -]{0,23}$"}},"required":["tag"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/status":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"checkedAt":{"type":"string"},"warnings":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["bad","warn"]},"text":{"type":"string"},"businessId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["level","text","businessId"],"additionalProperties":false}},"release":{"type":"object","properties":{"environment":{"type":"string"},"commit":{"nullable":true,"type":"string"},"startedAt":{"type":"string"}},"required":["environment","commit","startedAt"],"additionalProperties":false},"database":{"type":"object","properties":{"bytes":{"type":"number"},"limitBytes":{"nullable":true,"type":"number"}},"required":["bytes","limitBytes"],"additionalProperties":false},"services":{"type":"object","properties":{"email":{"type":"string"},"stripe":{"type":"string","enum":["live","sandbox","off"]},"square":{"type":"string","enum":["production","sandbox","off"]},"texting":{"type":"boolean"},"sentry":{"type":"boolean"},"signups":{"type":"boolean"},"legalLinks":{"type":"boolean"}},"required":["email","stripe","square","texting","sentry","signups","legalLinks"],"additionalProperties":false},"messages":{"type":"object","properties":{"days":{"type":"number"},"email":{"type":"object","properties":{"sent":{"type":"number"},"failed":{"type":"number"},"stuck":{"type":"number"},"bounces":{"type":"number"},"complaints":{"type":"number"},"bounceRate":{"nullable":true,"type":"number"},"complaintRate":{"nullable":true,"type":"number"}},"required":["sent","failed","stuck","bounces","complaints","bounceRate","complaintRate"],"additionalProperties":false},"sms":{"type":"object","properties":{"sent":{"type":"number"},"failed":{"type":"number"},"stuck":{"type":"number"},"bounces":{"type":"number"},"complaints":{"type":"number"},"bounceRate":{"nullable":true,"type":"number"},"complaintRate":{"nullable":true,"type":"number"}},"required":["sent","failed","stuck","bounces","complaints","bounceRate","complaintRate"],"additionalProperties":false},"businesses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"failed":{"type":"number"},"stuck":{"type":"number"},"bounces":{"type":"number"},"complaints":{"type":"number"},"sent":{"type":"number"}},"required":["id","name","failed","stuck","bounces","complaints","sent"],"additionalProperties":false}}},"required":["days","email","sms","businesses"],"additionalProperties":false},"registers":{"type":"object","properties":{"quiet":{"type":"number"},"unpaired":{"type":"number"},"refused7d":{"type":"number"},"openReviews":{"type":"number"},"businesses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"quiet":{"type":"number"},"refused7d":{"type":"number"},"openReviews":{"type":"number"}},"required":["id","name","quiet","refused7d","openReviews"],"additionalProperties":false}}},"required":["quiet","unpaired","refused7d","openReviews","businesses"],"additionalProperties":false},"erase":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"receivedOn":{"type":"string"},"deadline":{"type":"string"},"closed":{"type":"boolean"}},"required":["id","name","receivedOn","deadline","closed"],"additionalProperties":false}}},"required":["checkedAt","warnings","release","database","services","messages","registers","erase"],"additionalProperties":false}}}}}}},"/platform/announcements":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"nullable":true,"type":"string"},"level":{"type":"string","enum":["info","warning"]},"businessId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessName":{"nullable":true,"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"by":{"type":"string"},"state":{"type":"string","enum":["scheduled","on","ended"]}},"required":["id","title","body","level","businessId","businessName","startsAt","endsAt","by","state"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":120},"body":{"type":"string","maxLength":600},"level":{"default":"info","type":"string","enum":["info","warning"]},"businessId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["title","endsAt"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}}}}},"/platform/announcements/{id}/end":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/revenue":{"get":{"parameters":[{"schema":{"default":12,"type":"integer","minimum":3,"maximum":24},"in":"query","name":"months","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"months":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"revenueCents":{"type":"number"},"taxCents":{"type":"number"},"invoices":{"type":"number"},"trialsStarted":{"type":"number"},"converted":{"type":"number"},"lost":{"type":"number"}},"required":["month","revenueCents","taxCents","invoices","trialsStarted","converted","lost"],"additionalProperties":false}},"stripe":{"type":"string","enum":["ok","off","error"]},"stripeError":{"nullable":true,"type":"string"}},"required":["months","stripe","stripeError"],"additionalProperties":false}}}}}}},"/platform/tickets":{"get":{"parameters":[{"schema":{"default":"open","type":"string","enum":["open","waiting","closed","all"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"businessId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessName":{"type":"string"},"businessSlug":{"type":"string"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"openedByName":{"type":"string"},"openedByEmail":{"type":"string"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"lastFrom":{"type":"string","enum":["store","wes"]},"messages":{"type":"number"},"files":{"type":"number"},"unread":{"type":"boolean"}},"required":["id","businessId","businessName","businessSlug","number","subject","category","urgent","status","openedByName","openedByEmail","createdAt","lastMessageAt","lastFrom","messages","files","unread"],"additionalProperties":false}},"counts":{"type":"object","properties":{"open":{"type":"number"},"waiting":{"type":"number"},"unread":{"type":"number"},"urgent":{"type":"number"}},"required":["open","waiting","unread","urgent"],"additionalProperties":false}},"required":["data","counts"],"additionalProperties":false}}}}}}},"/platform/tickets/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessName":{"type":"string"},"businessSlug":{"type":"string"},"businessStatus":{"type":"string"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"page":{"nullable":true,"type":"string"},"openedByName":{"type":"string"},"openedByEmail":{"type":"string"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"closedAt":{"nullable":true,"type":"string"},"storeReadAt":{"nullable":true,"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"type":"string","enum":["store","wes"]},"authorName":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","width","height"],"additionalProperties":false}}},"required":["id","author","authorName","body","createdAt","files"],"additionalProperties":false}}},"required":["id","businessId","businessName","businessSlug","businessStatus","number","subject","category","urgent","status","page","openedByName","openedByEmail","createdAt","lastMessageAt","closedAt","storeReadAt","messages"],"additionalProperties":false}}}}}}},"/platform/tickets/{id}/reply":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000},"status":{"default":"waiting","type":"string","enum":["waiting","closed"]}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessName":{"type":"string"},"businessSlug":{"type":"string"},"businessStatus":{"type":"string"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"page":{"nullable":true,"type":"string"},"openedByName":{"type":"string"},"openedByEmail":{"type":"string"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"closedAt":{"nullable":true,"type":"string"},"storeReadAt":{"nullable":true,"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"type":"string","enum":["store","wes"]},"authorName":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","width","height"],"additionalProperties":false}}},"required":["id","author","authorName","body","createdAt","files"],"additionalProperties":false}}},"required":["id","businessId","businessName","businessSlug","businessStatus","number","subject","category","urgent","status","page","openedByName","openedByEmail","createdAt","lastMessageAt","closedAt","storeReadAt","messages"],"additionalProperties":false},"emailed":{"type":"boolean"}},"required":["ticket","emailed"],"additionalProperties":false}}}}}}},"/platform/tickets/{id}/status":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","waiting","closed"]}},"required":["status"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"businessName":{"type":"string"},"businessSlug":{"type":"string"},"businessStatus":{"type":"string"},"number":{"type":"number"},"subject":{"type":"string"},"category":{"type":"string","enum":["problem","question","billing","idea"]},"urgent":{"type":"boolean"},"status":{"type":"string","enum":["open","waiting","closed"]},"page":{"nullable":true,"type":"string"},"openedByName":{"type":"string"},"openedByEmail":{"type":"string"},"createdAt":{"type":"string"},"lastMessageAt":{"type":"string"},"closedAt":{"nullable":true,"type":"string"},"storeReadAt":{"nullable":true,"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"type":"string","enum":["store","wes"]},"authorName":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","width","height"],"additionalProperties":false}}},"required":["id","author","authorName","body","createdAt","files"],"additionalProperties":false}}},"required":["id","businessId","businessName","businessSlug","businessStatus","number","subject","category","urgent","status","page","openedByName","openedByEmail","createdAt","lastMessageAt","closedAt","storeReadAt","messages"],"additionalProperties":false}}}}}}},"/platform/tickets/{id}/files/{fileId}":{"get":{"parameters":[{"schema":{"default":"large","type":"string","enum":["thumb","large"]},"in":"query","name":"size","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fileId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/platform/texting":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/platform/businesses/{id}/texting-charges":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/platform/businesses/{id}/texting-charges/{chargeId}/retry":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"chargeId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/platform/texting/bill":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string","pattern":"^20\\d\\d-(0[1-9]|1[0-2])$"}},"required":["period"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/platform/businesses/{id}/texting-request":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandRegistrationId":{"nullable":true,"type":"string","pattern":"^registration-[A-Za-z0-9]{8,64}$"},"campaignRegistrationId":{"nullable":true,"type":"string","pattern":"^registration-[A-Za-z0-9]{8,64}$"},"phoneNumberId":{"nullable":true,"type":"string","pattern":"^phone-[A-Za-z0-9]{8,64}$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/platform/businesses/{id}/texting-request/check":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/platform/businesses/{id}/texting-request/return":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","minLength":5,"maxLength":1000}},"required":["note"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/platform/settings":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["secret","text","bool"]},"label":{"type":"string"},"hint":{"nullable":true,"type":"string"},"value":{"nullable":true,"anyOf":[{"type":"string"},{"type":"boolean"}]},"secretHint":{"nullable":true,"type":"string"},"source":{"type":"string","enum":["console","environment","default","none"]},"env":{"nullable":true,"type":"string"},"updatedAt":{"nullable":true,"type":"string"},"updatedBy":{"nullable":true,"type":"string"}},"required":["key","kind","label","hint","value","secretHint","source","env","updatedAt","updatedBy"],"additionalProperties":false}},"deployEnv":{"type":"string"},"stripe":{"type":"object","properties":{"connected":{"type":"boolean"},"mode":{"nullable":true,"type":"string","enum":["test","live"]},"webhookUrl":{"type":"string"},"lastEvent":{"nullable":true,"type":"object","properties":{"type":{"type":"string"},"at":{"type":"string"},"error":{"nullable":true,"type":"string"}},"required":["type","at","error"],"additionalProperties":false}},"required":["connected","mode","webhookUrl","lastEvent"],"additionalProperties":false},"email":{"type":"object","properties":{"ready":{"type":"boolean"},"driver":{"type":"string"},"tenantProblem":{"nullable":true,"type":"string"},"webhookUrl":{"type":"string"}},"required":["ready","driver","tenantProblem","webhookUrl"],"additionalProperties":false},"square":{"type":"object","properties":{"connected":{"type":"boolean"},"mode":{"nullable":true,"type":"string","enum":["sandbox","production"]},"redirectUrl":{"type":"string"}},"required":["connected","mode","redirectUrl"],"additionalProperties":false}},"required":["settings","deployEnv","stripe","email","square"],"additionalProperties":false}}}}}},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"boolean"}],"nullable":true}},"code":{"type":"string","maxLength":10}},"required":["changes"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["saved"],"additionalProperties":false}}}}}}},"/platform/settings/test/stripe":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"mode":{"nullable":true,"type":"string","enum":["test","live"]},"account":{"nullable":true,"type":"string"},"message":{"type":"string"}},"required":["ok","mode","account","message"],"additionalProperties":false}}}}}}},"/platform/settings/test/email":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["to"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/platform/settings/check/email":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"checks":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"state":{"type":"string","enum":["ok","warn","bad","unknown"]},"text":{"type":"string"}},"required":["key","label","state","text"],"additionalProperties":false}}},"required":["checks"],"additionalProperties":false}}}}}}},"/platform/admins":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","support"]},"setUp":{"type":"boolean"},"lastSignInAt":{"nullable":true,"type":"string"},"disabled":{"type":"boolean"}},"required":["id","email","displayName","role","setUp","lastSignInAt","disabled"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}}}}},"/platform/admins/{id}":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","support"]},"disabled":{"type":"boolean"},"code":{"type":"string","maxLength":10}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/webhooks/stripe":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/webhooks/aws":{"post":{"responses":{"200":{"description":"Default Response"}}}}}}