Add New Price to an existing course
Create completely new pricing data for existing courses i.e. add one or more new prices. If the price records are successfully created then a “Get course pricing data by Course ID” will be provided in the response.
URL: https://api.viewcentral.com/api/course/{course-id}/price
Method | Base Url | End Point |
POST | https://api.viewcentral.com | /api/course/{course-id}/price |
Header Type: JSON(application/json)
Key | Value |
CompanyLoginId | (Enter your LTOPS company ID) |
ProductId | 1 |
Username | (Enter your username) |
Password | (Enter your password) |
Sample Request Body |
{ "PriceRecord": [ { "PriceName": "intro price by api part1 ", "Description": "Descr", "IsListPrice": 0, "AlwaysDisplay": 0, "DisplayToAll": "", "IgnoreDiscountUplift": "", "DisplayOnly": "", "DisplayMultiCurrencies": "", "StartDate": "2017-11-08", "ExpirationDate": "2017-11-08", "OtherPrice": "", "CountryCurrency": [ { "CurrencyCountry": "US", "CurrencyCode": "USD", "Price": "555", "DefaultPrice": 0 }, { "CurrencyCountry": "CN", "CurrencyCode": "INR", "Price": "0", "DefaultPrice": 1 } ], "AttendeeGroups": [ { "GroupID": 2 } ] }, { "PriceName": "intro price by api part2", "Description": "", "IsListPrice": 0, "AlwaysDisplay": 1, "DisplayToAll": 1, "IgnoreDiscountUplift": 1, "DisplayOnly": 0, "DisplayMultiCurrencies": 1, "StartDate": "2017-12-0JSON8", "ExpirationDate": "2017-12-08", "OtherPrice": " otherprice " } ] } |
Sample Response |
{ "Success": true, "Error": null, "Data": { "CourseId": 3, "PriceRecord": [ { "RowId": 6, "PricingId": 6, "PriceName": "intro price by api part1", "Description": "Descr", "IsListPrice": 0, "AlwaysDisplay": 0, "DisplayToAll": 0, "IgnoreDiscountUplift": 0, "DisplayOnly": 0, "DisplayMultiCurrencies": 0, "StartDate": "2017-11-08T08:00:00.000", "ExpirationDate": "2017-11-08T08:00:00.000", "OtherPrice": "", "PriceType": "Numeric", "CountryCurrency": [ { "CurrencyCountry": "CN", "CurrencyCode": "INR", "Price": "0.00", "DefaultPrice": 1, "ID": 797130 }, { "CurrencyCountry": "US", "CurrencyCode": "USD", "Price": "555.00", "DefaultPrice": 0, "ID": 797129 } ], "AttendeeGroups": [ { "GroupID": 2, "GroupName": "Enablement Users" } ] }, { "RowId": 7, "PricingId": 6, "PriceName": "intro price by api part2", "Description": "", "IsListPrice": 0, "AlwaysDisplay": 1, "DisplayToAll": 1, "IgnoreDiscountUplift": 1, "DisplayOnly": 0, "DisplayMultiCurrencies": 1, "StartDate": "2017-12-08T08:00:00.000", "ExpirationDate": "2017-12-08T08:00:00.000", "OtherPrice": "otherprice", "PriceType": "AlphaNumeric", "CountryCurrency": [ { "CurrencyCountry": "", "CurrencyCode": "USD", "Price": "", "DefaultPrice": 0, "ID": 797131 } ], "AttendeeGroups": [] } ] } } |
Response