tm-orders-service
v1.0.1
Published
TM Orders Service
Downloads
4
Readme
Documentation
OrderService
Extends TMMicroServiceAPI
Parameters
checkDownloadLinkStatus
Download link status (check) Method: Get url: http://service-orders.dev/api/v1/orders/:orderId/:productId/download-link version: 1.0.0
Parameters
orderId
{String} - Order id.productId
{Number} - Product id.
Returns Object
restoreDownloadLinkStatus
Download link status (restore) Method: Post url: http://service-orders.dev/api/v1/orders/:orderId/:productId/download-link version: 1.0.0
Parameters
orderId
{String} - Order id.productId
{Number} - Product id.
Returns Object
getListOfUserOrders
Get list of users orders Method: Get url: http://service-orders.dev/api/v2/orders version: 2.0.0
Parameters
page
{Number} - page number to view.per_page
{Number} - records per page.product_type
{String} - type of product. Allowed values: "template", "offer", "membership".product_ids
{String} - ID's of products.ids
{String} - ID's of orders.status
{Number} - order status
Returns Object
getOrderById
Get order by ID Method: Get url: http://service-orders.dev/api/v2/orders/:id version: 2.0.0
Parameters
id
{String} - ID of order.
Returns Object
messages
Object with class service messages