billing
Creates, updates, deletes, gets or lists a billing resource.
Overview
| Name | billing |
| Type | Resource |
| Id | vercel.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
submit | exec | integration_configuration_id, timestamp, eod, period, billing, usage | 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. | |
submit_prepayment_balances | exec | integration_configuration_id, timestamp, balances | Sends 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.
| Name | Datatype | Description |
|---|---|---|
integration_configuration_id | string |
Lifecycle Methods
EXEC variables use wire (API) names.
- submit
- submit_prepayment_balances
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 }}"
}'
;
Sends 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.
EXEC vercel.marketplace.billing.submit_prepayment_balances
@integration_configuration_id='{{ integration_configuration_id }}' --required
@@json=
'{
"timestamp": "{{ timestamp }}",
"balances": "{{ balances }}"
}'
;