invalid_state
The action is not allowed in the current resource state.
Type: invalid_request_error
HTTP status: 400 Bad Request
Cause
The resource exists but its current state does not permit the requested operation. For example, attempting to finalize an invoice that is already void.
Response
{
"error": {
"type": "invalid_request_error",
"code": "invalid_state",
"message": "Invoice cannot be finalized because it is already void.",
"doc_url": "https://docs.tryaccess.xyz/docs/errors/invalid_state"
}
}Resolution
Check the current state of the resource before performing the operation. The message field describes which transition is not allowed.
How is this guide?