Create a credit grant

Changed on

Creates a credit grant.

post/v1/billing/credit_grants

Request

Request body application/x-www-form-urlencoded

category'paid' | 'promotional'

The category of this credit grant. It defaults to paid if not specified.

customerstring

ID of the customer receiving the billing credits.

customer_accountstring

ID of the account representing the customer receiving the billing credits.

effective_atinteger

The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.

expandstring[]

Specifies which fields in the response should be expanded.

expires_atinteger

The time when the billing credits expire. If not specified, the billing credits don't expire.

metadataobject

Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.

namestring

A descriptive name shown in the Dashboard.

priorityinteger

The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.

Response

Successful response.

category'paid' | 'promotional' required

The category of this credit grant. This is for tracking purposes and isn't displayed to the customer.

createdinteger required

Time at which the object was created. Measured in seconds since the Unix epoch.

customer_accountstring nullable

ID of the account representing the customer receiving the billing credits

effective_atinteger nullable

The time when the billing credits become effective-when they're eligible for use.

expires_atinteger nullable

The time when the billing credits expire. If not present, the billing credits don't expire.

idstring required

Unique identifier for the object.

livemodeboolean required

If the object exists in live mode, the value is true. If the object exists in test mode, the value is false.

metadataobject required

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

namestring nullable

A descriptive name shown in dashboard.

object'billing.credit_grant' required

String representing the object's type. Objects of the same type share the same value.

priorityinteger nullable

The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.

updatedinteger required

Time at which the object was last updated. Measured in seconds since the Unix epoch.

voided_atinteger nullable

The time when this credit grant was voided. If not present, the credit grant hasn't been voided.

Changes

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property /////////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    This list may be incomplete.

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    This list may be incomplete.

Some revisions have not been checked yet.