Update Account Offerings
The Twilio SendGrid Account Provisioning API provides a platform for Twilio SendGrid resellers to manage their customers. This API is for companies that have a formal reseller partnership with Twilio SendGrid.
You can access Twilio SendGrid sub-account functionality without becoming a reseller. If you require sub-account functionality, see the Twilio SendGrid Subusers feature, which is available with Pro and Premier plans.
The Account Provisioning API offering operations allow you to update and list Twilio SendGrid features or offerings available for your customer accounts.
The Update Account Offerings operation allows you to add or remove offerings from a specific customer account. Offerings are Twilio SendGrid features or offerings such as a Marketing Campaigns package.
The update is an idempotent PUT operation and each request overwrites existing offerings on the customer account. For this reason, you should include any permissions you want the account to retain with each request, omitting only those you wish to remove from the account. Upgrades and downgrades are available immediately after account provisioning.
Changing an account's package removes any offerings the new package does not allow, even if you include them in the request. Dedicated IP add-ons are removed only when the account's current package allows them and the new package doesn't. When they're removed, the account's dedicated IPs are released immediately and can't be returned to the account.
This operation doesn't manage dedicated IP addresses. It ignores IP add-ons in the request, and omitting them doesn't remove them. To add or remove IPs, use the IP Provisioning API instead.
To retrieve a list of all the offerings you may assign to a customer account, use the List Offerings operation.
PUT/v3/partners/accounts/{accountID}/offerings
Base url: https://api.sendgrid.com (for global users and subusers)
Base url: https://api.eu.sendgrid.com (for EU regional subusers)
Changes a package offering for the specified account. Please note that an account can have only one package offering. Also associates one or more add-on offerings such as Marketing Campaigns, Dedicated IP Addresses, and Expert Services to the specified account.
Bearer <<YOUR_API_KEY_HERE>>Twilio SendGrid account ID
application/jsonList of offerings to assign to account.
OK
Optional
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const accountID = "accountID";5const data = {6offerings: [7{8name: "org.ei.free.v1",9type: "package",10quantity: 1,11},12],13};1415const request = {16url: `/v3/partners/accounts/${accountID}/offerings`,17method: "PUT",18body: data,19};2021client22.request(request)23.then(([response, body]) => {24console.log(response.statusCode);25console.log(response.body);26})27.catch((error) => {28console.error(error);29});