Skip to main content
POST
/
subscriptions
/
{subscriptionId}
/
can-afford
Checks if the user can afford the requested resources.
curl --request POST \
  --url {schemes}://api.upsun.com/subscriptions/{subscriptionId}/can-afford \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resources": {}
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subscriptionId
string
required

The ID of the subscription

Body

application/json
resources
object

A map of resource keys to quantities (both strings).

Response

Proposed resource change is affordable.

Last modified on March 25, 2026