ByRecordDocs
byrecord.com›

Errors

The shape of an error, what each status code means, and which errors are worth retrying.

An error is JSON with one human-readable message. When the problem is one field, the message starts with its path:

JSON
JSON

Messages are written for the person reading your logs. Branch on the status code, not on the wording, which can change.

Status codes

StatusMeaningRetry?
200 201Done. 201 when a quote was created
400The body is invalid, or a rule refused it: an agreed price above list, both lines and a document, a quote sent without a complete service address, a file over 20 MB, and so onNo: fix the request
401No key, an unknown key, or a revoked oneNo
403The key lacks the scopeNo
404No such record in this programme, or an ID of the wrong kindNo
409The record is in the wrong state (sending a quote whose lines need review, or one already accepted), or an Idempotency-Key is still in flightOnly the in-flight case, shortly
413The JSON body is larger than 30 MB. An uploaded file larger than 20 MB answers 400No
422The request cannot be completed as sent: an Idempotency-Key reused with a different body, or a document that does not state what the quote needsNo
429Rate limitedYes, after the window the headers give
500Something failed on our sideYes, with the same Idempotency-Key
502Your quote document could not be readOnce; then send lines
503Document reading is not available for this programmeNo: send lines instead

Retrying safely

Send every POST with an Idempotency-Key and retry a timeout, a dropped connection, a 429 or a 5xx with the same key and the same body. A retry can never create a second quote or send a proposal twice. Back off between attempts: waiting 1, 2, 4 and 8 seconds is plenty, and a 429 tells you exactly when to come back.

Do not retry a 4xx other than 409 (in flight) and 429 unchanged. It will get the same answer.

Errors you will meet first

Message includesCause
A valid partner API key is requiredThe Authorization header is missing, malformed, or the key was revoked
opportunityUrl:The link is not an https Salesforce opportunity link, or not on the programme's Salesforce org
customer needs an accountId or a namecustomer names neither an existing account nor a new one
Send either lines or a documentBoth, or neither, were sent
resolution and retentionDays are requiredA programme that prices by configuration needs its configuration fields with lines
lines[0].agreedUnitPrice is above the list priceAn agreed price can only lower a line
customer.accountId: account not foundThe account is not in this programme
Add the customer's service address to the account before sendingThe account has no service address, and the agreement names the site it covers
The account needs a complete service addressWhere the programme charges sales tax, sending needs the street, city, state, ZIP code and country, so the tax can be worked out. In the US, the state is its two-letter code and the ZIP code has 5 or 9 digits
This Idempotency-Key was already used with a different requestUse a new key for a new request
© 2026 ByRecord · byrecord.com · Status