{"openapi":"3.1.0","info":{"title":"ShopSafe agent verification","description":"Deterministic URL evidence over REST. Keys and prepaid credit are managed by the account owner at https://shopsafe.com.au/portal/agents. Read the service capabilities for current pricing. Prices, balances and cost limits use integer Australian cents.","version":"0.8.0"},"servers":[{"url":"https://shopsafe.com.au"}],"paths":{"/api/v1/verification-batches":{"post":{"tags":["Agent verification"],"summary":"Verify a shortlist under one total ceiling","description":"Up to ten public URLs, default zero paid spend. Validate all URLs before work; exact normalised duplicates share one check. Admission follows input order and the total ceiling covers all unique items. Paid permissions, free allowances and global caps still apply. Items refused at admission are not_started and have no charge. Incomplete checks release reservations. Inspect each item: complete batch processing does not imply complete evidence or site safety. After a timeout, repeat the identical batch request to retrieve its original state. Existing batches never start more work; use a new request only within owner authority for failed/not-started items.","operationId":"shopsafe_verify_sites","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRequest"},"example":{"urls":["https://example.com/","https://example.org/"],"idempotency_key":"persisted-shortlist-001","max_age_seconds":300,"max_total_cost_aud_cents":0}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/verification-batches/{batch_id}":{"get":{"tags":["Agent verification"],"summary":"Read a batch and its per-URL outcomes","description":"Only the creating credential can retrieve this batch. Totals count unique checks once; input_indexes map duplicates to the original zero-based input positions. Polling does not start checks or charge again. Interrupted reservations may be released. Full evidence remains available through each verification_id. A completed batch can contain not-started, failed or incomplete items.","operationId":"shopsafe_verification_batch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capabilities":{"get":{"tags":["Agent verification"],"summary":"Read public pricing and coverage","description":"Public service metadata. No API key, account data, verification work or charge.","operationId":"shopsafe_capabilities","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/api/v1/verifications":{"post":{"tags":["Agent verification"],"summary":"Check one public URL within an authorised budget","operationId":"shopsafe_verify_url","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRequest"},"example":{"url":"https://example.com/","idempotency_key":"persisted-request-001","max_age_seconds":300,"max_cost_aud_cents":0}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Requires verify scope. Persist the idempotency key and identical URL, maximum age and maximum cost before calling. The default maximum cost is zero. A complete fresh check after the free allowance may deduct prepaid credit within both the request maximum and account daily cap. No card is charged and no automatic top-up occurs. Partial or interrupted work releases its reservation. Repeat the identical request after a transport failure; do not change its key or raise a limit without owner authority. Inspect risk, exact URL scope, coverage and freshness. A zero score with missing coverage is unknown; this does not authorise a transaction."}},"/api/v1/verifications/{verification_id}":{"get":{"tags":["Agent verification"],"summary":"Retrieve the recorded result","operationId":"shopsafe_verification","security":[{"HTTPBearer":[]}],"parameters":[{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","title":"Verification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"Poll a verification owned by this API key. Does not start work or incur a new charge. A failed result is terminal; retrying its original request only retrieves that result. Start another request only within the owner-authorised budget."}},"/api/v1/account":{"get":{"tags":["Agent verification"],"summary":"Read credit and spending allowances","operationId":"shopsafe_account","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationAccount"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}}}},"security":[{"HTTPBearer":[]}],"description":"Requires an expiring bearer key with lookup scope. Returns AUD cents, the current unit price, remaining free attempts and the UTC daily reset. Does not launch a check, add credit or raise a spending cap."}},"/api/v1/usage":{"get":{"tags":["Agent verification"],"summary":"Read this credential's usage and receipts","description":"Requires lookup scope. Defaults to seven inclusive UTC dates, with a maximum 31-date window and 100 receipts per page. Totals cover the entire selected period, not just the page. Follow next_cursor with the same dates; cursors expire after 24 hours. Only requests created by this credential are visible. Charges and running reservations can change after reading. Recorded verification-reservation releases are included; credit-pack purchases/refunds and browser-beta work are excluded. Reading does not start checks, charge, settle or recover reservations.","operationId":"shopsafe_usage","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFailure"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentFailure":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"http_status":{"type":"integer","title":"Http Status"},"retryable":{"type":"boolean","title":"Retryable","default":false},"retry_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After Seconds"},"next_action":{"type":"string","enum":["check_credential","request_scope","owner_authorisation","fund_account","wait_and_retry","correct_request","retrieve_original_request","new_request_if_authorised","contact_support"],"title":"Next Action"},"owner_action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Action Url"},"quick_price_aud_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quick Price Aud Cents"},"charge_status":{"type":"string","enum":["not_charged","check_original_request"],"title":"Charge Status","default":"not_charged"},"retry_instruction":{"type":"string","title":"Retry Instruction","default":"Reuse the original idempotency key and identical parameters after the stated condition changes."}},"type":"object","required":["error","message","http_status","next_action"],"title":"AgentFailure"},"BatchItem":{"properties":{"input_indexes":{"items":{"type":"integer"},"type":"array","maxItems":10,"minItems":1,"title":"Input Indexes"},"target_url":{"type":"string","title":"Target Url"},"verification_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Id"},"status":{"type":"string","enum":["running","complete","failed","not_started"],"title":"Status"},"billing_mode":{"anyOf":[{"type":"string","enum":["trial","prepaid","cache"]},{"type":"null"}],"title":"Billing Mode"},"cost_aud_cents":{"type":"integer","title":"Cost Aud Cents","default":0},"reserved_aud_cents":{"type":"integer","title":"Reserved Aud Cents","default":0},"released_aud_cents":{"type":"integer","title":"Released Aud Cents","default":0},"freshness":{"type":"string","enum":["fresh","stale","unavailable"],"title":"Freshness","default":"unavailable"},"verdict":{"anyOf":[{"$ref":"#/components/schemas/BatchVerdict"},{"type":"null"}]},"recovery":{"anyOf":[{"$ref":"#/components/schemas/AgentFailure"},{"type":"null"}]},"coverage_guidance":{"anyOf":[{"$ref":"#/components/schemas/CoverageGuidance"},{"type":"null"}]}},"type":"object","required":["input_indexes","target_url","status"],"title":"BatchItem"},"BatchRequest":{"properties":{"urls":{"items":{"type":"string","maxLength":2048,"minLength":1},"type":"array","maxItems":10,"minItems":1,"title":"Urls"},"idempotency_key":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9._-]+$","title":"Idempotency Key"},"max_age_seconds":{"type":"integer","maximum":300.0,"minimum":0.0,"title":"Max Age Seconds","default":300},"max_total_cost_aud_cents":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Max Total Cost Aud Cents","default":0}},"type":"object","required":["urls","idempotency_key"],"title":"BatchRequest"},"BatchResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"status":{"type":"string","enum":["running","complete"],"title":"Status"},"currency":{"type":"string","const":"AUD","title":"Currency","default":"AUD"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"input_count":{"type":"integer","title":"Input Count"},"unique_url_count":{"type":"integer","title":"Unique Url Count"},"max_total_cost_aud_cents":{"type":"integer","title":"Max Total Cost Aud Cents"},"unit_price_at_admission_aud_cents":{"type":"integer","title":"Unit Price At Admission Aud Cents"},"cost_aud_cents":{"type":"integer","title":"Cost Aud Cents"},"reserved_aud_cents":{"type":"integer","title":"Reserved Aud Cents"},"released_aud_cents":{"type":"integer","title":"Released Aud Cents"},"items":{"items":{"$ref":"#/components/schemas/BatchItem"},"type":"array","maxItems":10,"title":"Items"},"interpretation":{"type":"string","title":"Interpretation","default":"Complete means batch processing has ended. Inspect each item's risk, coverage and freshness. Null verdicts are not safety findings. Full evidence is available through each verification ID."},"retry_instruction":{"type":"string","title":"Retry Instruction","default":"Repeat the identical batch request after a transport failure. Existing batches never start additional work. Not-started or failed items require a new request within the owner-authorised budget; do not raise the original ceiling without owner authority."},"advisory":{"type":"string","title":"Advisory","default":"Google Web Risk provides URL reputation evidence. Some unsafe sites may be missed and some safe sites may be flagged in error. Neither this evidence nor ShopSafe guarantees the safety of a site or transaction."}},"type":"object","required":["batch_id","status","created_at","input_count","unique_url_count","max_total_cost_aud_cents","unit_price_at_admission_aud_cents","cost_aud_cents","reserved_aud_cents","released_aud_cents","items"],"title":"BatchResponse"},"BatchVerdict":{"properties":{"risk_level":{"type":"string","enum":["high_risk","elevated_risk","no_known_threats","unknown"],"title":"Risk Level"},"risk_score":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Risk Score"},"score_is_probability":{"type":"boolean","const":false,"title":"Score Is Probability","default":false},"coverage":{"type":"string","enum":["complete","partial","incomplete"],"title":"Coverage"},"observed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observed Url"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"rules_version":{"type":"string","title":"Rules Version"},"attention_checks":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Attention Checks"},"unavailable_checks":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Unavailable Checks"}},"type":"object","required":["risk_level","risk_score","coverage","observed_url","checked_at","expires_at","rules_version","attention_checks","unavailable_checks"],"title":"BatchVerdict"},"CoverageGap":{"properties":{"check":{"type":"string","maxLength":48,"title":"Check"},"affected_checks":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Affected Checks"},"reason":{"type":"string","maxLength":64,"title":"Reason"},"target_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Target Url"},"message":{"type":"string","maxLength":250,"title":"Message"},"next_action":{"type":"string","enum":["review_manually","review_destination","wait_for_allowance","contact_service_owner","new_check_if_authorised"],"title":"Next Action"},"action_label":{"type":"string","maxLength":80,"title":"Action Label"},"instruction":{"type":"string","maxLength":300,"title":"Instruction"}},"type":"object","required":["check","reason","message","next_action","action_label","instruction"],"title":"CoverageGap"},"CoverageGuidance":{"properties":{"schema_version":{"type":"string","const":"1.0","title":"Schema Version","default":"1.0"},"based_on":{"type":"string","const":"recorded_observations","title":"Based On","default":"recorded_observations"},"gaps":{"items":{"$ref":"#/components/schemas/CoverageGap"},"type":"array","maxItems":10,"minItems":1,"title":"Gaps"},"grants_spending_authority":{"type":"boolean","const":false,"title":"Grants Spending Authority","default":false},"retry_instruction":{"type":"string","title":"Retry Instruction","default":"Retrieving this result or repeating its original request ID returns the saved outcome. It does not fill these gaps. A fresh check needs a new request ID within existing owner authority and limits."}},"type":"object","required":["gaps"],"title":"CoverageGuidance"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HttpObservation":{"properties":{"status":{"type":"string","enum":["observed","blocked","unavailable","unsafe_destination","redirect_limit","invalid_redirect"],"title":"Status"},"observed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observed Url"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"redirects":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Redirects"},"response_urls":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Response Urls"},"dns_status":{"type":"string","enum":["public","unavailable","unsafe"],"title":"Dns Status","default":"unavailable"},"tls_status":{"type":"string","enum":["verified","not_https","unavailable"],"title":"Tls Status","default":"unavailable"},"content_status":{"type":"string","enum":["html","non_html","unavailable"],"title":"Content Status","default":"unavailable"},"content_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Sha256"},"form_status":{"type":"string","enum":["observed","not_applicable","unavailable"],"title":"Form Status","default":"unavailable"},"form_status_reason":{"type":"string","enum":["not_inspected","static_html","non_html","xml_response","unsupported_html","limit_exceeded"],"title":"Form Status Reason","default":"not_inspected"},"sensitive_forms":{"type":"integer","title":"Sensitive Forms","default":0},"insecure_sensitive_forms":{"type":"integer","title":"Insecure Sensitive Forms","default":0},"cross_origin_sensitive_forms":{"type":"integer","title":"Cross Origin Sensitive Forms","default":0},"https_downgrade":{"type":"boolean","title":"Https Downgrade","default":false},"strict_transport_security":{"type":"boolean","title":"Strict Transport Security","default":false}},"type":"object","required":["status"],"title":"HttpObservation"},"QuickCheck":{"properties":{"code":{"type":"string","enum":["url_syntax","public_dns","http_response","https_transport","redirect_transport","sensitive_forms","url_reputation","redirect_reputation"],"title":"Code"},"status":{"type":"string","enum":["observed","warning","matched","no_match","unavailable","not_applicable","budget_exhausted","not_configured","stale"],"title":"Status"},"scope":{"type":"string","enum":["submitted_url","observed_url","observed_redirects"],"title":"Scope"},"reason":{"type":"string","title":"Reason"},"target_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Url"}},"type":"object","required":["code","status","scope","reason"],"title":"QuickCheck"},"QuickVerdict":{"properties":{"schema_version":{"type":"string","enum":["1.1","1.2"],"title":"Schema Version","default":"1.2"},"rules_version":{"type":"string","title":"Rules Version","default":"quick-2026-10-19-v4"},"target_url":{"type":"string","title":"Target Url"},"observed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observed Url"},"scope":{"type":"string","const":"submitted_url","title":"Scope","default":"submitted_url"},"risk_level":{"type":"string","enum":["high_risk","elevated_risk","no_known_threats","unknown"],"title":"Risk Level"},"risk_score":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Risk Score"},"score_is_probability":{"type":"boolean","const":false,"title":"Score Is Probability","default":false},"coverage":{"type":"string","enum":["complete","partial","incomplete"],"title":"Coverage"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"elapsed_ms":{"type":"integer","minimum":0.0,"title":"Elapsed Ms"},"checks":{"items":{"$ref":"#/components/schemas/QuickCheck"},"type":"array","title":"Checks"},"observations":{"$ref":"#/components/schemas/HttpObservation"},"reputation":{"$ref":"#/components/schemas/ReputationEvidence"},"redirect_reputation":{"items":{"$ref":"#/components/schemas/ReputationEvidence"},"type":"array","maxItems":3,"title":"Redirect Reputation"},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"},"advisory":{"type":"string","title":"Advisory","default":"Google Web Risk provides URL reputation evidence. Some unsafe sites may be missed and some safe sites may be flagged in error. Neither this evidence nor ShopSafe guarantees the safety of a site or transaction."}},"type":"object","required":["target_url","observed_url","risk_level","risk_score","coverage","checked_at","expires_at","elapsed_ms","checks","observations","reputation"],"title":"QuickVerdict"},"ReputationEvidence":{"properties":{"provider":{"type":"string","title":"Provider"},"status":{"type":"string","title":"Status"},"target_url":{"type":"string","title":"Target Url"},"match_scope":{"type":"string","title":"Match Scope","default":"exact_url"},"matched_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Url"},"threat_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threat Type"},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observed At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["provider","status","target_url"],"title":"ReputationEvidence","description":"One source observation, scoped to the submitted URL, with explicit gaps."},"UsageReceipt":{"properties":{"verification_id":{"type":"string","title":"Verification Id"},"target_url":{"type":"string","maxLength":2048,"title":"Target Url"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"status":{"type":"string","enum":["running","complete","failed"],"title":"Status"},"billing_mode":{"type":"string","enum":["trial","prepaid","cache"],"title":"Billing Mode"},"coverage":{"anyOf":[{"type":"string","enum":["complete","partial","incomplete"]},{"type":"null"}],"title":"Coverage"},"cost_aud_cents":{"type":"integer","minimum":0.0,"title":"Cost Aud Cents"},"reserved_aud_cents":{"type":"integer","minimum":0.0,"title":"Reserved Aud Cents"},"released_aud_cents":{"type":"integer","minimum":0.0,"title":"Released Aud Cents"}},"type":"object","required":["verification_id","target_url","requested_at","completed_at","status","billing_mode","coverage","cost_aud_cents","reserved_aud_cents","released_aud_cents"],"title":"UsageReceipt"},"UsageResponse":{"properties":{"schema_version":{"type":"string","const":"1.0","title":"Schema Version","default":"1.0"},"currency":{"type":"string","const":"AUD","title":"Currency","default":"AUD"},"scope":{"type":"string","enum":["credential","account"],"title":"Scope"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"timezone":{"type":"string","const":"UTC","title":"Timezone","default":"UTC"},"request_cutoff_at":{"type":"string","format":"date-time","title":"Request Cutoff At"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"totals":{"$ref":"#/components/schemas/UsageTotals"},"receipts":{"items":{"$ref":"#/components/schemas/UsageReceipt"},"type":"array","title":"Receipts"},"limit":{"type":"integer","title":"Limit"},"page_cursor":{"type":"string","title":"Page Cursor"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"reading_cost_aud_cents":{"type":"integer","const":0,"title":"Reading Cost Aud Cents","default":0},"interpretation":{"type":"string","title":"Interpretation","default":"Requests are selected by creation date, including both UTC dates. Totals cover the entire selected period and scope. Existing running requests can change after reading. Released amounts are recorded refunds of verification reservations, not credit-pack refunds. This read does not start work, settle, refund or recover reservations. It excludes credit purchases, credit-pack refunds and browser-beta checks. Follow next_cursor for more receipts."}},"type":"object","required":["scope","start_date","end_date","request_cutoff_at","generated_at","totals","receipts","limit","page_cursor","next_cursor"],"title":"UsageResponse"},"UsageTotals":{"properties":{"requests":{"type":"integer","title":"Requests"},"completed":{"type":"integer","title":"Completed"},"failed":{"type":"integer","title":"Failed"},"running":{"type":"integer","title":"Running"},"cache_hits":{"type":"integer","title":"Cache Hits"},"trial_attempts":{"type":"integer","title":"Trial Attempts"},"charged_requests":{"type":"integer","title":"Charged Requests"},"incomplete_results":{"type":"integer","title":"Incomplete Results"},"charged_aud_cents":{"type":"integer","title":"Charged Aud Cents"},"reserved_aud_cents":{"type":"integer","title":"Reserved Aud Cents"},"released_aud_cents":{"type":"integer","title":"Released Aud Cents"}},"type":"object","required":["requests","completed","failed","running","cache_hits","trial_attempts","charged_requests","incomplete_results","charged_aud_cents","reserved_aud_cents","released_aud_cents"],"title":"UsageTotals"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerificationAccount":{"properties":{"currency":{"type":"string","const":"AUD","title":"Currency","default":"AUD"},"balance_cents":{"type":"integer","title":"Balance Cents"},"daily_limit_cents":{"type":"integer","title":"Daily Limit Cents"},"reserved_or_spent_today_cents":{"type":"integer","title":"Reserved Or Spent Today Cents"},"quick_price_cents":{"type":"integer","title":"Quick Price Cents"},"trial_requests_per_day":{"type":"integer","title":"Trial Requests Per Day"},"trial_requests_remaining_today":{"type":"integer","title":"Trial Requests Remaining Today"},"remaining_daily_spend_cents":{"type":"integer","title":"Remaining Daily Spend Cents"},"utc_day_resets_at":{"type":"string","format":"date-time","title":"Utc Day Resets At"},"paid_enabled":{"type":"boolean","title":"Paid Enabled"},"credential_paid_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Credential Paid Allowed"},"funding_url":{"type":"string","title":"Funding Url"}},"type":"object","required":["balance_cents","daily_limit_cents","reserved_or_spent_today_cents","quick_price_cents","trial_requests_per_day","trial_requests_remaining_today","remaining_daily_spend_cents","utc_day_resets_at","paid_enabled","funding_url"],"title":"VerificationAccount"},"VerificationRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"idempotency_key":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9._-]+$","title":"Idempotency Key"},"max_age_seconds":{"type":"integer","maximum":300.0,"minimum":0.0,"title":"Max Age Seconds","default":300},"max_cost_aud_cents":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Max Cost Aud Cents","default":0}},"type":"object","required":["url","idempotency_key"],"title":"VerificationRequest"},"VerificationResponse":{"properties":{"verification_id":{"type":"string","title":"Verification Id"},"status":{"type":"string","enum":["running","complete","failed"],"title":"Status"},"verdict":{"anyOf":[{"$ref":"#/components/schemas/QuickVerdict"},{"type":"null"}]},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"billing_mode":{"type":"string","enum":["trial","prepaid","cache"],"title":"Billing Mode"},"cost_aud_cents":{"type":"integer","title":"Cost Aud Cents","default":0},"reserved_aud_cents":{"type":"integer","title":"Reserved Aud Cents","default":0},"cached":{"type":"boolean","title":"Cached","default":false},"freshness":{"type":"string","enum":["fresh","stale","unavailable"],"title":"Freshness","default":"unavailable"},"recovery":{"anyOf":[{"$ref":"#/components/schemas/AgentFailure"},{"type":"null"}]},"coverage_guidance":{"anyOf":[{"$ref":"#/components/schemas/CoverageGuidance"},{"type":"null"}]}},"type":"object","required":["verification_id","status","billing_mode"],"title":"VerificationResponse"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"externalDocs":{"description":"Integration, evidence limits and runnable examples","url":"https://shopsafe.com.au/developers"}}