Creates one or multiple licenses. Returns order details along with the license id and keycode created for each item in the order.

POST {{baseUrl}}/api/ecom/licenses

[DEPRECATED: APIs under the ECom.Licenses scope are scheduled for End of Life effective December 1, 2020. At that time this API will no longer be available. Please see ECom.Shop (e.g. Create Cart) for the next generation Ecommerce API functionality.]

Request Body

{"Order"=>{"PartnerOrderCode"=>nil, "PartnerOrderDate"=>nil, "LanguageCode"=>"EN", "LocationCode"=>"USA", "PurchaseOrder"=>nil, "Items"=>[{"Modules"=>[{"Code"=>"DNS", "Seats"=>50}, {"Code"=>"WSAT", "Seats"=>50}], "PartnerProductId"=>"113400101", "Quantity"=>1, "Seats"=>50, "ListPrice"=>nil, "UnitPrice"=>nil, "StartDate"=>nil, "ExpirationDate"=>nil}], "Customers"=>[{"ExternalAccountId"=>"MyAccountRef7752", "FirstName"=>"John", "LastName"=>"Doe", "CompanyName"=>"Incorporated Inc.", "CustomerEmail"=>"jdoe@incorporated.com", "PhoneNumber"=>"07562068", "Address1"=>"Samplestreet 5", "Address2"=>nil, "City"=>"Denver", "State"=>"CO", "Country"=>"USA", "PostalCode"=>"80123", "OrderCompanyTypeId"=>1}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"Order":{"VendorOrderCode":"PSV0065019580","VendorOrderDate":"2022-11-29T10:36:05.5129784Z","CurrencyCode":"USD","TotalAmount":5000,"SubTotalAmount":5000,"TaxTotal":0,"Items":[{"ProductId":"113400101","Quantity":1,"Seats":50,"Years":1,"ListPrice":100,"UnitPrice":100,"LicenseId":169374726,"Keycode":"7DD2B675A7C5458AB6A0","Modules":[{"ProductId":"113400101","Quantity":1,"Seats":50,"Years":2,"ListPrice":200,"UnitPrice":250}]}],"Customer":{"FirstName":"John","LastName":"Doe","CompanyName":"Incorporated Inc.","CustomerEmail":"jdoe@incorporated.com","PhoneNumber":"07307942","Address1":"Samplestreet 5","Address2":null,"City":"Denver","State":"CO","PostalCode":"80123","Country":"USA"}}}