{
"title": "clientToken Request",
"type": "object",
"properties": {
"customerId": {
"type": "string",
"description": "ID of Customer that can be passed, in lieu of Sardine creating one"
},
"referenceId": {
"type": "string",
"description": "Unique ID that should be passed to refer to this transaction. Status of this transaction will be fetched using this field as the key"
},
"expiresIn" : {
"type" : "string",
"description" : "Time in seconds until the NFT will expire"
},
"nft" : {
"type" : "object",
"description": "Metadata about NFT that needs to be passed",
"properties": {
"name": {
"type" : "string",
"description" : "Name of the NFT"
},
"collection": {
"type" : "string",
"description" : "Collection the NFT belongs to"
},
"price" : {
"type" : "number",
"description" : "Cost of the NFT in `currencyCode`"
},
"currencyCode" : {
"type" : "string",
"description" : "Fiat currency payment happens in",
"example" : "usd"
},
"imageUrl" : {
"type" : "string",
"description" : "Url which is hosting the image of the NFT. This the string must be URL encoded".
},
},
"required" : ["name","price","currencyCode","imageUrl","expiration"]
},
"taxRates": {
"type": "object",
"description": "Which contains rates for countries/regions in ISO3166-2 format.",
"properties": {
"US": {
"type": "string",
"description": "Countrycode like US. It's percentage, US: 10 means 10% tax for all US",
"example": "US = 10"
},
"US-NY": {
"type": "string",
"description": "countrycode-subdivisions like US-NY. \"US-NY\": 13 means 13% for NY state.",
"example": "US-NY = 13"
},
"US-CA": {
"type": "string",
"example": "US-CA = 20",
"description": "countrycode-subdivisions like US-CA. \"US-CA\": 20 means 20% for CA state."
}
}
},
"identityPrefill" : {
"type" : "object",
"description" : "User information that can be prefilled into the Checkout UI",
"properties" : {
"firstName" : {
"type" : "string",
"description" : "First name of buyer"
},
"lastName" : {
"type" : "string",
"description" : "Last name of buyer"
},
"dateOfBirth" : {
"type" : "string",
"description" : "Date of Birth of buyer in YYYY-MM-DD format"
},
"emailAddress" : {
"type" : "string",
"description" : "Verified email address of buyer"
},
"phone" : {
"type" : "string",
"description" : "Verified phone number of buyer"
},
"address" : {
"type" : "object",
"properties" : {
"street1" : {
"type" : "string",
"description" : "Street address"
},
"street2" : {
"type" : "string",
"description" : "Suite, Apartment number etc"
},
"city" : {
"type" : "string",
"description" : "City in address"
},
"regionCode" : {
"type" : "string",
"description" : "2 letter state code"
},
"postalCode" : {
"type" : "string",
"description" : "Zip code or equivalent"
},
"countryCode" : {
"type" : "string",
"description" : "2 letter ISO country code"
}
}
}
}
}
},
"required": ["referenceId"]
}