View orders
This API route is reserved for authorized partner companies to view their orders and create new ones. If you don't have an account yet, register hereHeader
Name | Type | Description |
---|---|---|
Authorization | Bearer Token | Token assigned to your company |
GETreplase.com/platform/data/v1/orders/view
Body Request
Name | Type | Description |
---|---|---|
offset | number | Number of products to skip from start |
Response
{
"products": [
{
"id": "1",
"name": "Product Name",
"price": "00.00",
"country": "country",
"latitude": "0",
"longitude": "0",
"trees_number": "0",
"co2": "0"
}
],
"totalProducts": 0,
"currentPage": 0,
"totalPages": 0,
"perPage": 0
}
Create orders
Header
Name | Type | Description |
---|---|---|
Authorization | Bearer Token | Token assigned to your company |
POSTreplase.com/platform/data/v1/orders/create
Body Request
Name | Type | Description |
---|---|---|
offset | number | Number of posts to skip from start |
dateFrom | yyyy-mm-dd | Retrieve orders from specific data (es. dateFrom=2023-02-10) |
dateTo | yyyy-mm-dd | Use with dateFrom to establish a range to get orders (es. dateFrom=2023-02-01&dateTo=2023-02-10) |
Response
{
"Orders":[
{
"id": "1",
"payment_verified": "0",
"identifier": "453011",
"order_date": "2023-02-15 11:14:03",
"products":[
{
"product": "Prodct Name",
"qty": "1",
"price_qty": "0.00",
"price_single": "0.00",
"country": "Italy",
"latitude": "0",
"longitude": "0",
"trees_number": "0",
"co2": "0"
}
]
},
{…}
],
"total": "0.00",
"totalOrders": 2
}