User Orders

To make it easier for users to resell their products, brands can provide endpoints to access user order history. This allows users to repost their previous orders on our resale platform with a single click.


GETwww.brand.com/orders

Retrieve user order history from brand endpoint

This endpoint allows our system to get user order history from the brand's provided endpoint.

Required attributes

  • Name
    email
    Type
    string
    Description

    The email of the user whose order history is being retrieved.

Process

Our system will use the provided endpoint URL and authentication token to fetch and parse the order history data for the specified user.

Request

GET
https://brand.com/orders?email=example@gmail.com
curl -X GET https://brand.com/orders?email=example@gmail.com \
  -H "Authorization: Bearer {token}"

Response

{
  products: [
    {
      id: "productID1",
      title: "Product Title 1",
      price: "29.99",
      size: "M",
      currency: "USD",
      category: "Man > T-shirt",
      brand: "Brand 1",
      images: ["https://brand.com/image.png"],
      link: "https://brand.com/products/some-product-slug",
      purchaseDate: "2023-06-01",
    }
  ]
}