Table of Contents

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

orderInfo OrderInfo

Returns

HttpResponseMessage

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

user Guid
organization Guid

Returns

HttpResponseMessage

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

invoice Guid

Returns

HttpResponseMessage

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

user Guid
organization Guid

Returns

HttpResponseMessage

GetProduct(Guid)

Get one product by product id

[Route("api/billing/product")]
[HttpGet]
public HttpResponseMessage GetProduct(Guid productId)

Parameters

productId Guid

Returns

HttpResponseMessage

ListProducts(Guid)

List products

[Route("api/billing/products")]
[HttpGet]
public HttpResponseMessage ListProducts(Guid organization)

Parameters

organization Guid

Returns

HttpResponseMessage