Method: organizations.developers.balance.credit

Credits the account balance for the developer.

HTTP request

POST https://apigee.googleapis.com/v1/{name=organizations/*/developers/*/balance}:credit

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Account balance for the developer. Use the following structure in your request: organizations/{org}/developers/{developer}/balance

Authorization requires the following IAM permission on the specified resource name:

  • apigee.developerbalances.update

Request body

The request body contains data with the following structure:

JSON representation
{
  "transactionAmount": {
    object (Money)
  },
  "transactionId": string
}
Fields
transactionAmount

object (Money)

The amount of money to be credited. The wallet corresponding to the currency specified within transactionAmount will be updated. For example, if you specified currencyCode within transactionAmount as "USD", then the amount would be added to the wallet which has the "USD" currency or if no such wallet exists, a new wallet will be created with the "USD" currency.

transactionId

string

Each transactionId uniquely identifies a credit balance request. If multiple requests are received with the same transactionId, only one of them will be considered.

Response body

If successful, the response body contains an instance of DeveloperBalance.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform