Appearance
Account
Manage account settings and subscriptions.
Get Account Settings
The response will be a dictionary containing the account’s data.
GET
http
https://api.zubiecar.com/api/v2/zinc/account
Sample response 200
json
{
"billing_info": {
"billing_method": "credit-card",
"card_type": "visa",
"expiration_month": 8,
"expiration_year": 2020,
"last_four": "1111",
"updated": "2018-06-19 12:00:00"
},
"city": "Bloomington",
"created": "2018-02-20 12:00:00",
"external_id": "3828919",
"key": "SampleKey",
"nickname": "Trucking Fleet",
"owner_key": "SampleKey",
"partner_key": "SampleKey",
"partner_name": "Zubie Fleet Connect",
"partner_tier": {
"key": "SampleKey",
"name": "Premium",
"partner_key": "SampleKey"
},
"setup_complete": "2018-02-20 12:00:00",
"state": "MN",
"street": "8000 Penn Ave",
"updated": "2018-02-20T12:00:00+00:00",
"user_count": 24,
"zipcode": "55435"
}
Update Account settings
Update account-wide settings.
POST
http
https://api.zubiecar.com/api/v2/zinc/account
Request Body Schema
Property | Type | Description |
---|---|---|
nickname | string | The account name, i.e. the business name. |
external_id | string | An optional, external id string associated with the account. |
street | string | The street address for the account. |
city | string | The city for the account. |
state | string | The street address for the account. |
zipcode | string | The zipcode for the account. |
Sample request body
json
{
"nickname": "Trucking Fleet",
"external_id": "3828919",
"street": "1234 Oak Street",
"city": "Minneapolis",
"state": "MN",
"zipcode": "55555"
}
Get Subscriptions List
Lists the subscriptions associated with the account. All devices with the same plan will be grouped under the same subscription.
GET
http
https://api.zubiecar.com/api/v2/zinc/subscriptions
Query Parameters
Property | Type | Description |
---|---|---|
cursor | optional | The cursor string used for pagination, signifying the object ID where to start the results. |
size | optional | The number of results to return per call. Defaults to 100 if not provided. |
Sample response 200
json
{
"subscriptions": [
{
"auto_renew": true,
"canceled_at": "2019-02-20 12:00:00",
"current_period_ends_at": "2019-02-20 12:00:00",
"current_period_started_at": "2018-02-20 12:00:00",
"ends_at": "2019-02-20 12:00:00",
"plan": {
"description": "Zubie Fleet Connect Premium - 1 Year Prepaid",
"name": "Renews annually at $179.00.",
"sku": "ZFC1P"
},
"quantity": 29,
"recurring_quantity": 29,
"started_at": "2019-02-20 12:00:00",
"status": "string"
}
]
}