Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
FaxStore IconFaxStore

Weblutions Documentation / FaxStore / Orders API

Updated

Orders API

By Josh M. 1 mins 41

The Orders API for FaxStore handles the creation, updating, deletion, and retrieval of orders. It ensures efficient order management throughout the purchasing process.

The Orders API is deprecated. To fetch an accounts orders it is recommended to use the Accounts API.
To fetch all orders made on the store refer to the Payments API.

Table of Contents


Get Accounts Orders

GET/api/orders/account/:id
Returns all orders placed by the specified account.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Path parameters
NameTypeRequiredDescription
idStringrequiredThe user ID to fetch orders from.
Responses
200OKjson
View response body
[
  {
    "id": 74,
    "userId": "282762192544333827",
    "username": "John Doe",
    "object": "{"title":"Cart payment via PayPal","payment":{"subtotal":"9.99","discount":"0.00","total":"9.99","promoCode":null},"items":[{"name":"Skins  - 2","price":"9.99","description":"Item type: 1"}],"createdAt":1699931646679}",
    "createdAt": "1699931646679",
    "method": "via PayPal",
    "customer": "{"id":"1DC02600C4769332G","email":"sb-h2sue18503054@personal.example.com","name":"John Doe"}",
    "ip": "::1"
  },
  ...
]

Document History

Loading version history...