Endpoints for managing entity's subaccounts
Last updated 5 months ago
Entity ID
Subaccount ID to delete
DELETE /v1/{id}/accounts/{accId} HTTP/1.1 Host: api.carbonregistry.com Authorization: Bearer <token> Accept: */*
{ "account": { "id": "550e8400-e29b-41d4-a716-446655440000", "type": "default", "name": "Default", "address": "0x32Be343B94f860124dC4fEe278FDCBD38C102D88", "ownerId": "550e8400-e29b-41d4-a716-446655440000" } }
Returns a list of all the subaccounts this entity owns.
GET /v1/{id}/accounts HTTP/1.1 Host: api.carbonregistry.com Authorization: Bearer <token> Accept: */*
{ "accounts": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "type": "default", "name": "Default", "address": "0x32Be343B94f860124dC4fEe278FDCBD38C102D88", "ownerId": "550e8400-e29b-41d4-a716-446655440000" } ] }
The name associated with this subaccount
Customer 1 account
POST /v1/{id}/accounts HTTP/1.1 Host: api.carbonregistry.com Authorization: Bearer <token> Content-Type: application/json Accept: */* Content-Length: 29 { "name": "Customer 1 account" }