Project

General

Profile

Marketplace » History » Version 13

Ryan Supawarapong, 02/18/2026 01:30 AM

1 1 Ryan Supawarapong
# Marketplace
2
3 13 Ryan Supawarapong
There are the following API:
4
- Get
5
- Sell
6
- Reserve
7
- Update
8
  - Confirm
9
  - Cancel
10
  - Remove  
11
12 4 Ryan Supawarapong
## Diagram
13
14 12 Ryan Supawarapong
15
### Get
16
<img style="width: 264px;" src="clipboard-202602171558-lepmv.png"><br>
17
<img style="width: 324px;" src="clipboard-202602171559-izoj5.png"><br>
18
19 7 Ryan Supawarapong
### Sell
20 6 Ryan Supawarapong
Flowchart and sequence diagram for sell api.
21 7 Ryan Supawarapong
<img style="width: 226px;" src="clipboard-202602171357-fmt5h.png"><br>
22 4 Ryan Supawarapong
<img style="width: 380px;" src="clipboard-202602171359-nyduz.png"><br>
23 1 Ryan Supawarapong
24
### Reserve
25 12 Ryan Supawarapong
<img style="width: 282px;" src="clipboard-202602171527-anmwr.png"><br>
26
<img style="width: 439px;" src="clipboard-202602171557-yqhga.png"><br>
27 11 Ryan Supawarapong
28 8 Ryan Supawarapong
29 2 Ryan Supawarapong
30
## API route
31 1 Ryan Supawarapong
32 13 Ryan Supawarapong
### Get
33 2 Ryan Supawarapong
Allow authenticated user to get listing of market place
34
35 3 Ryan Supawarapong
| Type | Value |
36
| ---- | ----- | 
37
| API URL | /api/v1/customer/marketplace/listing/get |
38
| Type | Get |
39
| Param/Body Input | N/A |
40 1 Ryan Supawarapong
41
42 3 Ryan Supawarapong
#### Response
43
44 1 Ryan Supawarapong
| JSON Path | Type | Example | Required |
45
|---|---|---|---|
46
| status | string | "success" | yes |
47
| xid | string | "xRequestID" | yes |
48
| data | object | {"marketplace":[...]} | yes |
49
| data.marketplace | array<object| [ { ... } ] | yes |
50
| data.marketplace[].id | integer | 1 | yes |
51
| data.marketplace[].icoCode | string | "product1" | yes |
52
| data.marketplace[].from | integer | 90000004 | yes |
53
| data.marketplace[].to | integer | 0 | yes |
54
| data.marketplace[].unitAmount | integer | 10 | yes |
55
| data.marketplace[].unitPrice | number | 2 | yes |
56
| data.marketplace[].totalPrice | number | 20 | yes |
57
| data.marketplace[].status | integer | 0 | yes |
58
| data.marketplace[].CreatedAt | string (date-time) | "2024-06-01T00:00:00Z" | yes |
59
| data.marketplace[].UpdatedAt | string (date-time) | "0001-01-01T00:00:00Z" | yes |
60 2 Ryan Supawarapong
| data.marketplace[].DeletedAt | null/object | null | yes |
61 1 Ryan Supawarapong
62 3 Ryan Supawarapong
##### Example response body
63 1 Ryan Supawarapong
| Body | Value |
64
|---|---|
65
| JSON | {"status":"success","xid":"xRequestID","data":{"marketplace":[{"id":1,"icoCode":"product1","from":90000004,"to":0,"unitAmount":10,"unitPrice":2,"totalPrice":20,"status":0,"CreatedAt":"2024-06-01T00:00:00Z","UpdatedAt":"0001-01-01T00:00:00Z","DeletedAt":null},{"id":2,"icoCode":"product2","from":90000005,"to":0,"unitAmount":5,"unitPrice":3,"totalPrice":15,"status":0,"CreatedAt":"2024-06-01T00:00:10Z","UpdatedAt":"0001-01-01T00:00:00Z","DeletedAt":null},{"id":3,"icoCode":"product3","from":90000006,"to":90000005,"unitAmount":8,"unitPrice":1.5,"totalPrice":12,"status":2,"CreatedAt":"2024-06-01T00:00:20Z","UpdatedAt":"0001-01-01T00:00:00Z","DeletedAt":null}]}} |
66 13 Ryan Supawarapong
67
68
### Sell