API 1.0 / Cost centers

GET /cost_centers

List cost centers of user

This method has the URL https://api.toptranslation.com/v1/cost_centers and returns all cost centers of a user.

Required arguments

access_token
Token to authenticate a user
String

Response

Returns an array of cost centers.

{
  meta: {
    status: 200
  },
  data: [
    {
      identifier: '8c57bb8b-68fb-312d-b3c6-f6423239518',
      name: 'IT Department',
      created_at: '2016-12-29 12:23:45'
    },
    {
      ...
    }
  ]
}

Errors

403 - User not authenticated
User is not allowed to access the resource or execute the method.