Get Purchase Intent

Retrieve a Purchase Intent by ID.

Request

curl -X GET \
  https://api.basistheory.ai/tenants/your-tenant-id/purchase-intent/46c029d2-485a-4928-83b5-4326c4866722 \
  -H 'Authorization: Bearer your-api-key'

URL Parameters

ParameterRequiredTypeDefaultDescription
tenantIdtruestringnullThe tenant ID.
idtruestringnullThe purchase intent ID.

Response

{
  "id": "46c029d2-485a-4928-83b5-4326c4866722",
  "entityId": "94c94330-94fd-4832-a106-e8474a274fe4",
  "credentialType": "network-token",
  "status": "active",
  "token": {
    "number": "2222030198005808",
    "expirationMonth": "07",
    "expirationYear": "2028",
    "cryptogram": "AAnSCQ9UvB3WAA4IVFwEAAADFA=="
  },
  "createdAt": "2025-06-16T14:00:00Z",
  "expiresAt": "2025-06-13T18:42:01Z"
}

Response Properties

PropertyTypeDescription
idstringThe purchase intent id.
entityIdstringThe ID for the entity that owns the purchase intent.
credentialTypestringThe purchase intent credential type.
statusstringThe purchase intent status: active, verify or unavailable.
cardCard ObjectDetails for a "virtual-card" type credential.
tokenToken ObjectDetails for a "network-token" type credential.
createdAtdatetimeThe purchase intent credential created date.
expiresAtdatetimeThe purchase intent expiration date for the credential.

Virtual Card Object

PropertyTypeDescription
numberstringThe card PAN.
expirationMonthstringCard expiration month in MM format.
expirationYearstringCard expiration year in YYYY format.
cvcstringCard security code.

Token Object

PropertyTypeDescription
numberstringThe token number.
expirationMonthstringToken expiration month in MM format.
expirationYearstringToken expiration year in YYYY format.
cryptogramstringThe token cryptogram.

Status Meanings

StatusDescriptionAction Required
activeCredential is ready for immediate useNone - use credential for transactions
verifyAdditional verification requiredPerform additional authentication steps
unavailableCredential type not availableTry different credential type

Error Handling

{
  "error": {
    "status": 401,
    "type": "unauthorized",
    "title": "Unauthorized",
    "message": "Missing or invalid API key was provided."
  }
}