Configure AceDataCloud Application Global Balance Sharing

Configure allow_consume_global. Once enabled, eligible pay-as-you-go Applications can continue using the account's global balance when their own balance is insufficient.

Preparation

export PLATFORM_TOKEN='your account token'
export APPLICATION_ID='your Application ID'

API Overview

Item Content
Method POST
URL https://platform.acedata.cloud/api/v1/applications/{application_id}/update-allow-consume-global/
Authentication Account Token
Body JSON
curl -X POST \
  "https://platform.acedata.cloud/api/v1/applications/${APPLICATION_ID}/update-allow-consume-global/" \
  -H "Authorization: Bearer ${PLATFORM_TOKEN}" \
  -H 'Content-Type: application/json' \
  -d '{"allow_consume_global": true}'

A successful response returns the updated Application object. Please rely on allow_consume_global in the response, rather than assuming that the requested value has definitely been saved.

Applications of the Period type are not allowed to consume the global balance. Even if true is requested, the server will keep this field as false.

Error Handling

  • 401: The Account Token is invalid or missing.
  • 403: The current account is not the owner of this Application.
  • 404: The Application ID does not exist.

For global balance top-up entry points and available packages, refer to the platform console and the actual packages returned by order creation; do not assume that Wallet type packages exist.

Applications Authorized for Overdraft

When the read-only field allow_overdraft=true of a pay-as-you-go Application is set, the Application can continue deducting charges from its own balance, even if the balance becomes negative, and it will not switch to the global account due to insufficient balance. Applications without overdraft enabled still follow allow_consume_global; after switching, whether overdraft is allowed depends on the settings of the global Application from which the actual charges are deducted.

Trial Account Concurrency Limit

A trial account can execute only one billable request at a time. Different API Keys and services share this slot. After completing a paid top-up, having credits manually added by an administrator, successfully claiming a gift card, or redeeming a top-up card, the account will be exempted from this restriction. Regular reward credits are still handled according to trial rules. Balance, voucher quota, and other checks continue to apply as usual.

When an existing request is being executed, a new request returns 429 too_many_requests. Free polling APIs such as task queries can still be called normally. Realtime connection authentication continues to follow the existing per-round billing process and does not occupy this regular request slot.

When an asynchronous API returns “accepted,” the task is still being executed, and you need to wait for the final result before submitting the next generation request. Network disconnection or proxy timeout does not mean that the task has stopped; if a task has no final status for an extended period, please provide the trace_id and contact support for verification.

This restriction does not change the APIs available for trial use, nor does it change the existing billing rules. Fees are still settled based on actual usage after the request is completed.