API 1.0 / Cost centers

GET /cost_centers/:identifier

Show a cost center

This method has the URL https://api.toptranslation.com/v1/cost_centers/:identifier and returns a cost center.

Required arguments

access_token
Token to authenticate a user
String
identifier
Part of URL of the request. Unique identifier of the cost center
String

Response

Returns a cost center object with added orders.

{
  meta: {
    status: 200
  },
  data: {
    identifier: '8c57bb8b-68fb-312d-b3c6-f6423239518',
    name: 'IT Department',
    created_at: '2016-12-29 12:23:45',
    orders: [
      {
        identifier: '94f0037b-2122-415d-80b6-2f890676ca37',
        reference: 'a customer reference',
        name: 'the name of the order',
        state: 'processing',
        order_number: 'P20160292343',
        service_level: 'standard',
        created_at: '2013-08-16T16:39:51.000Z',
        estimated_delivery_date: '2013-08-16',
        creator: {
          identifier: '9159ee23-d64c-49f9-b912-57a51715dda4',
          first_name: 'Stefan',
          last_name: 'Rohde',
          name: 'Stefan Rohde'
        }
      },
      {
        ...
      }
    ]
  }
}

Errors

403 - User not authenticated
User is not allowed to access the resource or execute the method.
404 - Cost center not found
The cost center was not found or user has no access to it.