How do I set up my entity endpoints?

Discover insights on key topics that enhance understanding and offer practical knowledge for everyday applications.

Overview

The API endpoints are organized by resource type. Each endpoint returns a JSON response that is wrapped in an envelope containing a data object, and, when applicable, meta information (such as total count) and links for pagination.


Entity Endpoints


List Operating Entities

Endpoint: GET /v1/entities

Description: RRetrieves a list of operating entities. Optionally filter by a corporate entity identifier.

Query Parameters:

  • CorporateId (string): Filter by corporate entity identifier.
  • PageSize (integer)
  • Cursor (string)

Example Request:

curl -X GET "https://api.centtrip.com/eu/v1/entities?CorporateId=425d3837-8559-4d51-9afc-8d67380a2fd1&PageSize=10" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" 

Retrieve Operating Entity Details

Endpoint: GET /v1/entities/{id}

Description: Fetches details of a specific operating entity.

Path Parameter:

  • id (string): Operating entity identifier.

Example Request:

curl -X GET "https://api.centtrip.com/eu/v1/entities/60c6de90-739e-4817-931c-fba5237f9903" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" 


  1. Environments & Base URLs
  2. Authentication
  3. Endpoints:
    1. Corporate Endpoints
    2. Entity Endpoints
    3. Account Endpoints
    4. Card Endpoints
  4. Response Envelopes
  5. Error Handling
  6. Best Practice & Tips
  7. Example Workflow
Was this article helpful?