Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For general information about the Subscription feature, see 6.12 How to Manage Subscriptions/Recurring Payments.

Please take note that the Subscription API consists of 2 different calls:

...

The API call for the creation of the initial Media Campaign creation requires your Subscription Contract as well as the Subscription Ad Price Assignments to be set up correctly.
With those records you can start the API which will result in your initial Media Campaign getting created similar to how you would do it via the action button in the UI: https://advendio.atlassian.net/wiki/spaces/SO/pages/1403617323/6.12+How+to+Manage+Subscriptions+Recurring+Payments#How-to-Invoice-your-Subscription-Contracts%3F

URL

https://<my-domain-name>.my.salesforce.com/services/apexrest/ADvendio/ADvendio__Subscription__c/InitialMediaCampaignCreation/*

...

The API requires a JSON string with the subscription ad price assignment id , new and the until date and new quantity to use the API action. The new quantity will be calculated automatically but can also be set manually.

Example:

Code Block
languagejson
{
  "assigmentId": "a2i1j000001JDSPAA4",
  "untilDate": "2021-11-24",
  "quantity": "1"
}

Success response

Code: 204

...