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
  }
}'

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
expiresIn
number

Time, in seconds, after which this Order will expire

Required range: x < 3600
externalUserId
string

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

identityPrefill
object

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

nft
object
referenceId
string

Unique ID for an order

taxRates
object

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

Response

200 - application/json
clientToken
string

Unique token that is used to authenticate the merchant

expiresAt
string

Time at which the order will expire