Skip to main content
POST
/
auth
/
client-tokens
curl --request POST \
--url https://api.sandbox.sardine.ai/v1/auth/client-tokens \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"referenceId": "42eadcb0-4a93-45af-9c8c-d295db5aeb6c",
"customerId": "adf02ae2-f633-11ec-b939-0242ac120002",
"nft": {
"name": "NFT #1",
"price": 100,
"currencyCode": "USD",
"imageUrl": "https://gateway.nftcompany.io/ipfsQmSAQm4gbhjSeUk7fuYppHd7Z8dfWpBvnFmqFSKqkrUJPM"
},
"identityPrefill": {
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2000-01-01",
"emailAddress": "foobar@gmail.com",
"phone": "+19254485826",
"address": {
"street1": "123 Main st",
"street2": "",
"city": "irvine",
"regionCode": "CA",
"postalCode": "02747",
"countryCode": "US"
}
},
"taxRates": {
"US": 10,
"US-CA": 20
}
}'
{
  "clientToken": "8aeae330-9154-4051-ab98-d173ba2bc7f0"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
referenceId
string<uuid>

Unique ID for an order

expiresIn
number

Time, in seconds, after which this Order will expire

Required range: x <= 3600
Examples:

60

externalUserId
string<uuid>

A unique ID that represents a user or customer. This can be used if you wish to track orders on a per customer basis

nft
object
taxRates
object

Which contains rates for countries/regions in ISO3166-2 format.

identityPrefill
object

If fields here are passed, they will be pre filled in the Checkout

Response

OK

clientToken
string<uuid>

Unique token that is used to authenticate the merchant

expiresAt
string<date-time>

Time at which the order will expire

I