cURL
curl --request GET \ --url https://api.fish.audio/wallet/{user_id}/package \ --header 'Authorization: Bearer <token>'
{ "user_id": "<string>", "type": "<string>", "total": 123, "balance": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "finished_at": "2023-11-07T05:31:56Z", "stripe_subscription_id": "<string>", "stripe_price_id": "<string>", "billing_period": "<string>", "current_period_end": "2023-11-07T05:31:56Z", "cancel_at_period_end": true, "cancel_at": "2023-11-07T05:31:56Z", "scheduled_change": {}, "last_synced_at": "2023-11-07T05:31:56Z", "extra_balance": 0, "has_used_trial": false }
Get current user premium information
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User ID or 'self'
Request fulfilled, document follows
Was this page helpful?