Skip to content

Commit

Permalink
Merge pull request #802 from centrapay/create-token-account-id
Browse files Browse the repository at this point in the history
Create token with accountId
  • Loading branch information
Ray2126 authored Oct 10, 2023
2 parents c0f7dcd + a8e0d10 commit cc48c0b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions legacy/src/api/assets/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ Note: The `pageKey` value, if provided, needs to be URL-encoded.
"externalId": "23403283262",
})
}
example {
title 'Create a token with accountId'
body ({
"collectionId": "Jaim1Cu1Q55uooxSens6yk",
"idempotencyKey": "payment-de32dd90-b46c-11ea-93c3-83a333b86e7b",
"accountId": "WRhAxxWpTKb5U7pXyxQjjP",
})
}
{% endreqspec %}

{% h4 Fields %}
Expand All @@ -235,6 +243,7 @@ Note: The `pageKey` value, if provided, needs to be URL-encoded.
| collectionId | String | The [token collection](#token-collection) that will govern the branding and redemption rules for the token. |
| idempotencyKey | String | Client-supplied identifier that prevents double creation. |
| externalId | String {% opt %} | The asset identifier from the issuing system. |
| accountId | String {% opt %} | The account to create the token for. Defaults to the account on the token collection. |

{% h4 Example response payload %}

Expand Down

0 comments on commit cc48c0b

Please sign in to comment.