Skip to main content
POST
/
unstable
/
order-intents
/
{orderIntentId}
/
credentials
Get Order Intent Credentials
curl --request POST \
  --url https://staging.crossmint.com/api/unstable/order-intents/{orderIntentId}/credentials \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "merchant": {
    "name": "<string>",
    "url": "<string>",
    "countryCode": "<string>"
  },
  "products": [
    {
      "name": "<string>",
      "price": 1,
      "quantity": 4503599627370496
    }
  ]
}
'
{
  "card": {
    "number": "<string>",
    "expirationMonth": "<string>",
    "expirationYear": "<string>",
    "cvc": "<string>"
  },
  "expiresAt": "<string>"
}

Headers

X-API-KEY
string
required

API key required for authentication

Path Parameters

orderIntentId
string
required

Body

application/json
merchant
object
required
products
object[]
Minimum array length: 1

Response

201 - application/json

Returns the order intent credentials

card
object
required
expiresAt
string
required