Payments API (v2)

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

Payments

APIs related to Payments and Fees.

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/paymentsapi/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": [ {} ] }