From 64ceb18fe2659e36edf3ec92b311c325e7753268 Mon Sep 17 00:00:00 2001 From: Sebastian Wells Date: Thu, 5 Oct 2023 11:51:07 +1300 Subject: [PATCH] add public response payloads for get asset and get asset transfers --- legacy/src/api/assets/asset-transfers.md | 13 +++++++++++++ legacy/src/api/assets/assets.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/legacy/src/api/assets/asset-transfers.md b/legacy/src/api/assets/asset-transfers.md index 4c6dd0dbb..1a688babe 100644 --- a/legacy/src/api/assets/asset-transfers.md +++ b/legacy/src/api/assets/asset-transfers.md @@ -168,6 +168,19 @@ The above example has $10 left on a $60 dollar giftcard at the time of transfer. } {% endjson %} +{% h4 Example response payload (public view - authorization not required) %} + +{% json %} +{ + "id": "M7Kn2stAxNa6ri7h", + "status": "created", + "assetId": "YGRo6TYYSxH3js7", + "message": "Happy birthday", + "senderName": "My Cafe", + "createdAt": "2020-05-01T12:30:00.000Z" +} +{% endjson %} + ## Resolve claimable assets **EXPERIMENTAL** When you send another centrapay user cash or assets, they're automatically assigned to them. diff --git a/legacy/src/api/assets/assets.md b/legacy/src/api/assets/assets.md index 01b1f47d1..aea037255 100644 --- a/legacy/src/api/assets/assets.md +++ b/legacy/src/api/assets/assets.md @@ -158,6 +158,19 @@ Tokens have the following fields along with the base asset fields. } {% endjson %} +{% h4 Example response payload (public view - authorization not required) %} + +{% json %} +{ + "id": "L75M3L56N2PtBSt8g7uXLU", + "issuer": "Centraperk Cafe", + "description": "Free Coffee", + "expiresAt": "2020-12-31T00:00:00.000Z", + "img": "https://static.centrapay.com/assets/brands/centraperk/cafe-token.png", + "liveness": "test" +} +{% endjson %} + ### List Assets for Account Returns a [paginated][] list of Assets for an account. This will not return archived assets.