Selling errors
Errors
A refusal answers { "error": "...", "detail": "..." }. error is Google Play's name where there is one.
| Status | error | Meaning |
|---|---|---|
| 400 | developer_error | Something in the request isn't valid; detail says what |
| 400 | invalid_purchase_state | This purchase was already consumed, so it can't be acknowledged. Check it with GET /v1/purchases/<token> |
| 401 | unauthorized | No token, or one that ran out or was taken away |
| 403 | needs_sign_in | This command takes the person's sign-in token, not an API key |
| 403 | sales_permission_needed | This command needs an API key of this app with Sales ticked |
| 403 | billing_unavailable | This person's account can't buy right now |
| 404 | unavailable | Not on sale, or not for this person (a personal app and someone who isn't a tester) |
| 404 | not_found | No such order, or test notification, in this app |
| 404 | no_refund_request | The buyer hasn't asked for a refund of this purchase |
| 409 | already_owned | They own it already: restore with GET /v1/purchases |
| 409 | not_owned | No such purchase in this app, or it was taken back |
| 409 | already_refunded | Refunded in full already |
| 409 | refund_too_old | Orders older than 3 years can't be refunded |
| 409 | no_notify_url | Set the notifications address in the console first |
| 409 | pending_acknowledgement | Acknowledge this subscription first |
| 410 | no_longer_available | This subscription ended more than 60 days ago |
| 503 | service_unavailable | Nostrad couldn't answer just now: try again |