Skip to navigation

Errors

Every v2 error is an RFC 9457 problem with a stable code.

Errors use the application/problem+json media type. Branch on code. The title is fixed for each code, and detail explains this occurrence.

{
"type": "https://developers.outpave.com/errors/invalid-request",
"title": "Invalid request",
"status": 400,
"detail": "The request does not match the operation's schema.",
"code": "INVALID_REQUEST",
"requestId": "4f6c1d2e-0a4b-4c55-9f37-2e8b9d1a7c10",
"errors": [
{ "detail": "Unknown query parameter 'expand'", "parameter": "expand" }
]
}
MemberDescription
typeLink to the code’s entry below, for example https://developers.outpave.com/errors/invalid-request.
titleShort summary, fixed for each code.
statusThe HTTP status code.
detailExplanation of this occurrence.
codeStable error code. Accept codes not listed here.
requestIdThe X-Request-Id of the failed request. Quote it when you contact support.
errorsOptional list of individual problems. Each has a detail and at most one of pointer (a JSON Pointer into the body, such as #/policy/dailyLimit), parameter or header, plus an optional code.

Error codes

StatusCodeWhat to do
400INVALID_REQUESTThe request does not match the operation’s schema. Fix it using errors.
400IDEMPOTENCY_KEY_REQUIREDSend an Idempotency-Key header.
400INVALID_CURSORThe cursor is malformed, expired or from a different request. Restart from the first page.
400ACCOUNT_HOLDER_REQUIREDSend Account-Holder with a platform key.
400INVALID_ACCOUNT_HOLDER_CONTEXTAccount-Holder is not valid for this operation.
401INVALID_API_KEYCheck the API key and the calling address.
401INVALID_ACCESS_TOKENExchange the API key for a new access token.
403PERMISSION_DENIEDAdd the missing permission to the key.
403API_KEY_NOT_ENROLLEDEnable the key for v2.
403ACCOUNT_HOLDER_NOT_ACCESSIBLEThe key cannot act on that account holder.
404RESOURCE_NOT_FOUNDThe resource does not exist or belongs to another account holder.
405METHOD_NOT_ALLOWEDThe path does not support this method.
409INVALID_STATEThe resource’s current state does not allow this action. Read it and decide again.
409RESOURCE_ALREADY_EXISTSA resource with these unique values exists.
409IDEMPOTENCY_IN_PROGRESSA request with this key is still running. Retry later with the same key.
409IDEMPOTENCY_KEY_REUSEDThis key was used with a different request. Use a new key for a new operation.
413PAYLOAD_TOO_LARGEThe body is larger than 256 KB.
415UNSUPPORTED_MEDIA_TYPESend the body as application/json.
422VALIDATION_FAILEDA business rule refused the request. See errors.
422RELATED_RESOURCE_NOT_FOUNDA resource the body refers to does not exist.
422NOT_ELIGIBLEThe account holder, program or resource cannot perform this action.
422PROVIDER_REJECTEDThe request was refused, but part of it may already have taken effect. For example, a refused card replacement can leave the old card canceled. Read the resource and the problem’s detail before you act again.
429RATE_LIMIT_EXCEEDEDWait the seconds in Retry-After, then retry.
500API_ERRORRetry with exponential backoff.
502OPERATION_OUTCOME_UNKNOWNRetry later with the same Idempotency-Key, never a new one.
503SERVICE_UNAVAILABLERetry after Retry-After.

Retrying

  • Retry 429, 500, 502 and 503, and 409 IDEMPOTENCY_IN_PROGRESS, with the same Idempotency-Key.
  • Do not retry other 4xx responses unchanged.
  • 502 OPERATION_OUTCOME_UNKNOWN means the outcome is not known yet. Retries with the same key return this response until it is, then the final response. A new key could perform the operation twice.