Class ProductsController
- Namespace
- InSite.Api.Controllers
- Assembly
- InSite.UI.dll
[ApiAuthenticationRequirement(ApiAuthenticationType.None)]
public class ProductsController : ApiBaseController, IHttpController, IDisposable
- Inheritance
-
ProductsController
- Implements
- Inherited Members
Constructors
ProductsController()
public ProductsController()
Methods
CreateOrder(OrderInfo)
Creates Invoice based on order information object.
[HttpPost]
[ApiAuthenticationRequirement(ApiAuthenticationType.Jwt)]
[Route("api/billing/create-order")]
public HttpResponseMessage CreateOrder(OrderInfo orderInfo)
Parameters
orderInfoOrderInfo
Returns
Get(Guid, Guid)
Returns persons checkout information using the person's unique globally unique identifier.
[HttpGet]
[ApiAuthenticationRequirement(ApiAuthenticationType.Jwt)]
[Route("api/billing/checkout-info")]
public HttpResponseMessage Get(Guid user, Guid organization)
Parameters
Returns
GetInvoice(Guid)
Returns invoice and invoice kids using invoice unique identifier.
[HttpGet]
[ApiAuthenticationRequirement(ApiAuthenticationType.Jwt)]
[Route("api/billing/invoice")]
public HttpResponseMessage GetInvoice(Guid invoice)
Parameters
invoiceGuid
Returns
GetOrders(Guid, Guid)
Returns all orders made by a customer.
[HttpGet]
[ApiAuthenticationRequirement(ApiAuthenticationType.Jwt)]
[Route("api/billing/orders")]
public HttpResponseMessage GetOrders(Guid user, Guid organization)
Parameters
Returns
GetProduct(Guid)
Get one product by product id
[Route("api/billing/product")]
[HttpGet]
public HttpResponseMessage GetProduct(Guid productId)
Parameters
productIdGuid
Returns
ListProducts(Guid)
List products
[Route("api/billing/products")]
[HttpGet]
public HttpResponseMessage ListProducts(Guid organization)
Parameters
organizationGuid