Bill a Customer Location
A 4-step recipe with Viam. We can help you get access.
Recipe · 4 steps
Bill a Customer Location
with Viam · Subscription Lifecycle Management
Reassign a location billing org, read usage, and charge immediately.
- Read the location's current billing organization assignment.
- Reassign the location to the supplied billing organization.
- Retrieve current-month usage for the billing organization.
- Create an invoice and charge the billing organization immediately.
What you'll need to have ready
- apiKey: Viam API key value sent in the key header.
- locationId: The location whose billing organization is reassigned.
- billingOrganizationId: The organization that should be billed for the location.
- amount: The amount to invoice and charge immediately.
- description: Human-readable description for the invoice charge.
For your developer
Arazzo workflow viam:bill-customer-location, 4 operations: getLocationBillingOrganization → updateLocationBillingOrganization → getCurrentMonthUsage → createInvoiceAndChargeImmediately. Specs on APIs.io.