Customer Order Info
Endpoints to manage a customer's orders.
'/customers/{id}/order-chips'
GET
async find(
@param.path.string('id') id: typeof Customer.prototype.id,
): Promise<OrderChip[]>Auth: Yes RBAC: Admin, Customer (owner)
Retrieve all chip orders for a given customer.
'/customers/{id}/orders'
GET
async getCustomerOrders(
@param.path.string('id') id: typeof Customer.prototype.id,
@param.filter(OrderInfo) filter?: Filter<OrderInfo>,
): Promise<OrderInfo[]>Auth: Yes RBAC: Admin, Customer (owner)
Retrieve all orders for a given customer.
'/customers/{id}/cart'
GET
async getCustomerCart(
@param.path.string('id') id: string,
): Promise<OrderInfo>Auth: Yes RBAC: Admin, Customer (owner)
Get a given customers cart.
'/customers/{id}/orders/{orderId}/checkout'
POST
async checkoutCart(
@param.path.string('id') id: typeof Customer.prototype.id,
@param.path.number('orderId') orderId: typeof OrderInfo.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(Address, {
title: 'NewAddress',
partial: true,
}),
},
},
})
address?: DTO<Address>,
): Promise<OrderInfo>Auth: Yes RBAC: Admin, Customer (owner)
Execute cart checkout for a given customer.
Last updated