SQL Server / DocuSign REST API / Updates the account billing plan.
Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
-- Use this online tool to generate code from sample JSON: Generate Code to Create JSON
-- The following JSON is sent in the request body.
-- {
-- "planInformation": {
-- "planId": "sample string 1",
-- "planFeatureSets": [
-- {
-- "featureSetId": "sample string 1",
-- "isActive": "sample string 2",
-- "name": "sample string 3",
-- "fixedFee": "sample string 4",
-- "envelopeFee": "sample string 5",
-- "seatFee": "sample string 6",
-- "isEnabled": "sample string 7",
-- "is21CFRPart11": "sample string 8",
-- "currencyFeatureSetPrices": [
-- {
-- "currencyCode": "sample string 1",
-- "fixedFee": "sample string 2",
-- "seatFee": "sample string 3",
-- "envelopeFee": "sample string 4",
-- "currencySymbol": "sample string 5"
-- }
-- ]
-- }
-- ],
-- "addOns": [
-- {
-- "id": "sample string 1",
-- "addOnId": "sample string 2",
-- "name": "sample string 3",
-- "active": "sample string 4"
-- }
-- ],
-- "recipientDomains": [
-- {
-- "recipientDomainId": "sample string 1",
-- "domainCode": "sample string 2",
-- "domainName": "sample string 3",
-- "active": "sample string 4"
-- }
-- ],
-- "currencyCode": "sample string 2",
-- "freeTrialDaysOverride": "sample string 3"
-- },
-- "enableSupport": "sample string 1",
-- "includedSeats": "sample string 2",
-- "incrementalSeats": "sample string 3",
-- "saleDiscountPercent": "sample string 4",
-- "saleDiscountAmount": "sample string 5",
-- "saleDiscountFixedAmount": "sample string 6",
-- "saleDiscountPeriods": "sample string 7",
-- "saleDiscountSeatPriceOverride": "sample string 8",
-- "renewalStatus": "sample string 9",
-- "downgradeReason": "sample string 10",
-- "creditCardInformation": {
-- "cardNumber": "sample string 1",
-- "expirationMonth": "sample string 2",
-- "expirationYear": "sample string 3",
-- "nameOnCard": "sample string 4",
-- "cardType": "sample string 5",
-- "address": {
-- "street1": "sample string 1",
-- "street2": "sample string 2",
-- "city": "sample string 3",
-- "state": "sample string 4",
-- "zip": "sample string 5",
-- "phone": "sample string 6",
-- "fax": "sample string 7",
-- "country": "sample string 8",
-- "zipPlus4": "sample string 9"
-- }
-- },
-- "appStoreReceipt": {
-- "productId": "sample string 1",
-- "receiptData": "sample string 2"
-- },
-- "billingAddress": {
-- "address1": "sample string 1",
-- "address2": "sample string 2",
-- "city": "sample string 3",
-- "state": "sample string 4",
-- "postalCode": "sample string 5",
-- "phone": "sample string 6",
-- "fax": "sample string 7",
-- "country": "sample string 8",
-- "firstName": "sample string 9",
-- "lastName": "sample string 10",
-- "email": "sample string 11",
-- "supportedCountries": [
-- {
-- "isoCode": "sample string 1",
-- "provinceValidated": "sample string 2",
-- "name": "sample string 3",
-- "provinces": [
-- {
-- "isoCode": "sample string 1",
-- "name": "sample string 2"
-- }
-- ]
-- }
-- ]
-- },
-- "referralInformation": {
-- "enableSupport": "sample string 1",
-- "includedSeats": "sample string 2",
-- "saleDiscountPercent": "sample string 3",
-- "saleDiscountAmount": "sample string 4",
-- "saleDiscountFixedAmount": "sample string 5",
-- "saleDiscountPeriods": "sample string 6",
-- "saleDiscountSeatPriceOverride": "sample string 7",
-- "planStartMonth": "sample string 8",
-- "referralCode": "sample string 9",
-- "referrerName": "sample string 10",
-- "advertisementId": "sample string 11",
-- "publisherId": "sample string 12",
-- "shopperId": "sample string 13",
-- "promoCode": "sample string 14",
-- "groupMemberId": "sample string 15",
-- "idType": "sample string 16",
-- "industry": "sample string 17",
-- "externalOrgId": "sample string 18"
-- },
-- "paymentProcessorInformation": {
-- "billingAgreementId": "sample string 1",
-- "email": "sample string 2",
-- "address": {}
-- }
-- }
DECLARE @json int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @json OUT
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planId', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].featureSetId', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].isActive', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].name', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].fixedFee', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].envelopeFee', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].seatFee', 'sample string 6'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].isEnabled', 'sample string 7'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].is21CFRPart11', 'sample string 8'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].currencyFeatureSetPrices[0].currencyCode', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].currencyFeatureSetPrices[0].fixedFee', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].currencyFeatureSetPrices[0].seatFee', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].currencyFeatureSetPrices[0].envelopeFee', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.planFeatureSets[0].currencyFeatureSetPrices[0].currencySymbol', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.addOns[0].id', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.addOns[0].addOnId', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.addOns[0].name', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.addOns[0].active', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.recipientDomains[0].recipientDomainId', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.recipientDomains[0].domainCode', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.recipientDomains[0].domainName', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.recipientDomains[0].active', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.currencyCode', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'planInformation.freeTrialDaysOverride', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'enableSupport', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'includedSeats', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'incrementalSeats', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'saleDiscountPercent', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'saleDiscountAmount', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'saleDiscountFixedAmount', 'sample string 6'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'saleDiscountPeriods', 'sample string 7'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'saleDiscountSeatPriceOverride', 'sample string 8'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'renewalStatus', 'sample string 9'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'downgradeReason', 'sample string 10'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.cardNumber', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.expirationMonth', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.expirationYear', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.nameOnCard', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.cardType', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.street1', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.street2', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.city', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.state', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.zip', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.phone', 'sample string 6'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.fax', 'sample string 7'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.country', 'sample string 8'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'creditCardInformation.address.zipPlus4', 'sample string 9'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'appStoreReceipt.productId', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'appStoreReceipt.receiptData', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.address1', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.address2', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.city', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.state', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.postalCode', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.phone', 'sample string 6'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.fax', 'sample string 7'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.country', 'sample string 8'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.firstName', 'sample string 9'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.lastName', 'sample string 10'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.email', 'sample string 11'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.supportedCountries[0].isoCode', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.supportedCountries[0].provinceValidated', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.supportedCountries[0].name', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.supportedCountries[0].provinces[0].isoCode', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'billingAddress.supportedCountries[0].provinces[0].name', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.enableSupport', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.includedSeats', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.saleDiscountPercent', 'sample string 3'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.saleDiscountAmount', 'sample string 4'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.saleDiscountFixedAmount', 'sample string 5'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.saleDiscountPeriods', 'sample string 6'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.saleDiscountSeatPriceOverride', 'sample string 7'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.planStartMonth', 'sample string 8'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.referralCode', 'sample string 9'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.referrerName', 'sample string 10'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.advertisementId', 'sample string 11'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.publisherId', 'sample string 12'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.shopperId', 'sample string 13'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.promoCode', 'sample string 14'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.groupMemberId', 'sample string 15'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.idType', 'sample string 16'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.industry', 'sample string 17'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'referralInformation.externalOrgId', 'sample string 18'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'paymentProcessorInformation.billingAgreementId', 'sample string 1'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'paymentProcessorInformation.email', 'sample string 2'
EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'paymentProcessorInformation.address'
-- Adds the "Authorization: Bearer {{accessToken}}" header.
EXEC sp_OASetProperty @http, 'AuthToken', '{{accessToken}}'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @sbRequestBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbRequestBody OUT
EXEC sp_OAMethod @json, 'EmitSb', @success OUT, @sbRequestBody
DECLARE @resp int
EXEC sp_OAMethod @http, 'PTextSb', @resp OUT, 'PUT', 'https://domain.com/v2.1/accounts/{{accountId}}/billing_plan?preview_billing_plan={{preview_billing_plan}}', @sbRequestBody, 'utf-8', 'application/json', 0, 0
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
RETURN
END
EXEC sp_OAGetProperty @resp, 'StatusCode', @iTmp0 OUT
PRINT @iTmp0
EXEC sp_OAGetProperty @resp, 'BodyStr', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
END
GO
Curl Command
curl -X PUT
-H "Accept: application/json"
-H "Authorization: Bearer {{accessToken}}"
-d '{
"planInformation": {
"planId": "sample string 1",
"planFeatureSets": [
{
"featureSetId": "sample string 1",
"isActive": "sample string 2",
"name": "sample string 3",
"fixedFee": "sample string 4",
"envelopeFee": "sample string 5",
"seatFee": "sample string 6",
"isEnabled": "sample string 7",
"is21CFRPart11": "sample string 8",
"currencyFeatureSetPrices": [
{
"currencyCode": "sample string 1",
"fixedFee": "sample string 2",
"seatFee": "sample string 3",
"envelopeFee": "sample string 4",
"currencySymbol": "sample string 5"
}
]
}
],
"addOns": [
{
"id": "sample string 1",
"addOnId": "sample string 2",
"name": "sample string 3",
"active": "sample string 4"
}
],
"recipientDomains": [
{
"recipientDomainId": "sample string 1",
"domainCode": "sample string 2",
"domainName": "sample string 3",
"active": "sample string 4"
}
],
"currencyCode": "sample string 2",
"freeTrialDaysOverride": "sample string 3"
},
"enableSupport": "sample string 1",
"includedSeats": "sample string 2",
"incrementalSeats": "sample string 3",
"saleDiscountPercent": "sample string 4",
"saleDiscountAmount": "sample string 5",
"saleDiscountFixedAmount": "sample string 6",
"saleDiscountPeriods": "sample string 7",
"saleDiscountSeatPriceOverride": "sample string 8",
"renewalStatus": "sample string 9",
"downgradeReason": "sample string 10",
"creditCardInformation": {
"cardNumber": "sample string 1",
"expirationMonth": "sample string 2",
"expirationYear": "sample string 3",
"nameOnCard": "sample string 4",
"cardType": "sample string 5",
"address": {
"street1": "sample string 1",
"street2": "sample string 2",
"city": "sample string 3",
"state": "sample string 4",
"zip": "sample string 5",
"phone": "sample string 6",
"fax": "sample string 7",
"country": "sample string 8",
"zipPlus4": "sample string 9"
}
},
"appStoreReceipt": {
"productId": "sample string 1",
"receiptData": "sample string 2"
},
"billingAddress": {
"address1": "sample string 1",
"address2": "sample string 2",
"city": "sample string 3",
"state": "sample string 4",
"postalCode": "sample string 5",
"phone": "sample string 6",
"fax": "sample string 7",
"country": "sample string 8",
"firstName": "sample string 9",
"lastName": "sample string 10",
"email": "sample string 11",
"supportedCountries": [
{
"isoCode": "sample string 1",
"provinceValidated": "sample string 2",
"name": "sample string 3",
"provinces": [
{
"isoCode": "sample string 1",
"name": "sample string 2"
}
]
}
]
},
"referralInformation": {
"enableSupport": "sample string 1",
"includedSeats": "sample string 2",
"saleDiscountPercent": "sample string 3",
"saleDiscountAmount": "sample string 4",
"saleDiscountFixedAmount": "sample string 5",
"saleDiscountPeriods": "sample string 6",
"saleDiscountSeatPriceOverride": "sample string 7",
"planStartMonth": "sample string 8",
"referralCode": "sample string 9",
"referrerName": "sample string 10",
"advertisementId": "sample string 11",
"publisherId": "sample string 12",
"shopperId": "sample string 13",
"promoCode": "sample string 14",
"groupMemberId": "sample string 15",
"idType": "sample string 16",
"industry": "sample string 17",
"externalOrgId": "sample string 18"
},
"paymentProcessorInformation": {
"billingAgreementId": "sample string 1",
"email": "sample string 2",
"address": {}
}
}'
https://domain.com/v2.1/accounts/{{accountId}}/billing_plan?preview_billing_plan={{preview_billing_plan}}
Postman Collection Item JSON
{
"name": "Updates the account billing plan.",
"request": {
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"planInformation\": {\n \"planId\": \"sample string 1\",\n \"planFeatureSets\": [\n {\n \"featureSetId\": \"sample string 1\",\n \"isActive\": \"sample string 2\",\n \"name\": \"sample string 3\",\n \"fixedFee\": \"sample string 4\",\n \"envelopeFee\": \"sample string 5\",\n \"seatFee\": \"sample string 6\",\n \"isEnabled\": \"sample string 7\",\n \"is21CFRPart11\": \"sample string 8\",\n \"currencyFeatureSetPrices\": [\n {\n \"currencyCode\": \"sample string 1\",\n \"fixedFee\": \"sample string 2\",\n \"seatFee\": \"sample string 3\",\n \"envelopeFee\": \"sample string 4\",\n \"currencySymbol\": \"sample string 5\"\n }\n ]\n }\n ],\n \"addOns\": [\n {\n \"id\": \"sample string 1\",\n \"addOnId\": \"sample string 2\",\n \"name\": \"sample string 3\",\n \"active\": \"sample string 4\"\n }\n ],\n \"recipientDomains\": [\n {\n \"recipientDomainId\": \"sample string 1\",\n \"domainCode\": \"sample string 2\",\n \"domainName\": \"sample string 3\",\n \"active\": \"sample string 4\"\n }\n ],\n \"currencyCode\": \"sample string 2\",\n \"freeTrialDaysOverride\": \"sample string 3\"\n },\n \"enableSupport\": \"sample string 1\",\n \"includedSeats\": \"sample string 2\",\n \"incrementalSeats\": \"sample string 3\",\n \"saleDiscountPercent\": \"sample string 4\",\n \"saleDiscountAmount\": \"sample string 5\",\n \"saleDiscountFixedAmount\": \"sample string 6\",\n \"saleDiscountPeriods\": \"sample string 7\",\n \"saleDiscountSeatPriceOverride\": \"sample string 8\",\n \"renewalStatus\": \"sample string 9\",\n \"downgradeReason\": \"sample string 10\",\n \"creditCardInformation\": {\n \"cardNumber\": \"sample string 1\",\n \"expirationMonth\": \"sample string 2\",\n \"expirationYear\": \"sample string 3\",\n \"nameOnCard\": \"sample string 4\",\n \"cardType\": \"sample string 5\",\n \"address\": {\n \"street1\": \"sample string 1\",\n \"street2\": \"sample string 2\",\n \"city\": \"sample string 3\",\n \"state\": \"sample string 4\",\n \"zip\": \"sample string 5\",\n \"phone\": \"sample string 6\",\n \"fax\": \"sample string 7\",\n \"country\": \"sample string 8\",\n \"zipPlus4\": \"sample string 9\"\n }\n },\n \"appStoreReceipt\": {\n \"productId\": \"sample string 1\",\n \"receiptData\": \"sample string 2\"\n },\n \"billingAddress\": {\n \"address1\": \"sample string 1\",\n \"address2\": \"sample string 2\",\n \"city\": \"sample string 3\",\n \"state\": \"sample string 4\",\n \"postalCode\": \"sample string 5\",\n \"phone\": \"sample string 6\",\n \"fax\": \"sample string 7\",\n \"country\": \"sample string 8\",\n \"firstName\": \"sample string 9\",\n \"lastName\": \"sample string 10\",\n \"email\": \"sample string 11\",\n \"supportedCountries\": [\n {\n \"isoCode\": \"sample string 1\",\n \"provinceValidated\": \"sample string 2\",\n \"name\": \"sample string 3\",\n \"provinces\": [\n {\n \"isoCode\": \"sample string 1\",\n \"name\": \"sample string 2\"\n }\n ]\n }\n ]\n },\n \"referralInformation\": {\n \"enableSupport\": \"sample string 1\",\n \"includedSeats\": \"sample string 2\",\n \"saleDiscountPercent\": \"sample string 3\",\n \"saleDiscountAmount\": \"sample string 4\",\n \"saleDiscountFixedAmount\": \"sample string 5\",\n \"saleDiscountPeriods\": \"sample string 6\",\n \"saleDiscountSeatPriceOverride\": \"sample string 7\",\n \"planStartMonth\": \"sample string 8\",\n \"referralCode\": \"sample string 9\",\n \"referrerName\": \"sample string 10\",\n \"advertisementId\": \"sample string 11\",\n \"publisherId\": \"sample string 12\",\n \"shopperId\": \"sample string 13\",\n \"promoCode\": \"sample string 14\",\n \"groupMemberId\": \"sample string 15\",\n \"idType\": \"sample string 16\",\n \"industry\": \"sample string 17\",\n \"externalOrgId\": \"sample string 18\"\n },\n \"paymentProcessorInformation\": {\n \"billingAgreementId\": \"sample string 1\",\n \"email\": \"sample string 2\",\n \"address\": {}\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/v2.1/accounts/{{accountId}}/billing_plan?preview_billing_plan={{preview_billing_plan}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v2.1",
"accounts",
"{{accountId}}",
"billing_plan"
],
"query": [
{
"key": "preview_billing_plan",
"value": "{{preview_billing_plan}}"
}
],
"variable": [
{
"key": "accountId",
"value": "{{accountId}}"
}
]
},
"description": "Updates the billing plan information, billing address, and credit card information for the specified account."
},
"response": [
]
}