{"openapi":"3.1.0","info":{"title":"My API","description":"API with JWT Token Authorize and Conformance-ID Authorize","version":"1.0"},"paths":{"/auth/loginByPassword":{"post":{"tags":["auth"],"summary":"Login By Password","description":"{\n  \"user_name\": \"string\",\n  \"password\": \"string\"\n}","operationId":"login_by_password_auth_loginByPassword_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/loginVerifyMfa":{"post":{"tags":["auth"],"summary":"Login Verify Mfa","description":"{\n  \"challenge\": \"string\",\n  \"code\": \"string\"\n}","operationId":"login_verify_mfa_auth_loginVerifyMfa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/renew":{"post":{"tags":["auth"],"summary":"Renew","description":"input data is None","operationId":"renew_auth_renew_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/unlock":{"post":{"tags":["auth"],"summary":"Unlock","description":"{\"password\": \"string\"}","operationId":"unlock_auth_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/loginResendMfa":{"post":{"tags":["auth"],"summary":"Login Resend Mfa","description":"{\"challenge\": \"string\"}","operationId":"login_resend_mfa_auth_loginResendMfa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/registerphone":{"post":{"tags":["auth"],"summary":"Register Phone Number","description":"{\"phone_number\": \"string\"}","operationId":"register_phone_number_auth_registerphone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/loginByCode":{"post":{"tags":["auth"],"summary":"Login By Code","description":"{\n  \"phone_number\": \"string\",\n  \"code\": \"string\",\n  \"password\": \"str\",\n  \"email\":str\n}","operationId":"login_by_code_auth_loginByCode_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/resetpassword":{"post":{"tags":["auth"],"summary":"Register Phone Number","description":"{\"phone_number\": \"string\"}","operationId":"register_phone_number_auth_resetpassword_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/resetpasswordconfirm":{"post":{"tags":["auth"],"summary":"Login By Code","description":"{\n  \"phone_number\": \"string\",\n  \"code\": \"string\",\n  \"password\": \"str\"\n}","operationId":"login_by_code_auth_resetpasswordconfirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/unlockPasskeyOptions":{"post":{"tags":["auth"],"summary":"Unlock Passkey Options","description":"input data is None","operationId":"unlock_passkey_options_auth_unlockPasskeyOptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/auth/unlockPasskey":{"post":{"tags":["auth"],"summary":"Unlock Passkey","description":"{\"credential\": {}}","operationId":"unlock_passkey_auth_unlockPasskey_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user":{"post":{"tags":["User"],"summary":"Get All","description":"input data is None","operationId":"get_all_user_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/getbyid":{"post":{"tags":["User"],"summary":"Get By Id","description":"{\n  \"id\": 1\n}","operationId":"get_by_id_user_getbyid_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/create":{"post":{"tags":["User"],"summary":"Create","description":"{\n  \"phone_number\": \"string\",\n  \"user_name\": \"string\",\n  \"first_name\": \"string\",\n  \"last_name\": \"string\",\n  \"password\": \"string\",\n  \"email\": \"string\",\n}","operationId":"create_user_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/update":{"post":{"tags":["User"],"summary":"Update","description":"{\n  \"id\": int,\n  \"user_name\": \"string\",\n  \"first_name\": \"string\",\n  \"last_name\": \"string\",\n  \"email\": \"string\"\n}","operationId":"update_user_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/passwd":{"post":{"tags":["User"],"summary":"Change Password","description":"{\n  \"id\": 1,\n  \"password\": \"string\",\n  \"current_password\"\n}","operationId":"change_password_user_passwd_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/getcurrent":{"post":{"tags":["User"],"summary":"Get Current User","description":"input data is None","operationId":"get_current_user_user_getcurrent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/sendverificationemail":{"post":{"tags":["User"],"summary":"Send Verification Email","description":"{\n  \"phone_number\": str\n}","operationId":"send_verification_email_user_sendverificationemail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/reactivate":{"post":{"tags":["User"],"summary":"Send Verification Email","description":"{\n  \"token\": str\n}","operationId":"send_verification_email_user_reactivate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/mfa":{"post":{"tags":["User"],"summary":"Mfa Start","description":"{\n  \"enabled\": true\n}","operationId":"mfa_start_user_mfa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/mfaConfirm":{"post":{"tags":["User"],"summary":"Mfa Confirm","description":"{\n  \"enabled\": true,\n  \"challenge\": \"string\",\n  \"code\": \"string\"\n}","operationId":"mfa_confirm_user_mfaConfirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/mfaReset":{"post":{"tags":["User"],"summary":"Mfa Reset","description":"{\n  \"id\": 1\n}","operationId":"mfa_reset_user_mfaReset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/emailFix":{"post":{"tags":["User"],"summary":"Email Fix","description":"{\n  \"id\": 1,\n  \"email\": \"string\"\n}","operationId":"email_fix_user_emailFix_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/remindersOptOut":{"post":{"tags":["User"],"summary":"Reminders Opt Out","description":"{\"opt_out\": true|false}\n\nPricing follow-ups (2026-10-26): the signed-in customer's own \"Reminders from\nTeleScript\" switch. Own account only; no permission beyond being signed in,\nlike /getcurrent. Governs invitations such as \"we can now price a script we\ncouldn't before\" (invite_back_service); never order updates or the Fix D\nprice messages, which belong to an order the customer asked for.","operationId":"reminders_opt_out_user_remindersOptOut_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/trustedDevices":{"post":{"tags":["User"],"summary":"Trusted Devices","description":"input data is None","operationId":"trusted_devices_user_trustedDevices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/trustedDeviceRevoke":{"post":{"tags":["User"],"summary":"Trusted Device Revoke","description":"{\"id\": 1}","operationId":"trusted_device_revoke_user_trustedDeviceRevoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/passkeys":{"post":{"tags":["User"],"summary":"Passkeys","description":"input data is None","operationId":"passkeys_user_passkeys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/passkeyRegisterOptions":{"post":{"tags":["User"],"summary":"Passkey Register Options","description":"{\"password\": \"string, unless signed in within 5 minutes\"}","operationId":"passkey_register_options_user_passkeyRegisterOptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/passkeyRegister":{"post":{"tags":["User"],"summary":"Passkey Register","description":"{\"credential\": {}, \"label\": \"string\"}","operationId":"passkey_register_user_passkeyRegister_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user/passkeyRemove":{"post":{"tags":["User"],"summary":"Passkey Remove","description":"{\"id\": 1}","operationId":"passkey_remove_user_passkeyRemove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/prescription":{"post":{"tags":["prescription"],"summary":"Fetch Scid","description":"{\n  \"scid\": \"string\"\n}","operationId":"fetch_scid_prescription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/login":{"get":{"tags":["test"],"summary":"Login And Get Token","operationId":"login_and_get_token_test_login_get","parameters":[{"name":"user","in":"query","required":true,"schema":{"type":"string","title":"User"}},{"name":"passwd","in":"query","required":true,"schema":{"type":"string","title":"Passwd"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/last-lines":{"get":{"tags":["test"],"summary":"Get Last Lines","operationId":"get_last_lines_test_last_lines_get","parameters":[{"name":"count","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Count"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/summarize_for_test":{"get":{"tags":["test"],"summary":"Fetch Scid Tests","operationId":"fetch_scid_tests_test_summarize_for_test_get","parameters":[{"name":"scid","in":"query","required":true,"schema":{"type":"string","title":"Scid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/summarize":{"get":{"tags":["test"],"summary":"Fetch Scid Tests","operationId":"fetch_scid_tests_test_summarize_get","parameters":[{"name":"scid","in":"query","required":true,"schema":{"type":"string","title":"Scid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/fetch_item_general_real_data":{"get":{"tags":["test"],"summary":"Fetch Item General Test Real Data","operationId":"fetch_item_general_test_real_data_test_fetch_item_general_real_data_get","parameters":[{"name":"li_drug_name","in":"query","required":true,"schema":{"type":"string","title":"Li Drug Name"}},{"name":"med_strength","in":"query","required":true,"schema":{"type":"string","title":"Med Strength"}},{"name":"med_form","in":"query","required":true,"schema":{"type":"string","title":"Med Form"}},{"name":"prescribed_qty","in":"query","required":true,"schema":{"type":"integer","title":"Prescribed Qty"}},{"name":"pbs_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pbs Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/price_what_if":{"get":{"tags":["test"],"summary":"Price What If","description":"overrides = JSON {\"prescription\": {...}, \"medication\": {...}}; the\nmedication changes apply to every medicine on the script.","operationId":"price_what_if_test_price_what_if_get","parameters":[{"name":"scid","in":"query","required":true,"schema":{"type":"string","title":"Scid"}},{"name":"overrides","in":"query","required":false,"schema":{"type":"string","default":"{}","title":"Overrides"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/get_prescription_with_price":{"get":{"tags":["test"],"summary":"Prescription With Price","operationId":"prescription_with_price_test_get_prescription_with_price_get","parameters":[{"name":"scid","in":"query","required":true,"schema":{"type":"string","title":"Scid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/datetime":{"get":{"tags":["test"],"summary":"Get Datetime","operationId":"get_datetime_test_datetime_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/test/temp_order":{"get":{"tags":["test"],"summary":"Get Temp Order","operationId":"get_temp_order_test_temp_order_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/delivery_options":{"post":{"tags":["order"],"summary":"Delivery Options","description":"{\n             \"scid\": \"str\",\n             \"token\": \"str\",\n             \"address_id\": int|null,\n             \"items\": [{\"token\": \"str\"}]   # optional — the medicines chosen so far\n             }","operationId":"delivery_options_order_delivery_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/create":{"post":{"tags":["order"],"summary":"Create Order","description":"{ \n             \"scid\": \"str\",\n             \"token\":\"str\",\n             \"notification_type\":int,\n             \"items\":[\n                 {\n                     \"token\":\"str\",\n                     \"comment\":\"str\"\n                 }],\n             \"otc_items\":[ {\"id\": int, \"qty\": int} ]   # optional shelf items (2026-09-04)\n             }","operationId":"create_order_order_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/get":{"post":{"tags":["order"],"summary":"Get","description":"input data is None","operationId":"get_order_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/getmyorders":{"post":{"tags":["order"],"summary":"Get My Orders","description":"input data is None","operationId":"get_my_orders_order_getmyorders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/updatestatus":{"post":{"tags":["order"],"summary":"Update Status","description":"{ \n             \"id\": 1,\n             \"status\":1\n            }","operationId":"update_status_order_updatestatus_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/refresh_prescription_status":{"post":{"tags":["order"],"summary":"Refresh Prescription Status","description":"{ \"order_number\": \"str\" } — ask eRx about this order right now","operationId":"refresh_prescription_status_order_refresh_prescription_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/getbyscid":{"post":{"tags":["order"],"summary":"Get By Scid","description":"{ \n             \"scid\": \"str\",\n             \"order_number\":\"str\"\n             }","operationId":"get_by_scid_order_getbyscid_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/updatenotification_type":{"post":{"tags":["order"],"summary":"Update Notification Type","description":"{ \n             \"id\": 1,\n             \"notification_type\":1\n            }","operationId":"update_notification_type_order_updatenotification_type_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/cancel":{"post":{"tags":["order"],"summary":"Cancel Order","description":"{ \"order_number\": \"str\" }","operationId":"cancel_order_order_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/mark_paid_test":{"post":{"tags":["order"],"summary":"Mark Paid Test","description":"{ \"order_number\": \"str\" } — DEMO ONLY","operationId":"mark_paid_test_order_mark_paid_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/reassign":{"post":{"tags":["order"],"summary":"Reassign Order","description":"{ \"order_number\": \"str\", \"pharmacy_id\": int }","operationId":"reassign_order_order_reassign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/receipt":{"post":{"tags":["order"],"summary":"Order Receipt","description":"{ \"order_number\": \"str\" } — the customer's receipt for a paid order (owner or Order_Get)","operationId":"order_receipt_order_receipt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/receipt/pdf":{"post":{"tags":["order"],"summary":"Order Receipt Pdf","description":"{ \"order_number\": \"str\" } — the same receipt as a PDF, base64 (owner or Order_Get)","operationId":"order_receipt_pdf_order_receipt_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/messages":{"post":{"tags":["order"],"summary":"Order Messages","description":"{ \"order_number\": \"str\" } — what the customer has been told, and what Send again would send (perm 17)","operationId":"order_messages_order_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/order/resend_message":{"post":{"tags":["order"],"summary":"Order Resend Message","description":"{ \"order_number\": \"str\" } — send the current status's customer message again (perm 17)","operationId":"order_resend_message_order_resend_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role/getall":{"post":{"tags":["role"],"summary":"Get All","description":"input data is None","operationId":"get_all_role_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role/create":{"post":{"tags":["role"],"summary":"Create","description":"{\n  \"name\": \"string\"\n}","operationId":"create_role_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role/setTier":{"post":{"tags":["role"],"summary":"Set Tier","description":"{ \"id\": int, \"tier\": \"staff\" | \"admin\", \"password\": \"string, unless signed in within 5 minutes\" }","operationId":"set_tier_role_setTier_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role/blocked":{"post":{"tags":["role"],"summary":"Blocked","description":"input data is None — permissions sitting on a role whose tier does not allow them (they grant nothing)","operationId":"blocked_role_blocked_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role/delete":{"post":{"tags":["role"],"summary":"Delete","description":"{ \"id\": int } — removes a hand-built role nobody holds","operationId":"delete_role_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role/matrix":{"post":{"tags":["role"],"summary":"Matrix","description":"input data is None — every role × every permission, with the seeded baseline and user counts","operationId":"matrix_role_matrix_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role_permissions/rolepermissions":{"post":{"tags":["role_permissions"],"summary":"Get All","description":"input data is None","operationId":"get_all_role_permissions_rolepermissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role_claim/getall":{"post":{"tags":["role_claim"],"summary":"Get All","description":"{\n  \"role_id\": 0\n}","operationId":"get_all_role_claim_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/role_claim/edit":{"post":{"tags":["role_claim"],"summary":"Update","description":"{\n  \"role_id\": 0,\n  \"value\":0\n}","operationId":"update_role_claim_edit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user_role/getByuserId":{"post":{"tags":["user_role"],"summary":"Get By User Id","description":"{\n  \"user_id\": 1\n}","operationId":"get_by_user_id_user_role_getByuserId_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/user_role/edit":{"post":{"tags":["user_role"],"summary":"Edit","description":"{\n  \"user_id\": 0,\n  \"role_id\":0\n}","operationId":"edit_user_role_edit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/enums/orderstatuses":{"post":{"tags":["enums"],"summary":"Get Order Statuses","description":"input data is None","operationId":"get_order_statuses_enums_orderstatuses_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/applog/getall":{"post":{"tags":["app_log"],"summary":"Get All","description":"{\n  \"from_date\": \"string\",\n  \"to_date\": \"string\",\n  \"type\": \"string (optional — LogType name e.g. 'Conformance' to restrict results)\"\n}","operationId":"get_all_applog_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/temporder/getbytoken":{"post":{"tags":["temp_order"],"summary":"Get By Scid","description":"{ \n             \"scid\": \"str\",\n             \"token\":str,\n             \"item_tokens\":[str]\n             }","operationId":"get_by_scid_temporder_getbytoken_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/temporder/share":{"post":{"tags":["temp_order"],"summary":"Share","description":"{ \n             \"scid\": \"str\",\n             \"token\":str,\n             \"phonenumber\":str\n             }","operationId":"share_temporder_share_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/deactivation/feasibility":{"post":{"tags":["de_activation"],"summary":"Feasibility Deactive","description":"input data is None","operationId":"feasibility_deactive_deactivation_feasibility_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/deactivation/delete":{"post":{"tags":["de_activation"],"summary":"Delete Profile","description":"input data is None","operationId":"delete_profile_deactivation_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/deactivation/deactive":{"post":{"tags":["de_activation"],"summary":"Deactivate Profile","description":"input data is None","operationId":"deactivate_profile_deactivation_deactive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/eop/getpdf":{"post":{"tags":["eop"],"summary":"Get Pdf","description":"{ \n             \"order_id\": 1","operationId":"get_pdf_eop_getpdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/jobs":{"post":{"tags":["config"],"summary":"Jobs","description":"input data is None — health of the scheduler-driven background jobs","operationId":"jobs_config_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/pbs_status":{"post":{"tags":["config"],"summary":"Pbs Status","description":"input data is None — where PBS prices come from, read-only","operationId":"pbs_status_config_pbs_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/e2ee_status":{"post":{"tags":["config"],"summary":"E2Ee Status","description":"input data is None — which E2EE keys this instance loaded, read-only","operationId":"e2ee_status_config_e2ee_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/get":{"post":{"tags":["config"],"summary":"Get","description":"input data is None","operationId":"get_config_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/update":{"post":{"tags":["config"],"summary":"Update Config","description":"{ \n             \"type\": \"int\",\n             \"value\":\"str\",\n             }","operationId":"update_config_config_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/test_email":{"post":{"tags":["config"],"summary":"Test Email","description":"{ \"type\": int, \"value\": \"str (optional: the addresses in the box; blank = the saved value)\" }","operationId":"test_email_config_test_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/parcel_sizes/list":{"post":{"tags":["config"],"summary":"Parcel Sizes List","description":"input data is None — every parcel size, smallest first","operationId":"parcel_sizes_list_config_parcel_sizes_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/parcel_sizes/save":{"post":{"tags":["config"],"summary":"Parcel Sizes Save","description":"{ \"id\": int|null, \"name\": \"str\", \"kind\": \"box\"|\"satchel\", \"length_cm\": float, \"width_cm\": float, \"height_cm\": float, \"empty_weight_g\": float, \"is_active\": bool } — add or change one size (inside measurements)","operationId":"parcel_sizes_save_config_parcel_sizes_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/config/parcel_sizes/delete":{"post":{"tags":["config"],"summary":"Parcel Sizes Delete","description":"{ \"id\": int } — remove a size","operationId":"parcel_sizes_delete_config_parcel_sizes_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mobile/token/status":{"post":{"tags":["mobile"],"summary":"Get Token Statuses","description":"{\n  \"scids\": [\"string\", \"string\"]\n}\nReturns the current prescription_status and order status for each SCID\nbelonging to the authenticated user. Used by the mobile app to refresh\nlocally stored token statuses at session start (TC_MC_MA_032).","operationId":"get_token_statuses_mobile_token_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/error_messages/getall":{"post":{"tags":["error_messages"],"summary":"Getall","description":"input data is None","operationId":"getall_error_messages_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/error_messages/update":{"post":{"tags":["error_messages"],"summary":"Update","description":"{\n    \"code\": int,\n    \"customer_message\": \"str\" (optional),\n    \"is_enabled\": bool (optional),\n    \"show_code\": bool (optional)\n}","operationId":"update_error_messages_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/error_messages/reset_to_defaults":{"post":{"tags":["error_messages"],"summary":"Reset To Defaults","description":"input data is None","operationId":"reset_to_defaults_error_messages_reset_to_defaults_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/poll-prescription-status":{"post":{"tags":["internal"],"summary":"Poll Prescription Status","description":"Cloud Scheduler poller. Auth: X-Internal-Poller-Secret header.","operationId":"poll_prescription_status_internal_poll_prescription_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/sla_sweep":{"post":{"tags":["internal"],"summary":"Sla Sweep","description":"Phase C SLA ladder. Cloud Scheduler. Auth: X-Internal-Poller-Secret header.","operationId":"sla_sweep_internal_sla_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/payment_reminders":{"post":{"tags":["internal"],"summary":"Payment Reminders","description":"Phase D Unpaid ladder. Cloud Scheduler, hourly. Auth: X-Internal-Poller-Secret.","operationId":"payment_reminders_internal_payment_reminders_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/statement_run":{"post":{"tags":["internal"],"summary":"Statement Run","description":"Step 3 pharmacy statements. Cloud Scheduler, daily 07:00 Perth. Auth: X-Internal-Poller-Secret. ?today=YYYY-MM-DD to run as-of another day.","operationId":"statement_run_internal_statement_run_post","parameters":[{"name":"today","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Today"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/payment_reconcile":{"post":{"tags":["internal"],"summary":"Payment Reconcile","description":"Phase D reconciliation. Cloud Scheduler, every 15 min. Auth: X-Internal-Poller-Secret.","operationId":"payment_reconcile_internal_payment_reconcile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/sync_supplier_catalog":{"post":{"tags":["internal"],"summary":"Sync Supplier Catalog","description":"Cloud Scheduler supplier-catalogue sync. Auth: X-Internal-Poller-Secret header. ?dry_run=true computes and reports without committing. ?scheduled=true = a timetable tick: runs only when the Supplier catalogue timetable (Config) says a slot is due.","operationId":"sync_supplier_catalog_internal_sync_supplier_catalog_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"scheduled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Scheduled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/sync_retail_catalog":{"post":{"tags":["internal"],"summary":"Sync Retail Catalog","description":"Cloud Scheduler daily shelf-item (OTC) retail sync from Kimia. Auth: X-Internal-Poller-Secret header. ?dry_run=true computes and reports without committing.","operationId":"sync_retail_catalog_internal_sync_retail_catalog_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/refresh_pbs_rules":{"post":{"tags":["internal"],"summary":"Refresh Pbs Rules","description":"Cloud Scheduler PBS rules refresh. Auth: X-Internal-Poller-Secret header.","operationId":"refresh_pbs_rules_internal_refresh_pbs_rules_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/price_request_sweep":{"post":{"tags":["internal"],"summary":"Price Request Sweep","description":"Fix D pharmacist-confirmed price: escalate, then lapse, unpriced requests. Cloud Scheduler, every 10 min. Auth: X-Internal-Poller-Secret.","operationId":"price_request_sweep_internal_price_request_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/internal/repeat_reminders":{"post":{"tags":["internal"],"summary":"Repeat Reminders","description":"Repeat reminders: plan, then text customers whose next repeat may be due. Cloud Scheduler, hourly. Auth: X-Internal-Poller-Secret.","operationId":"repeat_reminders_internal_repeat_reminders_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/getall":{"post":{"tags":["wsd_pricebook"],"summary":"Getall","description":"{\n    \"search\": \"string\" (REQUIRED — substring match on gtin, description,\n              generic, or — when an enrichment row exists — long name,\n              full generic description, active ingredients, manufacturer\n              or brand),\n    \"fridge_only\": bool (optional, default false — restrict to cold-chain items),\n    \"limit\":  int (optional, default 100, max 500),\n    \"offset\": int (optional, default 0)\n}","operationId":"getall_wsd_pricebook_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/upload":{"post":{"tags":["wsd_pricebook"],"summary":"Upload","description":"{\n    \"file_base64\": \"string\" (REQUIRED — base64-encoded .xlsx workbook),\n    \"filename\":    \"string\" (optional — used only in audit log)\n}\n\nAtomic merge-by-GTIN upload. The Excel workbook must have these columns\non the first sheet's first row (any order):\n  PDE, Description, Supp Part No, EAN, Generic, Inventory Group,\n  Document Display, Price GST Inc, Price GST Exc\n\nValidation is performed on every row before any DB write. If ANY row\nfails (missing GTIN, unparseable price, price > 99,999, duplicate GTIN\nin upload, header mismatch), the entire upload is rejected with the\nfull error list and no DB changes occur.\n\nOn success: matching GTINs in DB are UPDATEd with the new values;\nnew GTINs are INSERTed. GTINs present in DB but absent from the\nupload are LEFT ALONE — bulk uploads never delete rows. Use /delete\nfor individual deletions.","operationId":"upload_wsd_pricebook_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/create":{"post":{"tags":["wsd_pricebook"],"summary":"Create","description":"{\n    \"gtin\": \"string\" (required, must be unique),\n    \"pde\": \"string\" (optional),\n    \"description\": \"string\" (optional),\n    \"supp_part_no\": \"string\" (optional),\n    \"generic\": \"string\" (optional),\n    \"inventory_group\": int (optional),\n    \"document_display\": \"string\" (optional),\n    \"price_gst_inc\": float (optional),\n    \"price_gst_exc\": float (optional)\n}","operationId":"create_wsd_pricebook_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/update":{"post":{"tags":["wsd_pricebook"],"summary":"Update","description":"{\n    \"id\": int (required),\n    \"pde\": \"string\" (optional),\n    \"description\": \"string\" (optional),\n    \"supp_part_no\": \"string\" (optional),\n    \"generic\": \"string\" (optional),\n    \"inventory_group\": int (optional),\n    \"document_display\": \"string\" (optional),\n    \"price_gst_inc\": float (optional),\n    \"price_gst_exc\": float (optional)\n}","operationId":"update_wsd_pricebook_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/upsert_by_gtin":{"post":{"tags":["wsd_pricebook"],"summary":"Upsert By Gtin","description":"{\n    \"gtin\": \"string\" (required),\n    \"pde\": \"string\" (optional),\n    \"description\": \"string\" (optional),\n    \"supp_part_no\": \"string\" (optional),\n    \"generic\": \"string\" (optional),\n    \"inventory_group\": int (optional),\n    \"document_display\": \"string\" (optional),\n    \"price_gst_inc\": float (optional),\n    \"price_gst_exc\": float (optional),\n    \"schedule_code\": \"string\" (optional),\n    \"is_available\": bool / \"Yes\" / \"No\" (optional)\n}\n\nPhase 5.X.3.b (2026-05-24): companion endpoint for the /upload duplicate-\nresolution flow. Atomic insert-or-update by GTIN — finds the existing row\nwith that GTIN and updates its fields; if no row exists, inserts a new\none. Used by the admin Pricebook page when the admin clicks \"Keep this\nrow\" inside a duplicate-resolution card.\n\nSame auth as /create / /update (claim 27 WsdPricebook_Update) and logs\nto AppLogs so the resolution is captured in the audit trail.","operationId":"upsert_by_gtin_wsd_pricebook_upsert_by_gtin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/list_pending_dupes":{"post":{"tags":["wsd_pricebook"],"summary":"List Pending Dupes","description":"{}\n\nPhase 5.X.3.c (2026-05-24): returns the current pending duplicate-GTIN\ngroups so the admin page can restore them on mount. Same shape as\n/upload's `duplicate_groups` response field.","operationId":"list_pending_dupes_wsd_pricebook_list_pending_dupes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/reject_pending_groups":{"post":{"tags":["wsd_pricebook"],"summary":"Reject Pending Groups","description":"{\n    \"gtins\": [\"string\", ...]\n}\n\nPhase 5.X.3.c (2026-05-24): companion to /upsert_by_gtin for the\n'Reject all' button on a duplicate-resolution card (single-element\ngtins list) and the 'Dismiss all' button on the resolution panel\n(full pending list). Deletes the matching pending candidates without\ntouching wsd_pricebook.","operationId":"reject_pending_groups_wsd_pricebook_reject_pending_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/delete":{"post":{"tags":["wsd_pricebook"],"summary":"Delete","description":"{\n    \"id\": int (required)\n}","operationId":"delete_wsd_pricebook_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/sync_status":{"post":{"tags":["wsd_pricebook"],"summary":"Sync Status","description":"{}\n\nSupplier catalogue pull — timetable + last/next run, for the pricebook\npage's caption and the Pull dialog. Read-only; shares WsdPricebook_Get.","operationId":"sync_status_wsd_pricebook_sync_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_pricebook/sync_now":{"post":{"tags":["wsd_pricebook"],"summary":"Sync Now","description":"{\n    \"dry_run\": bool (optional, default false)\n}\n\ndry_run=true: runs the supplier catalogue merge (catalog_sync_service.run_sync)\nimmediately, computing every count + sample row without committing — in a\nworker thread, refused while a real pull is running.\ndry_run=false: QUEUES a real pull for the scheduler's next tick (within 10\nminutes). The pull is never run inside the browser's request: Rx's API\ndomain is a Firebase Hosting proxy with a 60 s limit, and a full pull with\nmany changes runs longer (2026-10-25 — the orphaned request then blocked the\ninstance). The tick runs it on the direct Cloud Run URL, stamps the heartbeat,\nwrites the audit line and stores the result for this page's /sync_status.","operationId":"sync_now_wsd_pricebook_sync_now_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/external/price_lookup":{"post":{"tags":["external"],"summary":"Price Lookup","description":"SCID-only price quote for trusted external sites.\n\nAuth:\n  Conformance-ID: Televita-PriceLookup|v1.0\n  X-PriceLookup-API-Key: <tenant key from EScript_Backend_PriceLookup_API_Keys>\n\nBody: { \"scid\": \"<prescription number>\" }\n\nReturns the same v2 PBS / WSD pricing that the SPA's /prescription flow\nshows, but with PII + internal diagnostics + order-flow staging stripped.","operationId":"price_lookup_external_price_lookup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/external/ready-for-delivery":{"get":{"tags":["external"],"summary":"Courier Ready For Delivery","description":"Orders packed, labelled and waiting for a driver.\n\nAuth:\n  Conformance-ID: Televita-Courier|v1.0\n  Authorization: Bearer <EScript_Backend_Courier_API_Key>\n\nReturns ReadyForDelivery + PickedUp local-courier AND Australia Post orders with pickup details,\nthe decrypted customer drop, handling flags and the handover protocol.\nAn empty list means either nothing is ready or the feed is switched off —\nboth are normal states, neither is an error.\n\nAlso returns `forget`: order numbers whose customer asked to be erased and\nwhose delivery is finished, so the courier can erase its own copy of the\nrecipient's details. Acknowledge them with POST /external/forget-ack.","operationId":"courier_ready_for_delivery_external_ready_for_delivery_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/external/forget-ack":{"post":{"tags":["external"],"summary":"Courier Forget Ack","description":"The courier confirms it has erased its copy.\n\nBody: { \"order_numbers\": [\"TS-0001\", \"TS-0002\"] }\n\nSent in reply to the `forget` list on /external/ready-for-delivery. Until an\norder number is acknowledged here it stays on that list, so a lost reply costs\na repeat rather than an erasure.\n\nIdempotent: acknowledging the same order twice succeeds quietly. Order numbers\nwe have not erased are reported back in `unknown` rather than being stamped —\na courier cannot take a live delivery off the outstanding list by naming it.","operationId":"courier_forget_ack_external_forget_ack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/external/courier-status":{"post":{"tags":["external"],"summary":"Courier Status","description":"Driver status write-back.\n\nBody: { \"order_number\": \"...\", \"status\": \"picked_up|delivered|failed\",\n        \"courier_name\": \"...\", \"notes\": \"...\", \"latitude\": 0.0, \"longitude\": 0.0,\n        \"delivery_method\": \"local_courier|australia_post\"?, \"tracking_number\": \"...\"? }\n\ndelivered + australia_post + tracking_number = LODGED at the post office:\nthe order becomes Sent with the article number (2026-09-16).\n\nIdempotent: re-sending a status the order already holds succeeds quietly.\nAn S8 order cannot be marked delivered through this endpoint — it needs the\nhandover code (below) or an administrator's authorisation.","operationId":"courier_status_external_courier_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/external/handover-code":{"post":{"tags":["external"],"summary":"Courier Handover Code","description":"S8 door check: the driver submits the customer's 4-digit code.\n\nBody: { \"order_number\": \"...\", \"code\": \"1234\", \"courier_name\": \"...\",\n        \"latitude\": 0.0, \"longitude\": 0.0, \"notes\": \"...\" }\n\nOn a correct code the order is marked Delivered in the same call, mirroring\nTeleConnect's contract so the driver app's existing flow needs no new step.\nOn a wrong code the response message carries the attempts remaining, verbatim,\nfor the driver to read.","operationId":"courier_handover_code_external_handover_code_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/print_agent/enrol":{"post":{"tags":["print_agent"],"summary":"Enrol","description":"Redeem an enrolment code and become this pharmacy's print agent","operationId":"enrol_print_agent_enrol_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrolBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/print_agent/poll":{"post":{"tags":["print_agent"],"summary":"Poll","description":"Ask for the next label to print","operationId":"poll_print_agent_poll_post","parameters":[{"name":"X-Agent-Token","in":"header","required":false,"schema":{"type":"string","title":"X-Agent-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/print_agent/label/{job_id}":{"get":{"tags":["print_agent"],"summary":"Label","description":"The label PDF for a claimed job","operationId":"label_print_agent_label__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}},{"name":"X-Agent-Token","in":"header","required":false,"schema":{"type":"string","title":"X-Agent-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/print_agent/printer":{"post":{"tags":["print_agent"],"summary":"Printer","description":"The agent chooses its own delivery-label printer","operationId":"printer_print_agent_printer_post","parameters":[{"name":"X-Agent-Token","in":"header","required":false,"schema":{"type":"string","title":"X-Agent-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrinterBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/print_agent/result":{"post":{"tags":["print_agent"],"summary":"Result","description":"Say what the printer did","operationId":"result_print_agent_result_post","parameters":[{"name":"X-Agent-Token","in":"header","required":false,"schema":{"type":"string","title":"X-Agent-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mysl/status":{"post":{"tags":["mysl"],"summary":"Mysl Status","description":"input data is None. Returns whether the user is activated for MySL.","operationId":"mysl_status_mysl_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mysl/activate":{"post":{"tags":["mysl"],"summary":"Mysl Activate","description":"{\n  \"activation_code\": \"ABC-1234\",\n  \"first_name\": \"Jack\",\n  \"last_name\": \"Smith\",\n  \"dob\": \"1980-01-01\",\n  \"verifying_site_type\": \"pharmacy\"   // optional: 'pharmacy' | 'clinic' (audit only)\n}\nFirst-time MySL activation (IG §3.3.1). Exchanges the activation code + demographics\nfor a patient token, stores the returned MySL Patient Id (encrypted), and links it\nto the authenticated user. Registration itself is assisted at a pharmacy/clinic — this\nonly activates the code for this app.","operationId":"mysl_activate_mysl_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mysl/scripts":{"post":{"tags":["mysl"],"summary":"Mysl Scripts","description":"input data is None. Returns the patient's Active Script List.","operationId":"mysl_scripts_mysl_scripts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mysl/visibility":{"post":{"tags":["mysl"],"summary":"Mysl Visibility","description":"{ \"id\": \"<MedicationRequest id>\", \"hidden\": true }\nHide (hidden=true) or unhide (false) a single script in the patient's MySL.","operationId":"mysl_visibility_mysl_visibility_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mysl/consents":{"post":{"tags":["mysl"],"summary":"Mysl Consents","description":"input data is None. Returns the patient's active/revoked site consents.","operationId":"mysl_consents_mysl_consents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/mysl/consent":{"post":{"tags":["mysl"],"summary":"Mysl Consent Update","description":"{ \"id\": \"<Consent id>\", \"active\": false }\nRevoke (active=false) or reinstate (active=true) a site consent. Reinstating only\nrestores the remainder of any prior time-limited grant.","operationId":"mysl_consent_update_mysl_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/support/contact":{"post":{"tags":["support"],"summary":"Contact","description":"Public support contact details. Input data is None.","operationId":"contact_support_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/support/enquiry":{"post":{"tags":["support"],"summary":"Enquiry","description":"{\n  \"name\": \"string\",\n  \"email\": \"string\",\n  \"message\": \"string\",\n  \"topic\": \"signin|ordering|payment|delivery|concern|other\"\n}","operationId":"enquiry_support_enquiry_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/getall":{"post":{"tags":["promotion"],"summary":"Get All","description":"{}","operationId":"get_all_promotion_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/create":{"post":{"tags":["promotion"],"summary":"Create","description":"{\n             \"name\": \"str\", \"promo_type\": \"new_user_free_delivery\",\n             \"starts_at\": \"YYYY-MM-DD\", \"ends_at\": \"YYYY-MM-DD\",\n             \"signup_within_days\": \"int|blank\", \"free_delivery_count\": \"int\",\n             \"valid_days\": \"int\", \"terms_text\": \"str\", \"is_active\": \"bool\" }","operationId":"create_promotion_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/update":{"post":{"tags":["promotion"],"summary":"Update","description":"{ \"id\": \"int\", ...any create fields... }","operationId":"update_promotion_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/my_status":{"post":{"tags":["promotion"],"summary":"My Status","description":"{}","operationId":"my_status_promotion_my_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/new_customers":{"post":{"tags":["promotion"],"summary":"New Customers","description":"{\"days\": 30}","operationId":"new_customers_promotion_new_customers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/new_customers/existing":{"post":{"tags":["promotion"],"summary":"New Customers Existing","description":"{}","operationId":"new_customers_existing_promotion_new_customers_existing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/new_customers/send_existing":{"post":{"tags":["promotion"],"summary":"New Customers Send Existing","description":"{\"user_ids\": [1, 2]}","operationId":"new_customers_send_existing_promotion_new_customers_send_existing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/new_customers/welcome_preview":{"post":{"tags":["promotion"],"summary":"New Customers Welcome Preview","description":"{\"existing\": false}","operationId":"new_customers_welcome_preview_promotion_new_customers_welcome_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/promotion/new_customers/welcome_test":{"post":{"tags":["promotion"],"summary":"New Customers Welcome Test","description":"{\"existing\": false}","operationId":"new_customers_welcome_test_promotion_new_customers_welcome_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/my":{"post":{"tags":["referral"],"summary":"My","description":"{\"view\": bool, \"ref\": \"kimia\", \"p\": \"receipt-rf\"}   # view: true only from the Refer a friend page itself","operationId":"my_referral_my_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/public":{"get":{"tags":["referral"],"summary":"Public","description":"The advertised Refer a friend and welcome numbers, for telescriptrx.com.au/refer. No key, no account data.","operationId":"public_referral_public_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/capture":{"post":{"tags":["referral"],"summary":"Capture","description":"{\"code\": \"k7m2qd\"}","operationId":"capture_referral_capture_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/invite":{"post":{"tags":["referral"],"summary":"Invite","description":"{\"code\": \"k7m2qd\"}","operationId":"invite_referral_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/admin/stats":{"post":{"tags":["referral"],"summary":"Admin Stats","description":"{\"days\": 30}","operationId":"admin_stats_referral_admin_stats_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/admin/catalogue":{"post":{"tags":["referral"],"summary":"Admin Catalogue","description":"{\"q\": \"hand cream\"}","operationId":"admin_catalogue_referral_admin_catalogue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/admin/review":{"post":{"tags":["referral"],"summary":"Admin Review","description":"{\"id\": 1, \"action\": \"approve|reject\"}","operationId":"admin_review_referral_admin_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/admin/special_create":{"post":{"tags":["referral"],"summary":"Admin Special Create","description":"{\n             \"order_number\": \"TS...\", \"kind\": \"item|credit\", \"otc_product_id\": 1, \"credit_amount\": 5,\n             \"unlock\": \"next_order|after_referral\", \"reason\": \"order_issue|goodwill|partner|other\",\n             \"valid_until\": \"YYYY-MM-DD\", \"note\": \"str\", \"combine_ok\": false, \"rights_confirmed\": true }","operationId":"admin_special_create_referral_admin_special_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/admin/special_notice_preview":{"post":{"tags":["referral"],"summary":"Admin Special Notice Preview","description":"{\"order_number\": \"TS...\", \"reason\": \"order_issue|...\", \"unlock\": \"next_order|after_referral\"}\n-> {\"send\": bool, \"channel\": \"sms|null\", \"why\": \"...\"} - what the dialog says before Save.","operationId":"admin_special_notice_preview_referral_admin_special_notice_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/referral/admin/special_update":{"post":{"tags":["referral"],"summary":"Admin Special Update","description":"{\"id\": 1, \"action\": \"cancel|make_ready|swap|extend\", \"otc_product_id\": 1, \"valid_until\": \"YYYY-MM-DD\"}","operationId":"admin_special_update_referral_admin_special_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/partner/v1/offers":{"get":{"tags":["partner"],"summary":"V1 Offers","description":"Live offer numbers for a partner's own server. Authorization: Bearer tsrx_pk_…","operationId":"v1_offers_partner_v1_offers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/partner/admin/get":{"post":{"tags":["partner"],"summary":"Admin Get","description":"{\"group_id\": int}","operationId":"admin_get_partner_admin_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/partner/admin/set_code":{"post":{"tags":["partner"],"summary":"Admin Set Code","description":"{\"group_id\": int, \"partner_code\": \"kimia\"}","operationId":"admin_set_code_partner_admin_set_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/partner/admin/create_key":{"post":{"tags":["partner"],"summary":"Admin Create Key","description":"{\"group_id\": int, \"label\": \"Kimia website\"}","operationId":"admin_create_key_partner_admin_create_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/partner/admin/revoke_key":{"post":{"tags":["partner"],"summary":"Admin Revoke Key","description":"{\"id\": int}","operationId":"admin_revoke_key_partner_admin_revoke_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/overview":{"post":{"tags":["accounting"],"summary":"Overview","description":"{ \"month\": \"YYYY-MM\" } — tiles + one row per pharmacy","operationId":"overview_accounting_overview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/list":{"post":{"tags":["accounting"],"summary":"Statements List","description":"{ \"pharmacy_id\": int|null, \"status\": str|null, \"limit\": int }","operationId":"statements_list_accounting_statements_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/get":{"post":{"tags":["accounting"],"summary":"Statements Get","description":"{ \"id\": int } — with lines","operationId":"statements_get_accounting_statements_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/generate":{"post":{"tags":["accounting"],"summary":"Statements Generate","description":"{ \"pharmacy_id\": int, \"period_from\": \"YYYY-MM-DD\"|null, \"period_to\": \"YYYY-MM-DD\"|null } — blank period = the store's last closed period","operationId":"statements_generate_accounting_statements_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/pdf":{"post":{"tags":["accounting"],"summary":"Statements Pdf","description":"{ \"id\": int } — the PDF, base64 (rendered on first request, then stored)","operationId":"statements_pdf_accounting_statements_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/send":{"post":{"tags":["accounting"],"summary":"Statements Send","description":"{ \"id\": int, \"to_email\": str|null } — email the PDF; marks a draft as sent","operationId":"statements_send_accounting_statements_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/mark_paid":{"post":{"tags":["accounting"],"summary":"Statements Mark Paid","description":"{ \"id\": int, \"reference\": str }","operationId":"statements_mark_paid_accounting_statements_mark_paid_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/statements/void":{"post":{"tags":["accounting"],"summary":"Statements Void","description":"{ \"id\": int } — drafts only","operationId":"statements_void_accounting_statements_void_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/ledger":{"post":{"tags":["accounting"],"summary":"Ledger","description":"{ \"pharmacy_id\": int|null, \"from\": \"YYYY-MM-DD\"|null, \"to\": \"YYYY-MM-DD\"|null, \"limit\": int }","operationId":"ledger_accounting_ledger_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/accounting/ledger/export":{"post":{"tags":["accounting"],"summary":"Ledger Export","description":"same filters as /ledger — returns an .xlsx, base64","operationId":"ledger_export_accounting_ledger_export_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/available":{"post":{"tags":["otc"],"summary":"Available","description":"{} → { available: bool, free_delivery: {amount, max_kg, include_express, headline, subline, weight_label, condition, terms} | null } — is the shelf-item step shown at all, and the free-delivery offer on shelf items","operationId":"available_otc_available_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/search":{"post":{"tags":["otc"],"summary":"Search","description":"{ \"query\": str, \"category\": str, \"featured\": bool, \"limit\": int, \"offset\": int }","operationId":"search_otc_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/categories":{"post":{"tags":["otc"],"summary":"Categories","description":"{} → [{name, count}] for the picker's chips","operationId":"categories_otc_categories_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/admin/summary":{"post":{"tags":["otc"],"summary":"Admin Summary","description":"{} → counts + switch state for the catalogue page header","operationId":"admin_summary_otc_admin_summary_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/admin/list":{"post":{"tags":["otc"],"summary":"Admin List","description":"{ \"query\": str, \"filter\": \"all|live|featured|disabled|gated|not_sellable\", \"category\": str, \"page\": int, \"page_size\": int }","operationId":"admin_list_otc_admin_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/admin/update":{"post":{"tags":["otc"],"summary":"Admin Update","description":"{ \"id\": int, \"is_enabled\"?: bool, \"is_featured\"?: bool, \"featured_rank\"?: int|null, \"margin_override_pct\"?: float|null }","operationId":"admin_update_otc_admin_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/admin/reprice":{"post":{"tags":["otc"],"summary":"Admin Reprice","description":"{} → recompute every stored TeleScript price with the margin settings now in force","operationId":"admin_reprice_otc_admin_reprice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/otc/admin/sync_now":{"post":{"tags":["otc"],"summary":"Admin Sync Now","description":"{ \"dry_run\": bool } → run the Kimia retail pull from the panel","operationId":"admin_sync_now_otc_admin_sync_now_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/reference":{"post":{"tags":["agreement"],"summary":"Reference","description":"input data is None — kinds, structures, capacities and the current setup","operationId":"reference_agreement_reference_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/template/list":{"post":{"tags":["agreement"],"summary":"Template List","description":"input data is None — every version of every agreement, newest first (no file content)","operationId":"template_list_agreement_template_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/template/upload":{"post":{"tags":["agreement"],"summary":"Template Upload","description":"{ \"kind\": \"nda\"|\"pilot\"|\"partner\", \"version_label\": str, \"file_name\": str, \"pdf_base64\": str, \"notes\"?: str, \"make_current\"?: bool }","operationId":"template_upload_agreement_template_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/template/activate":{"post":{"tags":["agreement"],"summary":"Template Activate","description":"{ \"id\": int } — new onboarding packs use this version","operationId":"template_activate_agreement_template_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/template/file":{"post":{"tags":["agreement"],"summary":"Template File","description":"{ \"id\": int } — the stored PDF as base64","operationId":"template_file_agreement_template_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/signers/get":{"post":{"tags":["agreement"],"summary":"Signers Get","description":"input data is None — Televita's signers in order","operationId":"signers_get_agreement_signers_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/signers/save":{"post":{"tags":["agreement"],"summary":"Signers Save","description":"{ \"signers\": [{ \"full_name\", \"capacity\": \"director\"|\"company_secretary\"|\"sole_director\", \"user_id\"? }] } — replaces the list","operationId":"signers_save_agreement_signers_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/for_pharmacy":{"post":{"tags":["agreement"],"summary":"Packet For Pharmacy","description":"{ \"pharmacy_id\": int } — this pharmacy's packs, newest first","operationId":"packet_for_pharmacy_agreement_packet_for_pharmacy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/create":{"post":{"tags":["agreement"],"summary":"Packet Create","description":"{ \"pharmacy_id\": int, \"option\": \"pilot\"|\"full\", \"entity_type\": str, \"particulars\": {legal_name, trading_name?, abn, acn?, trust_name?, gst_registered, start_date, pilot_days?}, \"signers\": [{full_name, capacity, email, mobile, ahpra_number?}] }","operationId":"packet_create_agreement_packet_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/preview":{"post":{"tags":["agreement"],"summary":"Packet Preview","description":"{ \"document_id\": int } — the document filled from the pack, as base64 PDF.\n\nNothing is stored: this is what an admin looks at before inviting anyone. The\nreply also says which values had no field in the template and which fields the\npack cannot fill, so a template problem is seen here rather than by a pharmacy.","operationId":"packet_preview_agreement_packet_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/invite":{"post":{"tags":["agreement"],"summary":"Packet Invite","description":"{ \"id\": int } — fill the pack's documents and send each signer their own link.\n\nOne link per signer, 14 days, stored hashed. Sending again replaces the live\nlink. A wet-ink document is never included: it is printed and signed with a\nwitness, and the document behind it waits.","operationId":"packet_invite_agreement_packet_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/invite/resend":{"post":{"tags":["agreement"],"summary":"Packet Invite Resend","description":"{ \"signer_id\": int } — a new link for one signer; the old one stops working","operationId":"packet_invite_resend_agreement_packet_invite_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/document/countersign":{"post":{"tags":["agreement"],"summary":"Packet Countersign","description":"{ \"document_id\": int, \"signer_index\": int, \"signature_png_base64\": str, \"kind\": \"drawn\"|\"typed\" } — Televita signs and the document is executed","operationId":"packet_countersign_agreement_packet_document_countersign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/document/refill":{"post":{"tags":["agreement"],"summary":"Packet Document Refill","description":"{ \"document_id\": int } — build this document again from the pack.\n\nOnly while nothing is signed on it: re-filling a signed document would change\nwhat someone has already agreed to. Use it when a detail on the pack changed, or\nwhen a document was prepared before the one in front of it was executed.","operationId":"packet_document_refill_agreement_packet_document_refill_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/nda/void":{"post":{"tags":["agreement"],"summary":"Packet Nda Void","description":"{ \"pharmacy_id\": int, \"reason\": str } — set aside an executed NDA so the next pack asks for a new one","operationId":"packet_nda_void_agreement_packet_nda_void_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/document/file":{"post":{"tags":["agreement"],"summary":"Packet Document File","description":"{ \"document_id\": int } — the prepared or signed document as base64","operationId":"packet_document_file_agreement_packet_document_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/open":{"post":{"tags":["agreement"],"summary":"Sign Open","description":"{ \"token\": str } — what this signer is being asked to sign","operationId":"sign_open_agreement_sign_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/code/send":{"post":{"tags":["agreement"],"summary":"Sign Code Send","description":"{ \"token\": str } — texts a 6-digit code to the mobile on the pack","operationId":"sign_code_send_agreement_sign_code_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/code/verify":{"post":{"tags":["agreement"],"summary":"Sign Code Verify","description":"{ \"token\": str, \"code\": str } — 6 digits, 10 minutes, 5 attempts","operationId":"sign_code_verify_agreement_sign_code_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/submit":{"post":{"tags":["agreement"],"summary":"Sign Submit","description":"{ \"token\": str, \"document_id\": int, \"signature_png_base64\": str, \"kind\": \"drawn\"|\"typed\", \"agreed\": bool } — records this signer's signature","operationId":"sign_submit_agreement_sign_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/download":{"post":{"tags":["agreement"],"summary":"Sign Download","description":"{ \"token\": str, \"document_id\": int } — this signer's copy, after they have signed it","operationId":"sign_download_agreement_sign_download_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/mine":{"post":{"tags":["agreement"],"summary":"Sign Mine","description":"input data is None — documents waiting for the signed-in person's signature.\n\nAny logged-in user may call this: it answers only about THEM, by the email the\npack recorded, and returns no link. It is what puts \"you have something to sign\"\nin front of someone who deleted the email.","operationId":"sign_mine_agreement_sign_mine_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/sign/my_link":{"post":{"tags":["agreement"],"summary":"Sign My Link","description":"{ \"signer_id\": int } — a fresh signing link for the signed-in person.\n\nIssued only to the person the pack names, and it REPLACES any link already sent\nto them, so a forwarded email cannot still be used. The SMS code is still\nrequired afterwards: being signed in proves who holds the account, not who holds\nthe mobile the deed records.","operationId":"sign_my_link_agreement_sign_my_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/pending":{"post":{"tags":["agreement"],"summary":"Packet Pending","description":"input data is None — what is waiting for Televita right now","operationId":"packet_pending_agreement_packet_pending_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/invite":{"post":{"tags":["agreement"],"summary":"Application Invite","description":"{ \"contact_name\": str, \"contact_email\": str } — email a pharmacy the onboarding form","operationId":"application_invite_agreement_application_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/list":{"post":{"tags":["agreement"],"summary":"Application List","description":"input data is None — applications, newest first","operationId":"application_list_agreement_application_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/used":{"post":{"tags":["agreement"],"summary":"Application Used","description":"{ \"id\": int, \"pharmacy_id\": int } — this application became that pharmacy","operationId":"application_used_agreement_application_used_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/cancel":{"post":{"tags":["agreement"],"summary":"Application Cancel","description":"{ \"id\": int, \"reason\": str } — stop a form being filled in","operationId":"application_cancel_agreement_application_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/for_pharmacy":{"post":{"tags":["agreement"],"summary":"Application For Pharmacy","description":"{ \"pharmacy_id\": int } — the application this pharmacy came from, if any","operationId":"application_for_pharmacy_agreement_application_for_pharmacy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/open":{"post":{"tags":["agreement"],"summary":"Application Open","description":"{ \"token\": str } — the questions, and whatever has been answered so far","operationId":"application_open_agreement_application_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/save":{"post":{"tags":["agreement"],"summary":"Application Save","description":"{ \"token\": str, \"answers\": {...} } — keep what has been typed so far","operationId":"application_save_agreement_application_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/application/submit":{"post":{"tags":["agreement"],"summary":"Application Submit","description":"{ \"token\": str, \"answers\": {...} } — send it to Televita","operationId":"application_submit_agreement_application_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/agreement/packet/cancel":{"post":{"tags":["agreement"],"summary":"Packet Cancel","description":"{ \"id\": int, \"reason\": str }","operationId":"packet_cancel_agreement_packet_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/lead/touch":{"post":{"tags":["lead"],"summary":"Touch","description":"{\"partner\": \"kimia\", \"placement\": \"sms-a\"}","operationId":"touch_lead_touch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/lead/outcomes":{"post":{"tags":["lead"],"summary":"Outcomes","description":"{\"from\": \"YYYY-MM-DD\", \"to\": \"YYYY-MM-DD\", \"partner\": \"str|blank\"}","operationId":"outcomes_lead_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/activity/overview":{"post":{"tags":["activity"],"summary":"Overview","description":"{\"from\": \"YYYY-MM-DD\", \"to\": \"YYYY-MM-DD\"}","operationId":"overview_activity_overview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/activity/prices":{"post":{"tags":["activity"],"summary":"Prices","description":"{\"from\": \"YYYY-MM-DD\", \"to\": \"YYYY-MM-DD\", \"basis\": \"private|pbs\", \"flagged_only\": false, \"search\": \"\"}","operationId":"prices_activity_prices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/activity/benchmark":{"post":{"tags":["activity"],"summary":"Benchmark","description":"{\"identity_key\": \"str\", \"price\": 26.99, \"source\": \"kimia|chemist_warehouse|other\", \"source_name\": \"\", \"checked_on\": \"YYYY-MM-DD\"}","operationId":"benchmark_activity_benchmark_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/activity/feedback_options":{"post":{"tags":["activity"],"summary":"Feedback Options","description":"{}","operationId":"feedback_options_activity_feedback_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/activity/feedback":{"post":{"tags":["activity"],"summary":"Feedback","description":"{\"token\": \"str\", \"choice\": \"price_high|delivery_cost|just_checking|need_sooner|did_not_work|other\"}","operationId":"feedback_activity_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/help/event":{"post":{"tags":["help"],"summary":"Event","description":"{\"events\": [{\"surface\": \"web_sheet\", \"event\": \"open\", \"item\": \"\", \"route\": \"/\", \"text\": \"\"}]}","operationId":"event_help_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/help/usage":{"post":{"tags":["help"],"summary":"Usage","description":"{\"from\": \"YYYY-MM-DD\", \"to\": \"YYYY-MM-DD\", \"tier\": \"customer\"}","operationId":"usage_help_usage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/help/enquiries":{"post":{"tags":["help"],"summary":"Enquiries","description":"{\"from\": \"YYYY-MM-DD\", \"to\": \"YYYY-MM-DD\", \"status\": \"open\"}","operationId":"enquiries_help_enquiries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/help/enquiry/answered":{"post":{"tags":["help"],"summary":"Enquiry Answered","description":"{\"id\": 1, \"answered\": true}","operationId":"enquiry_answered_help_enquiry_answered_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/reminder/overview":{"post":{"tags":["reminder"],"summary":"Overview","description":"{\"view\": \"due\", \"search\": \"\"}","operationId":"overview_reminder_overview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/reminder/update":{"post":{"tags":["reminder"],"summary":"Update","description":"{\"id\": 1, \"action\": \"cancel|restore|move|send_now\", \"due_on\": \"YYYY-MM-DD\"}","operationId":"update_reminder_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/audience":{"post":{"tags":["marketing"],"summary":"Audience","description":"{\"filters\": {...}, \"ignore_cap\": false}","operationId":"audience_marketing_audience_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/recipients":{"post":{"tags":["marketing"],"summary":"Recipients","description":"{\"filters\": {...}, \"ignore_cap\": false}","operationId":"recipients_marketing_recipients_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/check":{"post":{"tags":["marketing"],"summary":"Check","description":"{\"message\": \"...\", \"link_url\": \"https://...\", \"longest_name\": 16}","operationId":"check_marketing_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/campaigns":{"post":{"tags":["marketing"],"summary":"Campaigns","description":"{}","operationId":"campaigns_marketing_campaigns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/campaign":{"post":{"tags":["marketing"],"summary":"Campaign","description":"{\"id\": 1}","operationId":"campaign_marketing_campaign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/saved":{"post":{"tags":["marketing"],"summary":"Saved","description":"{\"kind\": \"message|segment\"}","operationId":"saved_marketing_saved_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/consent_log":{"post":{"tags":["marketing"],"summary":"Consent Log","description":"{}","operationId":"consent_log_marketing_consent_log_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/test":{"post":{"tags":["marketing"],"summary":"Test","description":"{\"title\": \"...\", \"message\": \"...\", \"link_url\": \"https://...\"}","operationId":"test_marketing_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/send":{"post":{"tags":["marketing"],"summary":"Send","description":"{\"title\", \"message\", \"link_url\", \"filters\": {...}, \"ignore_cap\": false}","operationId":"send_marketing_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/send_batch":{"post":{"tags":["marketing"],"summary":"Send Batch","description":"{\"id\": 1}","operationId":"send_batch_marketing_send_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/cancel":{"post":{"tags":["marketing"],"summary":"Cancel","description":"{\"id\": 1}","operationId":"cancel_marketing_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/save":{"post":{"tags":["marketing"],"summary":"Save","description":"{\"kind\": \"message|segment\", \"name\": \"...\", \"message\": \"...\" | \"filters\": {...}}","operationId":"save_marketing_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/delete_saved":{"post":{"tags":["marketing"],"summary":"Delete Saved","description":"{\"id\": 1}","operationId":"delete_saved_marketing_delete_saved_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/opt_out":{"post":{"tags":["marketing"],"summary":"Opt Out","description":"{\"mobile\": \"0412 345 678\"} - turns offers OFF (never on)","operationId":"opt_out_marketing_opt_out_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/my_consent":{"post":{"tags":["marketing"],"summary":"My Consent","description":"{} reads ({\"opted_in\", \"answered\"}); {\"opt_in\": true|false, \"source\": \"profile|checkout|home|signup\"} sets.\nThe customer's own \"Offers and news\" switch. Own account only; no permission\nbeyond being signed in (like /user/remindersOptOut).","operationId":"my_consent_marketing_my_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/signup_box":{"post":{"tags":["marketing"],"summary":"Signup Box","description":"{} -> {\"show\": true|false}. Whether the quick-order sign-up step shows\nthe unticked \"Text me offers and news\" box (Config New_Customer_Signup_Offers_Box). No sign-in: the\nperson is creating their account. Answers a setting only - nothing about anyone.","operationId":"signup_box_marketing_signup_box_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/unsubscribe":{"post":{"tags":["marketing"],"summary":"Unsubscribe","description":"{\"code\": \"abcd2345\", \"confirm\": false|true}","operationId":"unsubscribe_marketing_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/marketing/click":{"post":{"tags":["marketing"],"summary":"Click","description":"{\"code\": \"abcd2345\"} -> {\"url\": \"https://...\"}","operationId":"click_marketing_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/address/get":{"post":{"tags":["address"],"summary":"Get Addresses","description":"input data is None — returns the caller's saved addresses","operationId":"get_addresses_address_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/address/save":{"post":{"tags":["address"],"summary":"Save Address","description":"input data: {id?, address_line, unit?, suburb, state, postcode, latitude?, longitude?, place_id?, entry_method, delivery_notes?}","operationId":"save_address_address_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/address/delete":{"post":{"tags":["address"],"summary":"Delete Address","description":"input data: {id}","operationId":"delete_address_address_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/address/validate":{"post":{"tags":["address"],"summary":"Validate Address","description":"input data: {address_line, suburb, state, postcode} — geocode without saving (checkout preview / Phase B tester)","operationId":"validate_address_address_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/getall":{"post":{"tags":["pharmacy"],"summary":"Get All","description":"input data is None — full network: pharmacies + zones + postcode claims","operationId":"get_all_pharmacy_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/save":{"post":{"tags":["pharmacy"],"summary":"Save","description":"input data: pharmacy fields (+id to update). name required.","operationId":"save_pharmacy_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/delete":{"post":{"tags":["pharmacy"],"summary":"Delete Pharmacy","description":"input data: {id} — removes the pharmacy, its zones and postcode claims","operationId":"delete_pharmacy_pharmacy_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/zone/save":{"post":{"tags":["pharmacy"],"summary":"Zone Save","description":"input data: {id?, pharmacy_id, label?, center_lat, center_lng, radius_km, priority?, is_active?}","operationId":"zone_save_pharmacy_zone_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/zone/delete":{"post":{"tags":["pharmacy"],"summary":"Zone Delete","description":"input data: {id}","operationId":"zone_delete_pharmacy_zone_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/postcodes/set":{"post":{"tags":["pharmacy"],"summary":"Postcodes Set","description":"input data: {pharmacy_id, postcodes: ['6025', ...]} — replaces the claim list","operationId":"postcodes_set_pharmacy_postcodes_set_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/route_preview":{"post":{"tags":["pharmacy"],"summary":"Route Preview","description":"input data: {address?, postcode?, requires_s8?, requires_cold_chain?} — dry-run of the REAL routing engine","operationId":"route_preview_pharmacy_route_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/abn_lookup":{"post":{"tags":["pharmacy"],"summary":"Abn Lookup","description":"input data: {abn} — live ABR verification (optional: needs ABN_LOOKUP_GUID env)","operationId":"abn_lookup_pharmacy_abn_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/group/getall":{"post":{"tags":["pharmacy"],"summary":"Group Get All","description":"input data is None — pharmacy groups with store counts and owners","operationId":"group_get_all_pharmacy_group_getall_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/group/save":{"post":{"tags":["pharmacy"],"summary":"Group Save","description":"{ \"id\": int|null, \"name\": str, \"abn\": str|null, \"is_active\": bool }","operationId":"group_save_pharmacy_group_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/group/delete":{"post":{"tags":["pharmacy"],"summary":"Group Delete","description":"{ \"id\": int }","operationId":"group_delete_pharmacy_group_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/group/setowner":{"post":{"tags":["pharmacy"],"summary":"Group Set Owner","description":"{ \"group_id\": int, \"user_id\": int }  — attach an EXISTING user as owner","operationId":"group_set_owner_pharmacy_group_setowner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/group/createowner":{"post":{"tags":["pharmacy"],"summary":"Group Create Owner","description":"{ \"group_id\": int, \"user_name\", \"password\", \"first_name\", \"last_name\", \"phone_number\", \"email\" }","operationId":"group_create_owner_pharmacy_group_createowner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/mystores":{"post":{"tags":["pharmacy"],"summary":"My Stores","description":"input data is None — only the stores the caller works at","operationId":"my_stores_pharmacy_mystores_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/notice/network":{"post":{"tags":["pharmacy"],"summary":"Notice Network","description":"input data is None — the notice shown to every store (any state), or null","operationId":"notice_network_pharmacy_notice_network_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/notice/save":{"post":{"tags":["pharmacy"],"summary":"Notice Save","description":"{ \"pharmacy_id\": int|null, \"notice\": {kind, badge, message, starts_at?, ends_at?, requires_ack?} | null } — null removes","operationId":"notice_save_pharmacy_notice_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/notice/ack":{"post":{"tags":["pharmacy"],"summary":"Notice Ack","description":"{ \"id\": int } — \"Understood\": records who pressed it and when; the banner keeps showing while the window is open","operationId":"notice_ack_pharmacy_notice_ack_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/staff/list":{"post":{"tags":["pharmacy"],"summary":"Staff List","description":"{ \"pharmacy_id\": int }","operationId":"staff_list_pharmacy_staff_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/staff/create":{"post":{"tags":["pharmacy"],"summary":"Staff Create","description":"{ \"pharmacy_id\": int, \"user_name\", \"password\", \"first_name\", \"last_name\", \"phone_number\", \"email\" }","operationId":"staff_create_pharmacy_staff_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/staff/attach":{"post":{"tags":["pharmacy"],"summary":"Staff Attach","description":"{ \"pharmacy_id\": int, \"user_id\": int }","operationId":"staff_attach_pharmacy_staff_attach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/staff/detach":{"post":{"tags":["pharmacy"],"summary":"Staff Detach","description":"{ \"pharmacy_id\": int, \"user_id\": int }","operationId":"staff_detach_pharmacy_staff_detach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/staff/setactive":{"post":{"tags":["pharmacy"],"summary":"Staff Set Active","description":"{ \"user_id\": int, \"is_active\": bool }","operationId":"staff_set_active_pharmacy_staff_setactive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/staff/update":{"post":{"tags":["pharmacy"],"summary":"Staff Update","description":"{ \"user_id\": int, \"user_name\"?, \"first_name\"?, \"last_name\"?, \"email\"? }","operationId":"staff_update_pharmacy_staff_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/mystore/save":{"post":{"tags":["pharmacy"],"summary":"My Store Save","description":"{ \"id\": int, plus any of trading_hours, pickup_instructions, contact_person, phone_number, email_operations, email_accounting, email_operations_enabled, email_accounting_enabled, is_paused, resume_grace_seconds, passkey_unlock_enabled }","operationId":"my_store_save_pharmacy_mystore_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/supplier_check":{"post":{"tags":["pharmacy"],"summary":"Supplier Check","description":"{ \"names\": [\"Apotex\", ...] } - how many catalogue products each supplier name matches; nothing is saved","operationId":"supplier_check_pharmacy_supplier_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/fee_preview":{"post":{"tags":["pharmacy"],"summary":"Fee Preview","description":"{ \"pharmacy_id\": int, \"fee_mode\": \"default\"|\"custom\", \"fee_rules\": {…}|null, \"limit\": int } — classify the store's latest paid orders with these rules; nothing is saved","operationId":"fee_preview_pharmacy_fee_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents":{"post":{"tags":["pharmacy"],"summary":"Print Agents","description":"{ \"pharmacy_id\": int } — the computers that print this shop's labels","operationId":"print_agents_pharmacy_print_agents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/enrolment_code":{"post":{"tags":["pharmacy"],"summary":"Print Enrolment Code","description":"{ \"pharmacy_id\": int } — issue a one-time setup code","operationId":"print_enrolment_code_pharmacy_print_agents_enrolment_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/printer":{"post":{"tags":["pharmacy"],"summary":"Print Agent Printer","description":"{ \"agent_id\": int, \"printer\": \"str\" } — choose the delivery-label printer","operationId":"print_agent_printer_pharmacy_print_agents_printer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/test":{"post":{"tags":["pharmacy"],"summary":"Print Agent Test","description":"{ \"agent_id\": int } — send a test label to that printer","operationId":"print_agent_test_pharmacy_print_agents_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/remove":{"post":{"tags":["pharmacy"],"summary":"Print Agent Remove","description":"{ \"agent_id\": int } — retire a computer","operationId":"print_agent_remove_pharmacy_print_agents_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/package":{"post":{"tags":["pharmacy"],"summary":"Print Agent Package","description":"{} — download the setup files for this environment","operationId":"print_agent_package_pharmacy_print_agents_package_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/lockouts":{"post":{"tags":["pharmacy"],"summary":"Print Agent Lockouts","description":"{} — sources currently shut out of enrolment","operationId":"print_agent_lockouts_pharmacy_print_agents_lockouts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/pharmacy/print_agents/unlock":{"post":{"tags":["pharmacy"],"summary":"Print Agent Unlock","description":"{ \"ip\": \"str\" } — let a locked-out source try again","operationId":"print_agent_unlock_pharmacy_print_agents_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/get_by_gtins":{"post":{"tags":["wsd_enrichment"],"summary":"Get By Gtins","description":"{\n    \"gtins\": [\"string\", ...] (REQUIRED — up to 200 GTINs)\n}\n\nReturns {\"rows\": {gtin: enrichment_dict}} for the GTINs that have an\nenrichment row. GTINs without one are simply absent.","operationId":"get_by_gtins_wsd_enrichment_get_by_gtins_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/summary":{"post":{"tags":["wsd_enrichment"],"summary":"Summary","description":"{}\n\nCoverage stats for the admin page banner: enrichment row count, fridge\ncount, and how much of wsd_pricebook is covered.","operationId":"summary_wsd_enrichment_summary_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/upload":{"post":{"tags":["wsd_enrichment"],"summary":"Upload","description":"{\n    \"file_base64\": \"string\" (REQUIRED — base64-encoded .xlsx workbook),\n    \"filename\":    \"string\" (optional — used only in audit log)\n}\n\nAtomic merge-by-GTIN upload of the enrichment workbook produced by\nwsd_enrichment_tool/build_enrichment_xlsx.py. First-sheet headers\n(snake_case, any order): gtin (required) plus the enrichment columns.\n\nValidation runs on every row before any DB write; ANY failure (missing\ngtin where other cells are set, duplicate gtin, unparseable numeric/bool,\nout-of-range dimension/weight) rejects the entire upload with the full\nerror list. Existing GTINs are UPDATEd (all provided columns replaced —\nthe build tool owns per-field precedence), new GTINs INSERTed, GTINs in\nDB but absent from the file LEFT ALONE.","operationId":"upload_wsd_enrichment_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/unmatched/list":{"post":{"tags":["wsd_enrichment"],"summary":"Unmatched List","description":"{\n    \"status\": \"pending\" | \"resolved\" | \"dismissed\" (optional, default \"pending\"),\n    \"limit\": int (optional, default 100, max 500)\n}","operationId":"unmatched_list_wsd_enrichment_unmatched_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/unmatched/map":{"post":{"tags":["wsd_enrichment"],"summary":"Unmatched Map","description":"{\n    \"id\":   int (REQUIRED — wsd_unmatched_item id),\n    \"gtin\": \"string\" (REQUIRED — must exist in wsd_pricebook)\n}\n\nMaps the queued medication to a pricebook GTIN: upserts the wsd_gtin_alias\n(source='admin') and marks the queue row resolved. Every future script\nwith the same generic/brand/strength/form then prices off this alias.","operationId":"unmatched_map_wsd_enrichment_unmatched_map_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/unmatched/dismiss":{"post":{"tags":["wsd_enrichment"],"summary":"Unmatched Dismiss","description":"{\n    \"id\": int (REQUIRED — wsd_unmatched_item id)\n}\n\nMarks a queue row dismissed (e.g. an item you genuinely don't stock).\nIt resurfaces automatically if the same medication appears again.","operationId":"unmatched_dismiss_wsd_enrichment_unmatched_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/alias/list":{"post":{"tags":["wsd_enrichment"],"summary":"Alias List","description":"{\n    \"search\": \"string\" (optional — substring on name_key/gtin/label),\n    \"limit\": int (optional, default 100, max 500)\n}","operationId":"alias_list_wsd_enrichment_alias_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/alias/delete":{"post":{"tags":["wsd_enrichment"],"summary":"Alias Delete","description":"{\n    \"id\": int (REQUIRED — wsd_gtin_alias id)\n}\n\nDeletes a mapping (the undo for a wrong 'auto' match). The next script\nfor that medication re-queues as unmatched instead of pricing off it.","operationId":"alias_delete_wsd_enrichment_alias_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/unknown_gtin/list":{"post":{"tags":["wsd_enrichment"],"summary":"Unknown Gtin List","description":"{\n    \"status\": \"pending\" | \"resolved\" | \"dismissed\" (optional, default \"pending\"),\n    \"limit\": int (optional, default 100, max 500)\n}\n\nAlso AUTO-RESOLVES: any pending GTIN that now exists in wsd_pricebook is\nflipped to resolved before the list is returned (e.g. after a WSP upload\nor a manual Add filled the gap).","operationId":"unknown_gtin_list_wsd_enrichment_unknown_gtin_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/unknown_gtin/dismiss":{"post":{"tags":["wsd_enrichment"],"summary":"Unknown Gtin Dismiss","description":"{\n    \"id\": int (REQUIRED — wsd_unknown_gtin id)\n}\n\nMarks a gap row dismissed (e.g. an item you don't intend to stock).\nIt resurfaces automatically if the same GTIN fails pricing again.","operationId":"unknown_gtin_dismiss_wsd_enrichment_unknown_gtin_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/list":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss List","description":"{\n    \"status\": \"pending\" | \"pharmacist\" | \"resolved\" | \"dismissed\" (optional, default \"pending\"),\n    \"reason_code\": \"F1\"..\"F6\" (optional — omit for all),\n    \"limit\": int (optional, default 100, max 500)\n}\n\nReturns { counts: {F1: n, ...}, total_pending: n, auto_resolved: n,\nlabels: {...}, fixes: {...}, rows: [...] } where counts are\nALWAYS the full pending picture regardless of the reason filter, so the\ntiles do not change when you filter the table underneath them.\n\nAlso AUTO-RESOLVES first: pending F3/F4/F5 rows whose pricebook row now\nexists, is available and carries a usable price are flipped to resolved\n(mirrors the unknown-GTIN queue). F1/F2 are never auto-resolved — a name\nmiss is fixed by an alias, not by a row appearing.","operationId":"pricing_miss_list_wsd_enrichment_pricing_miss_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/dismiss":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Dismiss","description":"{\n    \"id\": int (REQUIRED — pricing_miss id)\n}\n\nMarks one miss dismissed (e.g. a product you don't intend to stock). It\nresurfaces automatically if the same medicine fails the same way again —\nsame semantics as the other two queues.","operationId":"pricing_miss_dismiss_wsd_enrichment_pricing_miss_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/pharmacist":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Pharmacist","description":"{\n    \"id\": int (REQUIRED - pricing_miss id),\n    \"on\": bool (REQUIRED - true marks the row, false puts it back to pending)\n}\n\nMarks one pending miss \"Pharmacist prices\": a medicine that will never price\nby itself (specially made or specially ordered). Unlike a dismissed row it\nstays marked when the medicine is checked again; the customer page says why\nthere is no price (Error Messages 4018) above \"Ask our pharmacist to price\nthis\"; the \"Couldn't price\" email leaves it out; and its Invite sends the\n\"Invite-back text - medicines our pharmacist prices\".","operationId":"pricing_miss_pharmacist_wsd_enrichment_pricing_miss_pharmacist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/import_queues":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Import Queues","description":"{}\n\nOne-off (but safely repeatable) import of the history the two existing\nqueues already hold: wsd_unmatched_item becomes F1/F2 by its recorded\ncandidate_count, wsd_unknown_gtin becomes F3. Hit counts and first/last\nseen are COPIED from the source rows, never invented; is_private stays\nNULL because the queues never recorded it; a row whose candidate_count\nwas never recorded is skipped rather than guessed at.\n\nExisting miss rows are left untouched — no hit_count bump, no overwritten\nlast_seen — so running this twice changes nothing. Imported rows carry the\nsame miss_key the live recorder builds, so the next real failure of that\nmedicine increments the imported row instead of duplicating it.","operationId":"pricing_miss_import_queues_wsd_enrichment_pricing_miss_import_queues_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/product_key/rebuild":{"post":{"tags":["wsd_enrichment"],"summary":"Product Key Rebuild","description":"{}\n\nRebuilds the structured identity index (wsd_product_key) from the current\npricebook + enrichment. Idempotent, and safe to run at any time.\n\nThe index is DERIVED data — nothing in it is authored by a human — so a\nstack that has never built one is a single call away from a correct index,\nand no data has to be carried between stacks. Run it after a pricebook or\nenrichment upload; until it is built, pricing behaves exactly as it did\nbefore the index existed (the matcher falls back to its text search).","operationId":"product_key_rebuild_wsd_enrichment_product_key_rebuild_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/product_key/coverage":{"post":{"tags":["wsd_enrichment"],"summary":"Product Key Coverage Endpoint","description":"{}\n\nHow much of the pricebook the identity index covers, and how much of it can\nactually be grouped (molecule AND strength both parsed).","operationId":"product_key_coverage_endpoint_wsd_enrichment_product_key_coverage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/invite_back/list":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Invite Back List","description":"{}\n\nCustomers who checked a script in the Config look-back window and nothing\non it could be priced, who placed no order since, have not been invited\nbefore and have not opted out of reminders. Name + last four digits of the\nmobile + when and how often they tried. Nothing about the script.","operationId":"pricing_miss_invite_back_list_wsd_enrichment_pricing_miss_invite_back_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/invite_back/send":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Invite Back Send","description":"{\n    \"user_ids\": [int, ...]   (REQUIRED - the customers ticked on the list)\n}\n\nSends the one invitation to each chosen customer. Re-checks every id against\nthe live candidate list, stamps invited_back_at before each send so nobody\nis ever invited twice. Returns {requested, sent, skipped, failed}.","operationId":"pricing_miss_invite_back_send_wsd_enrichment_pricing_miss_invite_back_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/invite_back/outcomes":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Invite Back Outcomes","description":"{}\n\nRead-only. Every invited customer, newest first: did they come back after\nthe invitation (a new pricing attempt), did it price, did they order. Same\ndata rule as the list - never the script.","operationId":"pricing_miss_invite_back_outcomes_wsd_enrichment_pricing_miss_invite_back_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/invite_row/list":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Invite Row List","description":"{\n    \"id\": int (REQUIRED - pricing_miss id)\n}\n\nThe customers who hit this miss in the Config look-back window, each with a\nstatus - can invite / asked pharmacist, waiting / priced by pharmacist /\nordered since / invited / opted out / invited for another item in the last\nday - and whether the item prices now (\"check\"). Name + last four digits of\nthe mobile only.","operationId":"pricing_miss_invite_row_list_wsd_enrichment_pricing_miss_invite_row_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/wsd_enrichment/pricing_miss/invite_row/send":{"post":{"tags":["wsd_enrichment"],"summary":"Pricing Miss Invite Row Send","description":"{\n    \"id\": int (REQUIRED - pricing_miss id),\n    \"user_ids\": [int, ...] (REQUIRED - the customers ticked),\n    \"confirm_fixed\": bool (only for a miss that can't be re-checked here)\n}\n\nInvites the chosen customers for this miss. Refused while the item still\ndoesn't price. Re-derives every status, so nobody waiting on a pharmacist,\nalready ordered, opted out or already invited for this item is messaged.\nReturns {requested, sent, skipped, failed}.","operationId":"pricing_miss_invite_row_send_wsd_enrichment_pricing_miss_invite_row_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/list":{"post":{"tags":["queue"],"summary":"List Queue","description":"{ \"status\": int|null } — the dispense queue, scoped to the caller's pharmacy","operationId":"list_queue_queue_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/detail":{"post":{"tags":["queue"],"summary":"Detail","description":"{ \"order_number\": \"str\" } — full order (a pure read since 2026-09-02)","operationId":"detail_queue_detail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/label":{"post":{"tags":["queue"],"summary":"Label","description":"{ \"order_number\": \"str\" } — everything the printable label needs","operationId":"label_queue_label_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/label/pdf":{"post":{"tags":["queue"],"summary":"Label Pdf","description":"{ \"order_number\": \"str\" } — the printable label as a PDF","operationId":"label_pdf_queue_label_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/label/print":{"post":{"tags":["queue"],"summary":"Label Print","description":"{ \"order_number\": \"str\" } — send the label to the pharmacy's printer","operationId":"label_print_queue_label_print_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/label/status":{"post":{"tags":["queue"],"summary":"Label Status","description":"{ \"order_number\": \"str\" } — how the last print went","operationId":"label_status_queue_label_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/adhoc/options":{"post":{"tags":["queue"],"summary":"Adhoc Options","description":"{ \"pharmacy_id\": int|null } — what this store may offer on the ad-hoc label page","operationId":"adhoc_options_queue_adhoc_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/adhoc/recent":{"post":{"tags":["queue"],"summary":"Adhoc Recent","description":"{ \"pharmacy_id\": int|null } — this store's own recent ad-hoc recipients","operationId":"adhoc_recent_queue_adhoc_recent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/adhoc/preview":{"post":{"tags":["queue"],"summary":"Adhoc Preview","description":"the typed form — the label as a PDF, creating nothing","operationId":"adhoc_preview_queue_adhoc_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/adhoc/create":{"post":{"tags":["queue"],"summary":"Adhoc Create","description":"the typed form — create the parcel, freeze its label, and (on the courier channel) put it in the feed","operationId":"adhoc_create_queue_adhoc_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/accept":{"post":{"tags":["queue"],"summary":"Accept","description":"{ \"order_number\": \"str\" } — explicit Accept (bulk/edge cases; normally derived)","operationId":"accept_queue_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/ready":{"post":{"tags":["queue"],"summary":"Ready","description":"{ \"order_number\": \"str\", \"is_fridge\": bool?, \"parcel\": {\"box_id\": int|null, \"weight_kg\": float}? } — Mark ready for delivery; `parcel` comes from the Australia Post label window","operationId":"ready_queue_ready_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/unready":{"post":{"tags":["queue"],"summary":"Unready","description":"{ \"order_number\": \"str\" } — back to Accepted so the order can be re-assigned","operationId":"unready_queue_unready_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/release":{"post":{"tags":["queue"],"summary":"Release","description":"{ \"order_number\": \"str\", \"reason\": \"out_of_stock|s8_policy|other\", \"note\": \"str\"? } — before Accept: moves on (if automatic moves are on); after Accept: asks an administrator, the order stays","operationId":"release_queue_release_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/decline_shelf_line":{"post":{"tags":["queue"],"summary":"Decline Shelf Line","description":"{ \"order_number\": \"str\", \"order_item_id\": int, \"reason\": \"str\" } — pharmacist can't supply ONE shelf item; raises a line-refund request for admin approval","operationId":"decline_shelf_line_queue_decline_shelf_line_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/tracking":{"post":{"tags":["queue"],"summary":"Tracking","description":"{ \"order_number\": \"str\", \"tracking_number\": \"str\" } — capture the AusPost article","operationId":"tracking_queue_tracking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/prepaid_label/window":{"post":{"tags":["queue"],"summary":"Prepaid Label Window","description":"{ \"order_number\": \"str\" } — what the Australia Post label window shows: the suggested box, every listed size, the service, from / to and the instructions that print","operationId":"prepaid_label_window_queue_prepaid_label_window_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/prepaid_label/cancel":{"post":{"tags":["queue"],"summary":"Prepaid Label Cancel","description":"{ \"order_number\": \"str\", \"next\": \"rebuy\"|\"counter\", \"reason\"?: \"str\" } — cancel the order's bought Australia Post label (at once); it then waits for its refund in MyPost Business","operationId":"prepaid_label_cancel_queue_prepaid_label_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/auspost_labels/list":{"post":{"tags":["queue"],"summary":"Auspost Labels List","description":"{ \"from\"?: \"YYYY-MM-DD\", \"to\"?: \"YYYY-MM-DD\", \"group\"?: \"waiting|lodged|void_requested|voided|kept\", \"pharmacy_id\"?: int, \"q\"?: \"str\" } — the AusPost labels page","operationId":"auspost_labels_list_queue_auspost_labels_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/auspost_labels/export":{"post":{"tags":["queue"],"summary":"Auspost Labels Export","description":"same filters as /auspost_labels/list — an .xlsx, base64","operationId":"auspost_labels_export_queue_auspost_labels_export_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/prepaid_label/retry":{"post":{"tags":["queue"],"summary":"Prepaid Label Retry","description":"{ \"order_number\": \"str\", \"parcel\": {\"box_id\": int|null, \"weight_kg\": float}? } — try buying the prepaid Australia Post label again","operationId":"prepaid_label_retry_queue_prepaid_label_retry_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/prepaid_label/pay_at_counter":{"post":{"tags":["queue"],"summary":"Prepaid Label Pay At Counter","description":"{ \"order_number\": \"str\", \"reason\"?: \"str\" } — post this one at the counter instead; an unused prepaid label is cancelled (refund in MyPost Business)","operationId":"prepaid_label_pay_at_counter_queue_prepaid_label_pay_at_counter_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/prepaid_label/state":{"post":{"tags":["queue"],"summary":"Prepaid Label State","description":"{ \"order_number\": \"str\" } — the prepaid label's state only (polled for a few seconds after Mark ready)","operationId":"prepaid_label_state_queue_prepaid_label_state_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/prepaid_label/pdf":{"post":{"tags":["queue"],"summary":"Prepaid Label Pdf","description":"{ \"order_number\": \"str\" } — just the Australia Post label, as a PDF (reprint; never buys)","operationId":"prepaid_label_pdf_queue_prepaid_label_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/handover":{"post":{"tags":["queue"],"summary":"Handover","description":"{ \"order_number\": \"str\", \"action\": \"posted|collected|out_for_delivery|delivered|could_not_deliver\", \"tracking_number\"?: \"str\", \"note\"?: \"str\" } — the pharmacy hands the parcel over (or posts it); a courier-network order is closed by the driver, not here","operationId":"handover_queue_handover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/history":{"post":{"tags":["queue"],"summary":"History","description":"{ \"pharmacy_id\"?: int, \"days\"?: 30, \"outcome\"?: \"out_for_delivery|posted|delivered|collected|failed\", \"search\"?: \"str\" } — the store's orders that have left the queue","operationId":"history_queue_history_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/trail":{"post":{"tags":["queue"],"summary":"Trail","description":"{ \"order_number\": \"str\" } — the delivery timeline for one of the store's own orders","operationId":"trail_queue_trail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/dispense_answer":{"post":{"tags":["queue"],"summary":"Dispense Answer","description":"{ \"order_number\": \"str\", \"was_us\": bool }","operationId":"dispense_answer_queue_dispense_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/notes":{"post":{"tags":["queue"],"summary":"Notes","description":"{ \"order_number\": \"str\" } - the order's notes (open follow-ups first) and its full trail","operationId":"notes_queue_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/note/add":{"post":{"tags":["queue"],"summary":"Note Add","description":"{ \"order_number\": \"str\", \"body\": \"str\", \"follow_up\": bool?, \"due\": \"close\"|\"open\"|\"YYYY-MM-DD HH:MM\"|null, \"admin_only\": bool? } - add a note or a follow-up (never edits)","operationId":"note_add_queue_note_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/queue/note/done":{"post":{"tags":["queue"],"summary":"Note Done","description":"{ \"order_number\": \"str\", \"note_id\": int, \"comment\": \"str\"? } - mark one open follow-up done (once)","operationId":"note_done_queue_note_done_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/price_request/list":{"post":{"tags":["price_request"],"summary":"List Requests","description":"{ \"pharmacy_id\": int|null } — pending pharmacist-price requests, scoped like the dispense queue","operationId":"list_requests_price_request_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/price_request/search":{"post":{"tags":["price_request"],"summary":"Search","description":"{ \"request_id\": int, \"text\": \"str\" } — catalogue rows for the Set price dialog (names + availability only)","operationId":"search_price_request_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/price_request/quote":{"post":{"tags":["price_request"],"summary":"Quote","description":"{ \"request_id\": int, \"gtin\": \"str\" } — the customer price if priced from this catalogue row","operationId":"quote_price_request_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/price_request/set":{"post":{"tags":["price_request"],"summary":"Set Price","description":"{\n  \"request_id\": int,\n  \"price\": number,              # ignored when gtin is sent - recomputed from the catalogue\n  \"gtin\": \"str\"|null,\n  \"product_name\": \"str\"|null,   # shown to the customer\n  \"note\": \"str\"|null,           # shown to the customer\n  \"confirmed\": bool             # true after the out-of-range question was answered\n}","operationId":"set_price_price_request_set_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/price_request/cannot_supply":{"post":{"tags":["price_request"],"summary":"Cannot Supply","description":"{ \"request_id\": int, \"reason\": \"str\" }","operationId":"cannot_supply_price_request_cannot_supply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/price_request/decline":{"post":{"tags":["price_request"],"summary":"Decline","description":"{ \"order_number\": \"str\" } — the customer declines a pharmacist-priced order; no charge","operationId":"decline_price_request_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/payment/init":{"post":{"tags":["payment"],"summary":"Init","description":"{ \"order_number\": \"str\" } — what the pay page needs to render","operationId":"init_payment_init_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/payment/charge":{"post":{"tags":["payment"],"summary":"Charge","description":"{\n             \"order_number\": \"str\",\n             \"encrypted_card_number\": \"eCrypted:…\",\n             \"encrypted_cvn\": \"eCrypted:…\",\n             \"cardholder_name\": \"str\",\n             \"exp_month\": \"MM\",\n             \"exp_year\": \"YY\"\n             }","operationId":"charge_payment_charge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/payment/status":{"post":{"tags":["payment"],"summary":"Status","description":"{ \"order_number\": \"str\" } — poll after a charge","operationId":"status_payment_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/payment/applepay/validate":{"post":{"tags":["payment"],"summary":"Applepay Validate","description":"{ \"order_number\": \"str\", \"validation_url\": \"https://apple-pay-gateway…apple.com/…\" }","operationId":"applepay_validate_payment_applepay_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/payment/applepay/charge":{"post":{"tags":["payment"],"summary":"Applepay Charge","description":"{ \"order_number\": \"str\", \"payment_token\": { …event.payment.token… }, \"cardholder_name\": \"str\" }","operationId":"applepay_charge_payment_applepay_charge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/payment/googlepay/charge":{"post":{"tags":["payment"],"summary":"Googlepay Charge","description":"{ \"order_number\": \"str\", \"payment_token\": \"<tokenizationData.token string>\", \"cardholder_name\": \"str\" }","operationId":"googlepay_charge_payment_googlepay_charge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/list":{"post":{"tags":["refund"],"summary":"List Requests","description":"{ \"status\": \"pending|refunded|failed|rejected_by_admin\"|null }","operationId":"list_requests_refund_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/request":{"post":{"tags":["refund"],"summary":"Request Refund","description":"{ \"order_number\": \"str\", \"amount\": float|null, \"reason\": \"str\", \"order_item_id\": int|null } — order_item_id refunds exactly that line (amount is then the line's price)","operationId":"request_refund_refund_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/preview":{"post":{"tags":["refund"],"summary":"Preview","description":"{ \"order_number\": \"str\", \"amount\": float|null } — how a whole-order refund would be paid back: to the card, and back to reward credit","operationId":"preview_refund_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/approve":{"post":{"tags":["refund"],"summary":"Approve","description":"{ \"id\": int, \"decision_reason\": \"str\"|null }","operationId":"approve_refund_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/reject":{"post":{"tags":["refund"],"summary":"Reject","description":"{ \"id\": int, \"decision_reason\": \"str\" }","operationId":"reject_refund_reject_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/reconciliation/list":{"post":{"tags":["refund"],"summary":"Reconciliation List","description":"input data is None — orders whose payment outcome is unknown","operationId":"reconciliation_list_refund_reconciliation_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/reconciliation/run":{"post":{"tags":["refund"],"summary":"Reconciliation Run","description":"input data is None — ask eWAY about every stuck attempt now","operationId":"reconciliation_run_refund_reconciliation_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/auspost_voids/list":{"post":{"tags":["refund"],"summary":"Auspost Voids List","description":"input data is None — cancelled prepaid Australia Post labels waiting for their refund in MyPost Business, and unfinished purchases","operationId":"auspost_voids_list_refund_auspost_voids_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/auspost_voids/approve":{"post":{"tags":["refund"],"summary":"Auspost Voids Approve","description":"{ \"id\": int } — the label was refunded in MyPost Business","operationId":"auspost_voids_approve_refund_auspost_voids_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/auspost_voids/decline":{"post":{"tags":["refund"],"summary":"Auspost Voids Decline","description":"{ \"id\": int, \"reason\"?: str } — MyPost Business offered no refund; close it (the postage stays counted)","operationId":"auspost_voids_decline_refund_auspost_voids_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/refund/auspost_voids/release_stuck":{"post":{"tags":["refund"],"summary":"Auspost Voids Release Stuck","description":"{ \"id\": int } — release a purchase that never finished (after checking MyPost Business)","operationId":"auspost_voids_release_stuck_refund_auspost_voids_release_stuck_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/courier/status":{"post":{"tags":["courier"],"summary":"Status","description":"input data is None — health of the courier hand-off","operationId":"status_courier_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/courier/history":{"post":{"tags":["courier"],"summary":"History","description":"{ \"days\"?: 7, \"pharmacy_id\"?: int, \"outcome\"?: str, \"driver\"?: str, \"search\"?: str, \"export\"?: bool } — recent deliveries across the network; export=true returns an .xlsx (base64)","operationId":"history_courier_history_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/courier/trail":{"post":{"tags":["courier"],"summary":"Trail","description":"{ \"order_number\": \"str\" } — the delivery timeline for one order, with coordinates","operationId":"trail_courier_trail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/courier/events":{"post":{"tags":["courier"],"summary":"Events","description":"{ \"order_number\": \"str\" } — the delivery audit trail for one order","operationId":"events_courier_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/courier/override":{"post":{"tags":["courier"],"summary":"Override","description":"{ \"order_number\": \"str\", \"reason\": \"str\" } — authorise release without the handover code","operationId":"override_courier_override_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestE2EE"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}},"/health":{"get":{"summary":"Healthcheck","operationId":"healthcheck_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]},{"ConformanceID":[]}]}}},"components":{"schemas":{"ApiRequestE2EE":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"iv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iv"}},"type":"object","title":"ApiRequestE2EE"},"EnrolBody":{"properties":{"code":{"type":"string","title":"Code"},"machine_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Machine Name"},"printers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Printers"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},"type":"object","required":["code"],"title":"EnrolBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PollBody":{"properties":{"printers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Printers"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version"}},"type":"object","title":"PollBody"},"PrinterBody":{"properties":{"printer":{"type":"string","title":"Printer"}},"type":"object","required":["printer"],"title":"PrinterBody"},"ResultBody":{"properties":{"job_id":{"type":"integer","title":"Job Id"},"ok":{"type":"boolean","title":"Ok"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["job_id","ok"],"title":"ResultBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ConformanceID":{"type":"apiKey","in":"header","name":"Conformance-ID"}}}}