Marketplace » History » Version 11
Ryan Supawarapong, 02/17/2026 08:53 AM
| 1 | 1 | Ryan Supawarapong | # Marketplace |
|---|---|---|---|
| 2 | |||
| 3 | 4 | Ryan Supawarapong | ## Diagram |
| 4 | |||
| 5 | 7 | Ryan Supawarapong | ### Sell |
| 6 | Flowchart and sequence diagram for sell api. |
||
| 7 | 6 | Ryan Supawarapong | <img style="width: 226px;" src="clipboard-202602171357-fmt5h.png"><br> |
| 8 | |||
| 9 | 7 | Ryan Supawarapong | <img style="width: 380px;" src="clipboard-202602171359-nyduz.png"><br> |
| 10 | 4 | Ryan Supawarapong | |
| 11 | 10 | Ryan Supawarapong | ### Reserve |
| 12 | 8 | Ryan Supawarapong | <img style="width: 282px;" src="clipboard-202602171527-anmwr.png"><br> |
| 13 | 11 | Ryan Supawarapong | <img style="width: 600px;" src="clipboard-202602171553-8ikjj.png"><br> |
| 14 | |||
| 15 | 8 | Ryan Supawarapong | |
| 16 | 2 | Ryan Supawarapong | ## API route |
| 17 | |||
| 18 | ### Get info |
||
| 19 | Allow authenticated user to get listing of market place |
||
| 20 | |||
| 21 | 3 | Ryan Supawarapong | | Type | Value | |
| 22 | | ---- | ----- | |
||
| 23 | | API URL | /api/v1/customer/marketplace/listing/get | |
||
| 24 | | Type | Get | |
||
| 25 | | Param/Body Input | N/A | |
||
| 26 | 1 | Ryan Supawarapong | |
| 27 | |||
| 28 | 3 | Ryan Supawarapong | #### Response |
| 29 | |||
| 30 | 1 | Ryan Supawarapong | | JSON Path | Type | Example | Required | |
| 31 | |---|---|---|---| |
||
| 32 | | status | string | "success" | yes | |
||
| 33 | | xid | string | "xRequestID" | yes | |
||
| 34 | | data | object | {"marketplace":[...]} | yes | |
||
| 35 | | data.marketplace | array<object| [ { ... } ] | yes | |
||
| 36 | | data.marketplace[].id | integer | 1 | yes | |
||
| 37 | | data.marketplace[].icoCode | string | "product1" | yes | |
||
| 38 | | data.marketplace[].from | integer | 90000004 | yes | |
||
| 39 | | data.marketplace[].to | integer | 0 | yes | |
||
| 40 | | data.marketplace[].unitAmount | integer | 10 | yes | |
||
| 41 | | data.marketplace[].unitPrice | number | 2 | yes | |
||
| 42 | | data.marketplace[].totalPrice | number | 20 | yes | |
||
| 43 | | data.marketplace[].status | integer | 0 | yes | |
||
| 44 | | data.marketplace[].CreatedAt | string (date-time) | "2024-06-01T00:00:00Z" | yes | |
||
| 45 | | data.marketplace[].UpdatedAt | string (date-time) | "0001-01-01T00:00:00Z" | yes | |
||
| 46 | 2 | Ryan Supawarapong | | data.marketplace[].DeletedAt | null/object | null | yes | |
| 47 | 1 | Ryan Supawarapong | |
| 48 | 3 | Ryan Supawarapong | ##### Example response body |
| 49 | 1 | Ryan Supawarapong | | Body | Value | |
| 50 | |---|---| |
||
| 51 | | 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}]}} | |