Wiki » History » Version 1
Ryan Supawarapong, 02/17/2026 02:37 AM
| 1 | 1 | Ryan Supawarapong | # Marketplace |
|---|---|---|---|
| 2 | |||
| 3 | ## API route: |
||
| 4 | - Name: Get info |
||
| 5 | - API URL: /api/v1/customer/marketplace/listing/get |
||
| 6 | - Type: Get |
||
| 7 | - Param/Body Input: N/A |
||
| 8 | - Response |
||
| 9 | |||
| 10 | | JSON Path | Type | Example | Required | |
||
| 11 | |---|---|---|---| |
||
| 12 | | status | string | "success" | yes | |
||
| 13 | | xid | string | "xRequestID" | yes | |
||
| 14 | | data | object | {"marketplace":[...]} | yes | |
||
| 15 | | data.marketplace | array<object| [ { ... } ] | yes | |
||
| 16 | | data.marketplace[].id | integer | 1 | yes | |
||
| 17 | | data.marketplace[].icoCode | string | "product1" | yes | |
||
| 18 | | data.marketplace[].from | integer | 90000004 | yes | |
||
| 19 | | data.marketplace[].to | integer | 0 | yes | |
||
| 20 | | data.marketplace[].unitAmount | integer | 10 | yes | |
||
| 21 | | data.marketplace[].unitPrice | number | 2 | yes | |
||
| 22 | | data.marketplace[].totalPrice | number | 20 | yes | |
||
| 23 | | data.marketplace[].status | integer | 0 | yes | |
||
| 24 | | data.marketplace[].CreatedAt | string (date-time) | "2024-06-01T00:00:00Z" | yes | |
||
| 25 | | data.marketplace[].UpdatedAt | string (date-time) | "0001-01-01T00:00:00Z" | yes | |
||
| 26 | | data.marketplace[].DeletedAt | null/object | null | yes | |
||
| 27 | |||
| 28 | ### Example response body |
||
| 29 | | Body | Value | |
||
| 30 | |---|---| |
||
| 31 | | 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}]}} | |