Actions
Marketplace » History » Revision 5
« Previous |
Revision 5/11
(diff)
| Next »
Ryan Supawarapong, 02/17/2026 04:10 AM
Marketplace¶
Diagram¶
!!! sequence diagram here
API route¶
Get info¶
Allow authenticated user to get listing of market place
| Type | Value |
|---|---|
| API URL | /api/v1/customer/marketplace/listing/get |
| Type | Get |
| Param/Body Input | N/A |
Response¶
| JSON Path | Type | Example | Required |
|---|---|---|---|
| status | string | "success" | yes |
| xid | string | "xRequestID" | yes |
| data | object | {"marketplace":[...]} | yes |
| data.marketplace | array<object | [ { ... } ] | yes |
| data.marketplace[].id | integer | 1 | yes |
| data.marketplace[].icoCode | string | "product1" | yes |
| data.marketplace[].from | integer | 90000004 | yes |
| data.marketplace[].to | integer | 0 | yes |
| data.marketplace[].unitAmount | integer | 10 | yes |
| data.marketplace[].unitPrice | number | 2 | yes |
| data.marketplace[].totalPrice | number | 20 | yes |
| data.marketplace[].status | integer | 0 | yes |
| data.marketplace[].CreatedAt | string (date-time) | "2024-06-01T00:00:00Z" | yes |
| data.marketplace[].UpdatedAt | string (date-time) | "0001-01-01T00:00:00Z" | yes |
| data.marketplace[].DeletedAt | null/object | null | yes |
Example response body¶
| Body | Value |
|---|---|
| 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}]}} |
Updated by Ryan Supawarapong about 5 hours ago · 11 revisions