Company API (v2)

Download OpenAPI description
Languages
Servers
Mock server
https://developer.spotnana.com/_mock/openapi/companyapi/
Staging URL
https://apis.spotnana.com/

Companies

APIs to onboard and manage company.

Operations

Cost Centers

APIs to create and manage company cost centers.

Operations

Offices

APIs to create and manage company offices.

Operations

Departments

APIs to create and manage departments.

Operations

Service Charge Plan

APIs to manage service charge plans.

Operations

Service Charge

Operations

List service charges

Request

List service charges for a given entity

Path
entityTypestring(ServiceChargeEntityType)required

Entity type for service charge

Enum"TRIP""USER"
Example: TRIP
entityIdstringrequired

Entity ID for service charge e.g. trip ID for entityType = TRIP

Example: 1234567890
typestring(ServiceChargeType)required

Service charge type.

Value"TMC_CHARGE"
Example: TMC_CHARGE
Bodyapplication/jsonrequired
serviceTypestring(ServiceType)

Type of service for service charge. ITINERARY_BOOKING: Service charge for travel booking. AGENT_CONTACT: Service charge for agent contact.

Enum"ITINERARY_BOOKING""AGENT_CONTACT"
curl -i -X POST \
  'https://developer.spotnana.com/_mock/openapi/companyapi/v2/service-charge/{entityType}/{entityId}/types/{type}/list' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "serviceType": "ITINERARY_BOOKING"
  }'

Responses

OK

Bodyapplication/json
serviceChargesArray of objects(ServiceChargeRecord)

List of service charges.

Response
application/json
{ "serviceCharges": [ {} ] }

Company Enrollment

Operations

Company Tier

Operations