Skip to main content
The Tripedge Backend SDK provides endpoints for managing users, bookings, and accounting entries. All endpoints require authentication.

Base URL

Authentication

All endpoints are secured and require authentication. Include your authentication token in the request headers.
Example Authentication with the Backend API

Users

Create User

Create a new user account.

Response

Get User by ID

Retrieve user information by their ID.

Response

Returns the same structure as Create User response.

Update User

Update an existing user’s information.

Response

Returns the same structure as Create User response.

Get User Token

Retrieve an authentication token for a user.

Response

Bookings

Get All Bookings

Retrieve all bookings for the authenticated client and user.

Response

Get Bookings by User ID

Retrieve all bookings for a specific user.

Response

Returns the same structure as Get All Bookings response.

Accounting

Create Accounting Entry

Create a new accounting entry.

Response

Get All Accounting Entries

Retrieve all accounting entries for the authenticated client.

Response

Returns an array of accounting entries with the same structure as Create Accounting Entry response.

Get Accounting Entry by ID

Retrieve a specific accounting entry by its ID.

Response

Returns the same structure as Create Accounting Entry response.

Get Accounting Entries by Booking ID

Retrieve all accounting entries associated with a specific booking.

Response

Returns an array of accounting entries with the same structure as Create Accounting Entry response.

Error Responses

All endpoints may return an error response in the following format: