Skip to content

Commit

Permalink
add public response payloads for get asset and get asset transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
seliwe committed Oct 5, 2023
1 parent fe38b85 commit 64ceb18
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions legacy/src/api/assets/asset-transfers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 13 additions & 0 deletions legacy/src/api/assets/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 64ceb18

Please sign in to comment.