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.
This is only one example, we can talk in details the format of the data that's more suitable for your use case.
Endpoint should be secure, we recommend providing us OAuth2 with a token authentication or API key.
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.comcurl -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",
}
]
}