Skip to main content

billing

Creates, updates, deletes, gets or lists a billing resource.

Overview

Namebilling
TypeResource
Idvercel.marketplace.billing

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
submitexecintegration_configuration_id, timestamp, eod, period, billing, usageSends the billing and usage data. The partner should do this at least once a day and ideally once per hour. <br /> Use the credentials.access_token we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.
submit_prepayment_balancesexecintegration_configuration_id, timestamp, balancesSends the prepayment balances. The partner should do this at least once a day and ideally once per hour. <br /> Use the credentials.access_token we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
integration_configuration_idstring

Lifecycle Methods

EXEC variables use wire (API) names.

Sends the billing and usage data. The partner should do this at least once a day and ideally once per hour. <br /> Use the credentials.access_token we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.

EXEC vercel.marketplace.billing.submit
@integration_configuration_id='{{ integration_configuration_id }}' --required
@@json=
'{
"timestamp": "{{ timestamp }}",
"eod": "{{ eod }}",
"period": "{{ period }}",
"billing": "{{ billing }}",
"usage": "{{ usage }}"
}'
;