Skip to content

Latest commit

 

History

History
141 lines (81 loc) · 4.6 KB

OrdersApi.md

File metadata and controls

141 lines (81 loc) · 4.6 KB

\OrdersApi

All URIs are relative to https://api.aryeo.com/v1

Method HTTP request Description
get_orders GET /orders List all orders.
get_orders_id GET /orders/{order_id} Retrieve an order.
get_products GET /products List all products.
post_orders POST /orders Create an order.

get_orders

crate::models::OrderCollection get_orders(sort, per_page, page) List all orders.

Lists all orders of a group.

Parameters

Name Type Description Required Notes
sort Option<String> Comma separated list of fields used for sorting. Placing a minus symbol in front of a field name sorts in descending order. Defaults to -created_at.
per_page Option<String> The number of items per page. Defaults to 25.
page Option<String> The requested page. Defaults to 1.

Return type

crate::models::OrderCollection

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_orders_id

crate::models::OrderResource get_orders_id(order_id, include) Retrieve an order.

Retrieves the details of an order with the given ID.

Parameters

Name Type Description Required Notes
order_id String The ID of an order. UUID Version 4. [required]
include Option<String> Comma separated list of optional data to include in the response.

Return type

crate::models::OrderResource

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_products

crate::models::ProductCollection get_products(sort, per_page, page, filter_search, filter_include_inactive, filter_category_ids, filter_type) List all products.

List all products of a group.

Parameters

Name Type Description Required Notes
sort Option<String> Comma separated list of fields used for sorting. Placing a minus symbol in front of a field name sorts in descending order. Defaults to title.
per_page Option<String> The number of items per page. Defaults to 25.
page Option<String> The requested page. Defaults to 1.
filter_search Option<String> Return products that have fields matching this term.
filter_include_inactive Option<bool> Include inactive products (in addition to active products) when returning products.
filter_category_ids Option<Vec> Return products in the given categories.
filter_type Option<String> Return products matching the given type. Allowed values are: MAIN, ADDON.

Return type

crate::models::ProductCollection

Authorization

Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_orders

crate::models::OrderResource post_orders(order_post_payload) Create an order.

Create an order.

Parameters

Name Type Description Required Notes
order_post_payload Option<OrderPostPayload> OrderPostPayload

Return type

crate::models::OrderResource

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]