List offsets
Your offsets for this key’s mode, newest first.
/offsetsAuthorizationBearer token · headerrequiredAn API key from the developer page: tc_live_… for real purchases, tc_test_… for tests. Keep it on your server.
limitintegerstarting_afterstringThe last offset ID of the previous page.
referencestringOnly offsets with this reference.
A page of offsets.
objectstringrequireddataOffset[]requiredShow propertiesHide properties
OffsetobjectstringrequiredidstringrequiredlivemodebooleanrequiredFalse for test keys: nothing was charged or retired.
statusstringrequiredprocessing until the credits are bought and retired; placed once they are; refunded if we could not place the order and returned the charge to your balance.
processingplacedrefundedkgintegerrequiredkg of CO₂ offset.
amount_centsintegerrequiredWhat the purchase took from your balance.
currencystringrequiredrate_millicents_per_kgintegerrequiredYour rate in thousandths of a cent per kg: 4000 is $0.04/kg ($40 per tonne).
requestedobjectrequiredWhat you asked for: kg, or an amount to spend.
Show propertiesHide properties
kginteger | nullrequiredShow propertiesHide properties
integernullamount_centsinteger | nullrequiredShow propertiesHide properties
integernullreferencestring | nullrequiredcertificate_urlstring<uri> | nullrequiredThe public certificate on trimcarbon.com, once the order is placed. Null for test offsets.
createdstring<date-time>requiredplacedstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullhas_morebooleanrequiredMore offsets are older than the last one: pass its ID as starting_after.
Missing, unknown or revoked API key.
errorobjectrequiredShow propertiesHide properties
typestringrequiredauthentication_errorpermission_errorinvalid_request_errorrate_limit_errorapi_errorcodestringrequiredmessagestringrequiredparamstringThe request field that is wrong.
balance_centsintegerWith insufficient_balance: your balance now.
required_centsintegerWith insufficient_balance: what the purchase costs.
api_access_inactive (the account is suspended or not approved) or insufficient_permissions (a read-only key).
errorobjectrequiredShow propertiesHide properties
typestringrequiredauthentication_errorpermission_errorinvalid_request_errorrate_limit_errorapi_errorcodestringrequiredmessagestringrequiredparamstringThe request field that is wrong.
balance_centsintegerWith insufficient_balance: your balance now.
required_centsintegerWith insufficient_balance: what the purchase costs.
resource_missing: no such offset for this key.
errorobjectrequiredShow propertiesHide properties
typestringrequiredauthentication_errorpermission_errorinvalid_request_errorrate_limit_errorapi_errorcodestringrequiredmessagestringrequiredparamstringThe request field that is wrong.
balance_centsintegerWith insufficient_balance: your balance now.
required_centsintegerWith insufficient_balance: what the purchase costs.
validation_error (with param) or amount_too_small.
errorobjectrequiredShow propertiesHide properties
typestringrequiredauthentication_errorpermission_errorinvalid_request_errorrate_limit_errorapi_errorcodestringrequiredmessagestringrequiredparamstringThe request field that is wrong.
balance_centsintegerWith insufficient_balance: your balance now.
required_centsintegerWith insufficient_balance: what the purchase costs.
rate_limited: wait for the Retry-After seconds.
errorobjectrequiredShow propertiesHide properties
typestringrequiredauthentication_errorpermission_errorinvalid_request_errorrate_limit_errorapi_errorcodestringrequiredmessagestringrequiredparamstringThe request field that is wrong.
balance_centsintegerWith insufficient_balance: your balance now.
required_centsintegerWith insufficient_balance: what the purchase costs.