{ "error": { "type": "request_error", "code": "transaction_invalid_status_change", "detail": "Invalid attempt to change status from 'completed' to 'canceled'", "documentation_url": "https://developer.paddle.com/errors/transactions/transaction_invalid_status_change" }, "meta": { "request_id": "00000000-0000-0000-0000-000000000000" }}Details
- Status code
- 400
- Error code
transaction_invalid_status_change- Error message
- Invalid attempt to change status from '%s' to '%s'
Common causes
- You're setting
statusto a value that isn't reachable from the transaction's current status. When updating, you can only setstatustobilledorcanceled. - You're trying to change a transaction that's in a final state (
completedorcanceled).
Troubleshooting
- To bill a manually-collected transaction, make sure it's
ready, then setstatustobilled. - You can only cancel a transaction that's
draft,ready,billed, orpast_due. Apaid,completed, or alreadycanceledtransaction can't be canceled. - Other status changes (like
paid,past_due, andcompleted) happen automatically and can't be set through the API.