Migrates a given customer’s plan credit grants to contract credits and commits in batches.
Callers should check the has_more field of the response to determine if there are more credit grants to migrate.
effective_at date of the migrated plan credit grant is rounded down to the nearest hour. e.g. 2024-01-01T12:34:56Z becomes 2024-01-01T12:00:00Zexpires_at date of the migrated plan credit grant is rounded up to the nearest hour. e.g. 2024-01-01T12:34:56Z becomes 2024-01-01T13:00:00ZThis is a Plans (deprecated) endpoint. New clients should implement using Contracts.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parameters for migrating credit grants to contracts.
The customer ID to migrate credit grants for.
The date to truncate existing plan credit grants to. This should likely be the end date of the customer's most recently finalized invoice.
The product ID to use for contract credits.
The product ID to use for contract prepaid commits.
The priority to use for contract credits.
The priority to use for contract prepaid commits.
Optional mapping configuration for migrating specific credit grants to contract commits. If not provided, defaults to empty array.
If true, perform a dry run without actually executing the migration. If not provided, defaults to false.
The number of credit grants to migrate in this batch.