Developers

Retries and replay

Send an Idempotency-Key on every REST write and priced call (conventions). What happens on a retry with the same key:

A response with a 2xx status is a success even when its body reports that the work failed, such as a listing import or a document read with status: "failed". A retry with the same key returns that same response. To try the work again, send a new key.

REST operations#

Reads (GET) change nothing. A priced read charges each time it runs, and reads take no Idempotency-Key.

Operation Can a failed call have changed something? Repeating it with a new key
Computed tools without deal_id: POST /value/sba-ceiling, /finance/stress-test, /finance/capital-stack, /offer/after-tax, /offer/compare No. A failed run is not charged Runs and charges again
Computed tools with deal_id, POST /diligence/proof-of-cash, POST /deals/{deal_id}/runs Yes, rarely: the run is saved to the deal before it is charged. A failure after the save can leave the run saved, charged or not: a 402 over_limit or insufficient_credits when a parallel call used up the limit or balance, or a server error Saves another run. Check the deal's saved runs (GET /deals/{deal_id}) first. A retry with the same key after a charged failure isn't charged again
POST /deals/{deal_id}/documents Yes: the document is stored before it is read. A failed read leaves it on the deal with status: "failed", uncharged, and still returns 201. If the charge is refused after the read, the figures stay stored, uncharged, and the response says so Uploads a second copy
POST /listing-imports with a CSV No drafts: they are created together or not at all. A failed import is recorded with status: "failed" and returns 202 Runs again
POST /listing-imports with a file Yes: the file is stored before it is drafted, and counts toward your 30 file drafts a month even if drafting fails (limits). Returns 202 with status: "failed" Drafts again and counts again
POST /listings Yes, rarely: the listing is saved before the response is built, so a server error after the save leaves it saved Creates a second listing. Check your listings (GET /broker/listings) first
POST /businesses No: one database transaction Creates a second one
POST /listings/{listing_id}/inquiries No: one transaction. The inquiry waits as pending until you confirm it on acquestor.com, so nothing reaches the broker from the API Creates a second pending inquiry, which counts toward your 20 a day
POST /deals/{deal_id}/figures No: one transaction Adds the figures again
PATCH /listings/{listing_id}, POST /listings/{listing_id}/withdraw Yes, rarely: the change is saved before the response is built Sets the same values again, or leaves the listing withdrawn
PATCH /deals/{deal_id}, PATCH /businesses/{business_id} No: one transaction Sets the same values again

A call refused before it runs (400, 401, 403, 404, 413, 422, 402 or 429) changed nothing. The exception is a 402 on a call that saves to a deal or reads a document, when a parallel call used up the limit or balance while this one ran: the run or the figures are saved, uncharged, as in the table.

MCP tools#

The MCP server takes no Idempotency-Key, so a repeated tool call always runs again. An error's retryable: true means the same call can succeed if you try again; it doesn't mean the first call had no effect.

Tool Can a failed call have changed something? Calling it again
Read tools: get_rates, get_market_salary, compute_sba_price_ceiling, stress_test_deal, build_capital_stack, compute_after_tax_proceeds, compare_offers, check_proof_of_cash, find_sba_lenders, search_listings, list_deals, get_source No. Over MCP, computed tools read a granted deal but never save to it A priced tool charges again
save_to_deal Yes, rarely, as for computed tools with deal_id above: the run can be saved, charged or not Saves another run and charges again. Check the deal with list_deals and its deal_id first
create_listing_draft As for POST /listing-imports Drafts again
contact_listing_broker No Saves a second pending inquiry. Nothing reaches the broker until you confirm one on acquestor.com

Something wrong or missing on this page? Email support@acquestor.com.