Skip to main content
GET
/
subscriptions
/
{subscriptionId}
Get subscription
curl --request GET \
  --url https://management.api.smartcar.com/v3/subscriptions/{subscriptionId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "type": "subscription",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "attributes": {
      "vehicle": {
        "make": "TESLA",
        "model": "Model 3",
        "year": 2023,
        "mode": "live",
        "powertrainType": "BEV"
      }
    },
    "meta": {
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    },
    "relationships": {
      "webhook": {
        "data": {
          "type": "webhook",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        },
        "links": {
          "related": "<string>"
        }
      },
      "user": {
        "data": {
          "type": "webhook",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        },
        "links": {
          "related": "<string>"
        }
      },
      "vehicle": {
        "data": {
          "type": "webhook",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        },
        "links": {
          "related": "<string>"
        }
      }
    },
    "links": {
      "self": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

The Authorization header must be provided with a valid bearer token. Example: Authorization: Bearer {token}

Path Parameters

subscriptionId
string
required

The unique identifier for the subscription.

Response

Subscription

data
object
required