{"openapi":"3.1.1","info":{"title":"Signet Sentry API: Payment Protection","description":"Payments, bank accounts, disputes and refund photos. The Signet Sentry server API. Every call is made from your server with your secret key (sk_live_... or sk_test_... for the sandbox) as a Bearer token. Browser and app sessions come from the Signet tag or the mobile SDKs, which handle their own traffic: you only send the session_id they give you. Each answer carries a decision (allow, review or deny), a 0-100 risk score and reason codes. Guides, sandbox values and sample apps: https://signetsentry.com/guide. For fraud prevention only.","version":"v1"},"servers":[{"url":"https://signetsentry.com/"}],"paths":{"/v1/bank/verify":{"post":{"tags":["Payment Protection: Bank Verification"],"summary":"Check a bank account before you pay out to it or debit it","description":"Signet Bank Verification. Body: routing_number and account_number (US accounts) or iban with an optional bic (international accounts); optional account_holder_name, account_id (your id for the customer), session_id (the Signet session of the browser or app adding the account) and verification_id (a completed Signet ID verification of the same person, to compare the holder name with the name on the ID). Returns check_id, decision (allow, review, deny), risk_score 0-100, reason_codes and reasons, format (valid, kind aba or iban, country, bank_code), account (last4, fingerprint, seen_before, linked_accounts, linked_devices) and name_match (match, partial, mismatch, not_checked). Account numbers are never stored: only a keyed fingerprint and the last four digits. One call counts as one assessment. Test keys: account numbers 000000000001, 000000000002 and 000000000003 (with any valid routing number such as 021000021) give allow, review and deny.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/BankVerifyRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCheckResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Bank Verification","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/bank/links":{"post":{"tags":["Payment Protection: Bank Verification"],"summary":"Start linking a bank account with two micro-deposits","description":"Signet never moves money: you send the two small deposits through your own payout provider, the account holder reads them from their statement, and you send them to /v1/bank/links/{id}/confirm. Body: routing_number and account_number, or iban with an optional bic; account_holder_name; account_id; optional session_id and verification_id. Runs the same check as /v1/bank/verify and returns link_id, status (pending_deposits, or failed when the account is denied and no deposits should be sent), deposits (the two amounts in cents to send, returned only in this response), expires_at (10 days), attempts_remaining (3), account and check (the same object /v1/bank/verify returns). One call counts as one assessment. Test keys: the deposits are always 32 and 45 cents.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/BankVerifyRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Bank Verification","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/bank/links/{id}/confirm":{"post":{"tags":["Payment Protection: Bank Verification"],"summary":"Confirm the two micro-deposit amounts","description":"Body: amounts_cents, the two amounts the account holder saw, in any order. Returns link_id, status (verified, pending_deposits after a wrong answer, locked after three wrong answers, failed, expired) and attempts_remaining. Does not use quota. Sends the webhook events bank.link.verified and bank.link.failed.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/BankLinkConfirmRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkConfirmResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Bank Verification"}},"/v1/bank/links/{id}":{"get":{"tags":["Payment Protection: Bank Verification"],"summary":"Read a bank link","description":"Returns the same object as creating the link, with deposits set to null: the amounts are only returned when the link is created. Does not use quota.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkResult"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Bank Verification"},"delete":{"tags":["Payment Protection: Bank Verification"],"summary":"Delete a bank link","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Bank Verification"}},"/v1/disputes/evidence":{"post":{"tags":["Payment Protection: Dispute Evidence"],"summary":"Build the evidence for a disputed payment","description":"Signet Dispute Evidence. Body: transaction_id or session_id of the disputed payment, optional dispute_date, reason (fraud, the default, or other) and mark_disputed (default true). Returns the disputed payment, every earlier payment by the same customer, card or device with what matched (account_id, device_id, ip_address), whether Visa Compelling Evidence 3.0 is met (two earlier undisputed payments 120 to 365 days old, matching on two elements including the device ID or IP address), supporting facts, a strength (strong, moderate, weak, none) and a narrative to paste into the dispute response. Does not use quota.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DisputeEvidenceRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeEvidence"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Dispute Evidence","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/photo-proofs":{"post":{"tags":["Payment Protection: Photo Proof"],"summary":"Ask a customer for live photos and get the link to send them","description":"Signet Photo Proof. Returns \u0060url\u0060: send it to the customer, who takes the pictures on a hosted page; there is no way to pick a saved picture. Body: reference (your claim or order id), customer (your customer id, which tells one customer\u0027s claims from other customers\u0027), prompt (what to photograph, plain text, up to 200 characters), shots (1 to 6, default 2) and return_url (https; ?photo_proof_id= is appended). The link works for 72 hours. A completed live proof uses one ID verification of the monthly allowance; a link nobody finishes costs nothing. With a test key nothing is taken or counted: pass \u0060scenario\u0060 to choose the outcome. Errors: 400 invalid_shots, invalid_prompt, invalid_return_url, scenario_needs_test_key, unknown_scenario; 402 subscription_inactive; 429 verification_quota_exceeded.","parameters":[{"name":"test","in":"query","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CreatePhotoProofRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoProofView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Photo Proof"},"get":{"tags":["Payment Protection: Photo Proof"],"summary":"List photo proofs, newest first","description":"Filters: status (created, started, processing, completed, expired, canceled), decision (genuine, review, suspect), reference, customer, limit (1 to 100) and starting_after (an id). Free.","parameters":[{"name":"status","in":"query","schema":{"type":"string"}},{"name":"decision","in":"query","schema":{"type":"string"}},{"name":"reference","in":"query","schema":{"type":"string"}},{"name":"customer","in":"query","schema":{"type":"string"}},{"name":"test","in":"query","schema":{"type":"boolean"}},{"name":"limit","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},{"name":"starting_after","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoProofList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Photo Proof"}},"/v1/photo-proofs/scenarios":{"get":{"tags":["Payment Protection: Sandbox"],"summary":"Sandbox outcomes a test photo proof can simulate","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoScenarioList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Sandbox","x-signet-test-only":true}},"/v1/photo-proofs/{id}":{"get":{"tags":["Payment Protection: Photo Proof"],"summary":"Get a photo proof: decision, reason codes and what was found about each picture","description":"decision is genuine, review or suspect, with a score from 0 to 100. shots: verdict (genuine, suspicious, synthetic or insufficient: whether a real camera took the picture), from_screen, printed (null when it could not be told), duplicate_of (the earlier claim that carried the same picture) and image. capture: device, camera.other_customers and same_camera_for_all_shots. Reason codes: PHOTO_NOT_FROM_CAMERA (The picture did not come from a camera), PHOTO_FROM_SCREEN (The camera was pointed at a screen), PHOTO_DUPLICATE (The same picture was submitted in another claim), PHOTO_PRINTED (The picture shows a printed image), PHOTO_CAMERA_REUSED (The same camera sent claims for other customers), PHOTO_CAPTURE_SUSPICIOUS (Something about the capture did not add up), PHOTO_MIXED_CAMERAS (The pictures in this claim came from different cameras), PHOTO_DEVICE_RISK (The device that took the pictures is risky), PHOTO_NOT_CONFIRMED (A live photo could not be confirmed), PHOTO_LIVE_CAPTURE (Taken just now by a real camera). Free; live proofs are counted when they are submitted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoProofView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Photo Proof"},"delete":{"tags":["Payment Protection: Photo Proof"],"summary":"Erase a photo proof\u0027s pictures and everything measured from them. The decision, reason codes and audit trail are kept","description":"A proof the customer has not finished is canceled and its link stops working.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoProofView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Photo Proof"}},"/v1/photo-proofs/{id}/shots/{n}":{"get":{"tags":["Payment Protection: Photo Proof"],"summary":"Download a picture (JPEG). Every download is written to the audit trail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"n","in":"path","required":true,"schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"image/jpeg":{"schema":{"type":"string","format":"byte"}},"image/png":{"schema":{"type":"string","format":"byte"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Photo Proof"}},"/v1/photo-proofs/{id}/manifest":{"get":{"tags":["Payment Protection: Photo Proof"],"summary":"A statement for your claim file: each picture\u0027s SHA-256 and time, the decision and the checks passed","description":"statement lists, for every picture, the SHA-256 of the JPEG you can download, when it was taken and which checks it passed. signed says whether the statement carries a signature; when it does, key_id, algorithm, signature, public_key and three OpenSSL commands in verify are set. The signature covers the UTF-8 bytes of statement exactly as sent; check that key_id and public_key are in the published keys at keys_url. Sandbox statements are never signed. Errors: 409 photo_proof_not_completed, photo_proof_erased.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoProofManifest"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Photo Proof"}},"/v1/photo-proofs/{id}/simulate":{"post":{"tags":["Payment Protection: Sandbox"],"summary":"Sandbox: complete a test photo proof with a scenario","description":"Body: scenario (genuine, review_camera_reused, review_printed, suspect_from_screen, suspect_duplicate or suspect_not_camera). A live proof answers 403 live_photo_proof.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SimulateRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoProofView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Sandbox","x-signet-test-only":true}},"/v1/transactions":{"post":{"tags":["Payment Protection: Transaction Monitoring"],"summary":"Send a transaction to monitor and get allow, review or block","description":"Body: external_id (your id; sending it again updates the status of the stored transaction), customer (your reference for the end customer), amount, currency, type (deposit, withdrawal, transfer, payment, payout, refund, purchase, chargeback or your own word), optional direction (in/out), status (pending, completed, declined, reversed, refunded, charged_back), method, amount_base, occurred_at, instrument (a card fingerprint or token, stored as a keyed hash) and instrument_mask, counterparty {account, name, institution, country, mask}, session_id (a Signet device session), ip, country and metadata. Returns decision (allow, review, block), risk_score 0-100, reason_codes, reasons (each with its family, severity, the live values that made it fire and a sentence), summary and alert_ids. Scenarios are transparent rules over the customer\u0027s history, not a machine-learning model. One new transaction is one unit of the monitored-transactions allowance. Test keys: customer test_\u003Cscenario\u003E (see /scenarios) gives that outcome; nothing is stored or counted.","parameters":[{"name":"test","in":"query","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TransactionRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionView"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Transaction Monitoring"},"get":{"tags":["Payment Protection: Transaction Monitoring"],"summary":"List transactions, newest first","description":"Filters: customer, decision (allow, review, block, flagged = review or block, unscored), status, type, has_alert, from and to (occurred_at, ISO 8601), instrument and counterparty (the raw value you sent; matched by its keyed hash). Paginate with limit (1-100) and starting_after.","parameters":[{"name":"customer","in":"query","schema":{"type":"string"}},{"name":"decision","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string"}},{"name":"has_alert","in":"query","schema":{"type":"boolean"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"instrument","in":"query","schema":{"type":"string"}},{"name":"counterparty","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},{"name":"starting_after","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Transaction Monitoring"}},"/v1/transactions/batch":{"post":{"tags":["Payment Protection: Transaction Monitoring"],"summary":"Send up to 500 transactions, or load history with backfill","description":"Body: transactions (1 to 500 objects as for POST /v1/transactions) and backfill (default false). They are processed oldest first. With backfill: true they are stored and added to the customers\u0027 totals (so scoring has a history from day one) but not scored and never alerted on. Each new transaction is one unit of the allowance, and the whole batch is refused (429) when it needs more than is left. A batch with an invalid transaction is refused as a whole with the problems listed by index.","parameters":[{"name":"test","in":"query","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TxnBatchRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionBatchResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Transaction Monitoring"}},"/v1/transactions/scenarios":{"get":{"tags":["Payment Protection: Sandbox"],"summary":"Sandbox scenarios: send customer test_\u003Cid\u003E with a test key","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionScenarioList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Sandbox","x-signet-test-only":true}},"/v1/transactions/{id}":{"get":{"tags":["Payment Protection: Transaction Monitoring"],"summary":"One transaction by id (txn_...) or your external_id, with its reasons and alerts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Transaction Monitoring"}},"/v1/transactions/{id}/status":{"post":{"tags":["Payment Protection: Transaction Monitoring"],"summary":"Update a transaction\u0027s status (settled, declined, reversed, refunded, charged back)","description":"The customer\u0027s totals move with the status, and refund and chargeback scenarios are checked again: a chargeback can raise the decision and open an alert. The same as sending the transaction again with its external_id and the new status. Not counted against the allowance.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TxnStatusRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"payment-protection","x-signet-part":"Transaction Monitoring"}}},"components":{"schemas":{"ApiError":{"required":["error","message"],"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"param":{"type":["null","string"],"description":"The request field the error is about, such as \u0060amount\u0060 or \u0060items[0].qty\u0060. Left out when no one field is to blame."},"request_id":{"type":["null","string"],"description":"The id of the request, the same as its \u0060X-Request-Id\u0060 header."}},"description":"The body of every API error: a stable \u0060error\u0060 code, a \u0060message\u0060 for the developer, the field it is about (\u0060param\u0060,\nwhen there is one) and the \u0060request_id\u0060 also sent as \u0060X-Request-Id\u0060, to quote to support."},"BankAccountInfo":{"required":["last4","fingerprint","seen_before","linked_accounts","linked_devices"],"type":"object","properties":{"last4":{"type":["null","string"]},"fingerprint":{"type":["null","string"]},"seen_before":{"type":"boolean"},"linked_accounts":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"linked_devices":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"BankCheckResult":{"required":["check_id","decision","risk_score","reason_codes","reasons","format","account","name_match"],"type":"object","properties":{"check_id":{"type":"string"},"decision":{"type":"string"},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/RiskReasonOut"}},"format":{"$ref":"#/components/schemas/BankFormatInfo"},"account":{"$ref":"#/components/schemas/BankAccountInfo"},"name_match":{"type":"string"},"test":{"type":"boolean","default":false}}},"BankDeposit":{"required":["amount_cents"],"type":"object","properties":{"amount_cents":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"BankFormatInfo":{"required":["valid","kind","country","bank_code"],"type":"object","properties":{"valid":{"type":"boolean"},"kind":{"type":"string"},"country":{"type":["null","string"]},"bank_code":{"type":["null","string"]}}},"BankLinkConfirmRequest":{"type":"object","properties":{"amounts_cents":{"type":["null","array"],"items":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}}},"BankLinkConfirmResult":{"required":["link_id","status","attempts_remaining"],"type":"object","properties":{"link_id":{"type":"string"},"status":{"type":"string"},"attempts_remaining":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"BankLinkResult":{"required":["link_id","status","deposits","expires_at","attempts_remaining","account","check"],"type":"object","properties":{"link_id":{"type":"string"},"status":{"type":"string"},"deposits":{"type":["null","array"],"items":{"$ref":"#/components/schemas/BankDeposit"}},"expires_at":{"type":"string","format":"date-time"},"attempts_remaining":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"account":{"$ref":"#/components/schemas/BankAccountInfo"},"check":{"$ref":"#/components/schemas/BankCheckResult"}}},"BankVerifyRequest":{"type":"object","properties":{"routing_number":{"type":["null","string"]},"account_number":{"type":["null","string"]},"account_holder_name":{"type":["null","string"]},"iban":{"type":["null","string"]},"bic":{"type":["null","string"]},"session_id":{"type":["null","string"]},"account_id":{"type":["null","string"]},"verification_id":{"type":["null","string"]}}},"CompellingEvidence3":{"required":["eligible","qualifying_transactions","required_transactions","window_from","window_to","missing","note"],"type":"object","properties":{"eligible":{"type":"boolean"},"qualifying_transactions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"required_transactions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"window_from":{"type":"string","format":"date-time"},"window_to":{"type":"string","format":"date-time"},"missing":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}}},"CreatePhotoProofRequest":{"type":"object","properties":{"reference":{"type":["null","string"]},"customer":{"type":["null","string"]},"prompt":{"type":["null","string"]},"shots":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"return_url":{"type":["null","string"]},"scenario":{"type":["null","string"]}}},"DeviceSignature":{"required":["title","receipt_id","order_id","key_id","signed_at","key_first_seen","earlier_payments","note"],"type":"object","properties":{"title":{"type":"string"},"receipt_id":{"type":"string"},"order_id":{"type":"string"},"key_id":{"type":"string"},"signed_at":{"type":"string","format":"date-time"},"key_first_seen":{"type":"string","format":"date-time"},"earlier_payments":{"type":"array","items":{"$ref":"#/components/schemas/SignedPayment"}},"note":{"type":"string"}}},"DisputeEvidence":{"required":["dispute","dispute_date","strength","summary","compelling_evidence_3","prior_transactions","supporting","narrative","ledger_enabled","generated_at"],"type":"object","properties":{"dispute":{"$ref":"#/components/schemas/DisputeTransaction"},"dispute_date":{"type":"string","format":"date-time"},"strength":{"type":"string"},"summary":{"type":"string"},"compelling_evidence_3":{"$ref":"#/components/schemas/CompellingEvidence3"},"prior_transactions":{"type":"array","items":{"$ref":"#/components/schemas/PriorTransaction"}},"supporting":{"$ref":"#/components/schemas/DisputeSupport"},"narrative":{"type":"string"},"ledger_enabled":{"type":"boolean"},"generated_at":{"type":"string","format":"date-time"},"test_mode":{"type":"boolean","default":false},"device_signature":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DeviceSignature"}]}}},"DisputeEvidenceRequest":{"type":"object","properties":{"transaction_id":{"type":["null","string"]},"session_id":{"type":["null","string"]},"dispute_date":{"type":["null","string"],"format":"date-time"},"reason":{"type":["null","string"]},"mark_disputed":{"type":["null","boolean"]}}},"DisputeSupport":{"required":["prior_undisputed_payments","same_device_payments","same_ip_payments","first_payment_at","device_first_seen","device_visits","device_trusted_by_account","device_look_alike","legit_labels","fraud_labels","identity_verified"],"type":"object","properties":{"prior_undisputed_payments":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"same_device_payments":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"same_ip_payments":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"first_payment_at":{"type":["null","string"],"format":"date-time"},"device_first_seen":{"type":["null","string"],"format":"date-time"},"device_visits":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"device_trusted_by_account":{"type":"boolean"},"device_look_alike":{"type":"boolean"},"legit_labels":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"fraud_labels":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"identity_verified":{"type":"boolean"}}},"DisputeTransaction":{"required":["transaction_id","session_id","occurred_at","account_id","device_id","ip_address","country","amount","currency","decision","risk_score"],"type":"object","properties":{"transaction_id":{"type":["null","string"]},"session_id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"account_id":{"type":["null","string"]},"device_id":{"type":"string"},"ip_address":{"type":"string"},"country":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"decision":{"type":"string"},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"JsonElement":{},"PhotoProofConsent":{"required":["at","version"],"type":"object","properties":{"at":{"type":["null","string"],"format":"date-time"},"version":{"type":["null","string"]}},"description":"When the customer gave consent, and to which version of the consent text."},"PhotoProofImage":{"required":["stored","delete_after"],"type":"object","properties":{"stored":{"type":"boolean"},"delete_after":{"type":["null","string"],"description":"When the stored picture will be deleted under the retention setting.","format":"date-time"}},"description":"Whether a picture is stored for download, and until when."},"PhotoProofList":{"required":["data","has_more"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PhotoProofListItem"}},"has_more":{"type":"boolean","description":"More proofs are older than the last one here: ask again with starting_after."}},"description":"A page of photo proofs, newest first."},"PhotoProofListItem":{"required":["id","object","status","decision","score","reason_codes","reference","customer","shots","test","created_at","completed_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","description":"Always photo_proof."},"status":{"type":"string"},"decision":{"type":["null","string"]},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"reference":{"type":["null","string"]},"customer":{"type":["null","string"]},"shots":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"How many pictures were asked for.","format":"int32"},"test":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["null","string"],"format":"date-time"}},"description":"One photo proof in a list. GET /v1/photo-proofs/{id} has the pictures and the reasons."},"PhotoProofManifest":{"required":["statement","statement_sha256","signed","key_id","algorithm","signature","public_key","keys_url","verify"],"type":"object","properties":{"statement":{"$ref":"#/components/schemas/PhotoProofStatement"},"statement_sha256":{"type":"string","description":"SHA-256 of the statement\u0027s bytes as sent."},"signed":{"type":"boolean","description":"The statement carries a signature; key_id, algorithm, signature, public_key, keys_url and verify are set."},"key_id":{"type":["null","string"]},"algorithm":{"type":["null","string"]},"signature":{"type":["null","string"],"description":"Base64 DER signature."},"public_key":{"type":["null","string"],"description":"Base64 DER public key; check it is among the keys at keys_url."},"keys_url":{"type":["null","string"]},"verify":{"type":["null","array"],"items":{"type":"string"},"description":"Three OpenSSL commands that check the signature."}},"description":"A statement for your claim file, and its signature when there is one. The signature covers the UTF-8 bytes of statement exactly as sent.\nSandbox statements are never signed."},"PhotoProofShotChecks":{"required":["live_camera","not_from_screen","not_printed","not_a_duplicate"],"type":"object","properties":{"live_camera":{"type":"boolean"},"not_from_screen":{"type":"boolean"},"not_printed":{"type":"boolean"},"not_a_duplicate":{"type":"boolean"}},"description":"The checks one picture passed."},"PhotoProofShotView":{"required":["n","taken_at","verdict","from_screen","printed","duplicate_of","image"],"type":"object","properties":{"n":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The picture\u0027s number, from 1.","format":"int32"},"taken_at":{"type":["null","string"],"format":"date-time"},"verdict":{"type":["null","string"],"description":"genuine, suspicious, synthetic or insufficient: whether a real camera took the picture."},"from_screen":{"type":["null","boolean"],"description":"The camera was pointed at a screen. Null when it could not be told."},"printed":{"type":["null","boolean"],"description":"The picture shows a printed image. Null when it could not be told."},"duplicate_of":{"type":["null","string"],"description":"The earlier claim that carried the same picture."},"image":{"$ref":"#/components/schemas/PhotoProofImage"}},"description":"What was found about one picture."},"PhotoProofStatement":{"required":["type","version","id","reference","customer","decision","score","reason_codes","shots","test","completed_at"],"type":"object","properties":{"type":{"type":"string","description":"Always signet.photo_proof."},"version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The statement format, 1.","format":"int32"},"id":{"type":"string"},"reference":{"type":["null","string"]},"customer":{"type":["null","string"]},"decision":{"type":["null","string"]},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"shots":{"type":"array","items":{"$ref":"#/components/schemas/PhotoProofStatementShot"}},"test":{"type":"boolean"},"completed_at":{"type":["null","string"],"format":"date-time"}},"description":"What was decided about which files."},"PhotoProofStatementShot":{"required":["n","sha256","taken_at","checks"],"type":"object","properties":{"n":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"sha256":{"type":["null","string"]},"taken_at":{"type":["null","string"],"format":"date-time"},"checks":{"$ref":"#/components/schemas/PhotoProofShotChecks"}},"description":"One picture in a statement: the SHA-256 of the JPEG you can download, when it was taken and which checks it passed."},"PhotoProofUsage":{"required":["credits"],"type":"object","properties":{"credits":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64"}},"description":"The credits a photo proof uses."},"PhotoProofView":{"required":["id","object","status","decision","score","reason_codes","reasons","summary","reference","customer","prompt","shots_wanted","shots","capture","test","scenario","consent","redacted_at","created_at","completed_at","expires_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","description":"Always photo_proof."},"status":{"type":"string","description":"created, started, processing, completed, expired or canceled."},"decision":{"type":["null","string"],"description":"genuine, review or suspect, once completed."},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"0 to 100, once completed.","format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"reasons":{"oneOf":[{"type":"null"},{"description":"The reason codes explained in plain words.","$ref":"#/components/schemas/JsonElement"}]},"summary":{"type":["null","string"],"description":"One sentence on the decision."},"reference":{"type":["null","string"],"description":"Your claim or order id."},"customer":{"type":["null","string"],"description":"Your customer id."},"prompt":{"type":["null","string"],"description":"What the customer was asked to photograph."},"shots_wanted":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"How many pictures were asked for (1 to 6).","format":"int32"},"shots":{"type":"array","items":{"$ref":"#/components/schemas/PhotoProofShotView"}},"capture":{"oneOf":[{"type":"null"},{"description":"How the pictures were taken: device, camera.other_customers and same_camera_for_all_shots.","$ref":"#/components/schemas/JsonElement"}]},"test":{"type":"boolean","description":"Created with a test key: nothing was taken or counted."},"scenario":{"type":["null","string"],"description":"The sandbox outcome of a test proof."},"consent":{"oneOf":[{"type":"null"},{"description":"When the customer gave consent, and to which version of the text.","$ref":"#/components/schemas/PhotoProofConsent"}]},"redacted_at":{"type":["null","string"],"description":"When the pictures and everything measured from them were erased.","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["null","string"],"format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"url":{"type":["null","string"],"description":"The link to send the customer. Only in the answer that creates the proof."},"usage":{"oneOf":[{"type":"null"},{"description":"With credits: the credits the proof uses.","$ref":"#/components/schemas/PhotoProofUsage"}]}},"description":"A photo proof: its status, the decision and what was found about each picture."},"PhotoScenarioList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PhotoScenarioView"}}},"description":"The sandbox outcomes a test photo proof can simulate."},"PhotoScenarioView":{"required":["id","title","expect","description"],"type":"object","properties":{"id":{"type":"string","description":"Pass it as scenario."},"title":{"type":"string"},"expect":{"type":"string","description":"The decision it leads to: genuine, review or suspect."},"description":{"type":"string"}},"description":"One sandbox outcome."},"PriorTransaction":{"required":["transaction","age_days","matches","payment_credential","qualifies","disqualified_because"],"type":"object","properties":{"transaction":{"$ref":"#/components/schemas/DisputeTransaction"},"age_days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"matches":{"type":"array","items":{"type":"string"}},"payment_credential":{"type":"string"},"qualifies":{"type":"boolean"},"disqualified_because":{"type":["null","string"]}}},"RiskReasonOut":{"required":["code","description"],"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"}}},"SignedPayment":{"required":["transaction_id","receipt_id","occurred_at","age_days","amount","currency"],"type":"object","properties":{"transaction_id":{"type":["null","string"]},"receipt_id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"age_days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]}}},"SimulateRequest":{"type":"object","properties":{"scenario":{"type":["null","string"]}}},"TransactionAlertRef":{"required":["id","title","severity","status"],"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"severity":{"type":"string"},"status":{"type":"string"}},"description":"An alert this transaction is part of: its id, title, severity and status."},"TransactionBatchItem":{"required":["index"],"type":"object","properties":{"index":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"external_id":{"type":["null","string"]},"id":{"type":["null","string"]},"result":{"type":["null","string"],"description":"created, updated or replayed."},"decision":{"type":["null","string"]},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"reason_codes":{"type":["null","array"],"items":{"type":"string"}},"alerts_opened":{"type":["null","array"],"items":{"type":"string"}},"error":{"type":["null","string"],"description":"Set when this transaction failed: an error code and a sentence."},"message":{"type":["null","string"]},"transaction":{"oneOf":[{"type":"null"},{"description":"Test keys only.","$ref":"#/components/schemas/TransactionView"}]}},"description":"The result for one transaction of a batch: its decision, or the error that stopped it. With a test key, the whole scored sandbox transaction instead."},"TransactionBatchResult":{"required":["count","backfill","results"],"type":"object","properties":{"count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"backfill":{"type":"boolean"},"results":{"type":"array","items":{"$ref":"#/components/schemas/TransactionBatchItem"}},"created":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"updated":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"replayed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"failed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"test":{"type":["null","boolean"],"description":"True with a test key: each result carries the scored sandbox transaction and nothing is stored."}},"description":"What a batch did: how many transactions were created, updated, replayed or failed, and the result of each by its index in the request."},"TransactionCounterparty":{"required":["mask","country","name","institution"],"type":"object","properties":{"mask":{"type":["null","string"]},"country":{"type":["null","string"]},"name":{"type":["null","string"]},"institution":{"type":["null","string"]}},"description":"The counterparty: the mask and country you sent; the name and institution only on GET /v1/transactions/{id}."},"TransactionInstrument":{"required":["mask"],"type":"object","properties":{"mask":{"type":["null","string"]}},"description":"The payment instrument as you sent its mask. The instrument itself is stored only as a keyed hash."},"TransactionList":{"required":["data","has_more"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TransactionRow"}},"has_more":{"type":"boolean"},"test_mode":{"type":["null","boolean"],"description":"True with a test key: test keys store nothing, so the list is empty."}},"description":"One page of transactions, newest first. Page on with starting_after set to the last id."},"TransactionReason":{"required":["code","description","score","rule_id","family","severity","title","detail","evidence","alerts"],"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"rule_id":{"type":"string"},"family":{"type":"string"},"severity":{"type":"string"},"title":{"type":"string"},"detail":{"type":["null","string"]},"evidence":{"type":"object","description":"Signal name -\u0026gt; the value it had."},"alerts":{"type":"boolean","description":"Whether this reason opens an alert."}},"description":"One scenario that fired: its code, family, severity and score, a sentence, and the live values that made it fire."},"TransactionRequest":{"type":"object","properties":{"external_id":{"type":["null","string"]},"customer":{"type":["null","string"]},"type":{"type":["null","string"]},"direction":{"type":["null","string"]},"status":{"type":["null","string"]},"method":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"amount_base":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["null","number","string"],"format":"double"},"occurred_at":{"type":["null","string"],"format":"date-time"},"instrument":{"type":["null","string"]},"instrument_mask":{"type":["null","string"]},"counterparty":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TxnCounterpartyRequest"}]},"session_id":{"type":["null","string"]},"ip":{"type":["null","string"]},"country":{"type":["null","string"]},"metadata":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/JsonElement"}]}}},"TransactionRow":{"required":["id","external_id","customer","type","direction","status","method","amount","currency","amount_base","base_currency","occurred_at","decision","risk_score","reason_codes","alert_count","instrument_mask","counterparty_mask","counterparty_country","country","backfill"],"type":"object","properties":{"id":{"type":"string"},"external_id":{"type":"string"},"customer":{"type":"string"},"type":{"type":"string"},"direction":{"type":"string"},"status":{"type":"string"},"method":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["number","string"],"format":"double"},"currency":{"type":"string"},"amount_base":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["number","string"],"format":"double"},"base_currency":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"decision":{"type":["null","string"]},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"alert_count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"instrument_mask":{"type":["null","string"]},"counterparty_mask":{"type":["null","string"]},"counterparty_country":{"type":["null","string"]},"country":{"type":["null","string"]},"backfill":{"type":"boolean"}},"description":"A transaction as it appears in a list: amounts, the decision and score, and the number of alerts."},"TransactionScenario":{"required":["id","customer","title","expect","reason_codes","description"],"type":"object","properties":{"id":{"type":"string"},"customer":{"type":"string"},"title":{"type":"string"},"expect":{"type":"string","description":"The decision this scenario gives: allow, review or block."},"reason_codes":{"type":"array","items":{"type":"string"}},"description":{"type":"string"}},"description":"A sandbox scenario: send customer test_\u0026lt;id\u0026gt; with a test key to get this outcome."},"TransactionScenarioList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TransactionScenario"}}},"description":"Every transaction monitoring sandbox scenario."},"TransactionView":{"required":["id","object","external_id","customer","type","direction","status","method","amount","currency","amount_base","base_currency","fx_source","decision","risk_score","reason_codes","summary","reasons","instrument","counterparty","session_id","visitor_id","ip","country","alert_ids","backfill","degraded","metadata","occurred_at","created_at","updated_at","scored_at","test"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"external_id":{"type":"string"},"customer":{"type":"string"},"type":{"type":"string"},"direction":{"type":"string"},"status":{"type":"string"},"method":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["number","string"],"format":"double"},"currency":{"type":"string"},"amount_base":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["number","string"],"description":"The amount in the account\u0027s base currency.","format":"double"},"base_currency":{"type":"string"},"fx_source":{"type":["null","string"],"description":"Where the exchange rate came from (same when no conversion was needed)."},"decision":{"type":["null","string"],"description":"allow, review or block; null for back-filled history that is not scored."},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"summary":{"type":"string","description":"One sentence: the decision and the scenarios behind it."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/TransactionReason"}},"instrument":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TransactionInstrument"}]},"counterparty":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TransactionCounterparty"}]},"session_id":{"type":["null","string"]},"visitor_id":{"type":["null","string"]},"ip":{"type":["null","string"]},"country":{"type":["null","string"]},"alert_ids":{"type":"array","items":{"type":"string"}},"backfill":{"type":"boolean"},"degraded":{"type":"array","items":{"type":"string"},"description":"Signal sources that were unavailable when it was scored (the decision used the rest)."},"metadata":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/JsonElement"}]},"occurred_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"scored_at":{"type":["null","string"],"format":"date-time"},"test":{"type":"boolean","description":"True with a test key: scored against a synthetic history, nothing stored or counted."},"result":{"type":["null","string"],"description":"After a send or a status update: created, updated or replayed (sent again unchanged)."},"alerts_opened":{"type":["null","array"],"items":{"type":"string"},"description":"After a send or a status update: the ids of the alerts this transaction opened."},"scenario":{"type":["null","string"],"description":"Test keys: the sandbox scenario the customer reference asked for, or null."},"alerts":{"type":["null","array"],"items":{"$ref":"#/components/schemas/TransactionAlertRef"},"description":"GET /v1/transactions/{id} only, when the transaction has alerts."}},"description":"A monitored transaction: what you sent, the decision (allow, review or block) with its risk score, the scenarios that fired and why,\nand the alerts it opened."},"TxnBatchRequest":{"type":"object","properties":{"transactions":{"type":["null","array"],"items":{"$ref":"#/components/schemas/TransactionRequest"}},"backfill":{"type":"boolean"}}},"TxnCounterpartyRequest":{"type":"object","properties":{"account":{"type":["null","string"]},"name":{"type":["null","string"]},"institution":{"type":["null","string"]},"country":{"type":["null","string"]},"mask":{"type":["null","string"]}}},"TxnStatusRequest":{"type":"object","properties":{"status":{"type":["null","string"]}}}},"securitySchemes":{"secretKey":{"type":"http","description":"Secret API key (sk_live_...). Server-side only.","scheme":"bearer"},"publicKey":{"type":"apiKey","in":"header","name":"X-Signet-Site-Key","description":"Public site key (pk_live_... or pk_test_...). Safe in a page or an app: it can only send what a device read. Used by the tag and the mobile SDKs."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. 1 to 255 visible ASCII characters, no spaces; a UUID works. A retry with the same key and the same body within 24 hours gets the first answer again, with Idempotent-Replayed: true, and is not run or charged again. The same key with a different request answers 409 idempotency_key_reused; while the first request runs, 409 idempotency_in_progress. Server errors and 401, 402, 403, 408 and 429 answers are not stored, so their retry runs. Live and test keys never share a key.","schema":{"type":"string","maxLength":255}}}},"tags":[{"name":"Payment Protection","x-displayName":"Overview","description":"Payments, bank accounts, disputes and refund photos.\n\n[Payment Protection spec (OpenAPI 3.1)](/openapi/v1/payment-protection.json) \u00B7 [Postman collection](/downloads/postman/payment-protection.postman_collection.json) \u00B7 [About Payment Protection](/payment-protection)\n\n#### Example: send a payment\n\n\u0060\u0060\u0060http\nPOST /v1/transactions\nAuthorization: Bearer sk_test_...\nContent-Type: application/json\n\n{\n  \u0022external_id\u0022: \u0022order-1001\u0022,\n  \u0022customer\u0022: \u0022cus_test_verified\u0022,\n  \u0022type\u0022: \u0022payment\u0022,\n  \u0022amount\u0022: 49.90,\n  \u0022currency\u0022: \u0022USD\u0022\n}\n\u0060\u0060\u0060\n\nResponse 201 (shortened)\n\n\u0060\u0060\u0060json\n{\n  \u0022id\u0022: \u0022txn_test_ISc8DbX9OWn7\u0022,\n  \u0022object\u0022: \u0022transaction\u0022,\n  \u0022external_id\u0022: \u0022order-1001\u0022,\n  \u0022customer\u0022: \u0022cus_test_verified\u0022,\n  \u0022status\u0022: \u0022completed\u0022,\n  \u0022amount\u0022: 49.9,\n  \u0022currency\u0022: \u0022USD\u0022,\n  \u0022decision\u0022: \u0022allow\u0022,\n  \u0022risk_score\u0022: 0,\n  \u0022reason_codes\u0022: [],\n  \u0022summary\u0022: \u0022Nothing unusual against this customer\u0027s history and your rules.\u0022\n}\n\u0060\u0060\u0060"},{"name":"Payment Protection: Transaction Monitoring","x-displayName":"Transaction Monitoring","description":"Payments, deposits and payouts watched for fraud"},{"name":"Payment Protection: Bank Verification","x-displayName":"Bank Verification","description":"Real, unshared bank accounts and micro-deposit linking"},{"name":"Payment Protection: Dispute Evidence","x-displayName":"Dispute Evidence","description":"Win back fraud chargebacks from real customers"},{"name":"Payment Protection: Photo Proof","x-displayName":"Photo Proof","description":"Live photos for refund claims"},{"name":"Payment Protection: Sandbox","x-displayName":"Sandbox","description":"Test keys (sk_test_...) only: finish or list test cases so you can try every outcome without a real customer. A live key is refused."}],"x-tagGroups":[{"name":"Payment Protection","tags":["Payment Protection","Payment Protection: Transaction Monitoring","Payment Protection: Bank Verification","Payment Protection: Dispute Evidence","Payment Protection: Photo Proof","Payment Protection: Sandbox"]}],"x-signet-products":[{"slug":"payment-protection","name":"Payment Protection","summary":"Payments, bank accounts, disputes and refund photos","page":"/payment-protection","spec":"/openapi/v1/payment-protection.json","postman":"/downloads/postman/payment-protection.postman_collection.json","parts":[{"name":"Transaction Monitoring","kind":"server"},{"name":"Bank Verification","kind":"server"},{"name":"Dispute Evidence","kind":"server"},{"name":"Photo Proof","kind":"server"},{"name":"Sandbox","kind":"sandbox"}]}],"x-signet-product":"payment-protection"}