IDs and Referencing Other Objects
All Sign In With Coinbase API resource IDs are represented in UUID format. All resources have also a
resource field which represents the resource type and
resource_path for the location under
api.coinbase.com. These values can be useful when building wrappers around the API or when linking to other resources.
Money values are represented by a hash object which contains
currency fields. Amount is always returned as a string which you should be careful when parsing to have correct decimal precision.
All timestamps are returned in ISO8601 format in UTC with fields ending in postfix
Some fields like
type usually have a constant set of values. As Coinbase is actively growing and adding features, new values can be added or removed over time and you should take this into account when designing implementation. A good example is the Transaction resource which has multiple
type values and new ones are added as new features are added to Coinbase.
Similar to enumerable values, list values can be added or removed over time. Instead of hard-coding for specific values, your implementation should be flexible enough to take these requirements into account.
Was this helpful?