---
title: "getAtripToken"
method: POST
path: "/getAtripToken.do"
tags: ["Other Functions"]
---

# getAtripToken

`POST /getAtripToken.do`

**Dependency**
No preceding function needs to be carried out.

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `Accept-Encoding` string, required
- `x-atlas-client-id` string, required
- `x-atlas-client-secret` string, required

## Request body

- object
  - `orderNo` string, required — Order number. It can be an order for ticketing, or an order for add bags. The format of each kind of order is different.
  - `userName` string, required — This is to identifier the operator's name in client's system, Atlas will grant access to this operator and track his/her actions in Atlas customer service portal.
  - `role` string, required — This is to identify the operator's role. Atlas will grant access to this operator according to the role assigned. Here are the acceptable options: Customer service : Access to manage orders and request post ticketing services Finance : Access to manage the balance and check statements Developer : Access to manage the system configurations Admin : Full access

## Response `200`

- object
  - `url` string, required — A url with token to access to Atlas customer service portal.
  - `status` integer, required — 0: success 2: System error 3: unauthorized access
  - `msg` string, nullable — Error message. The 'msg' element is for description of the results. Please DO NOT use this field to check the success or failure of the request. Only use the 'status' code to check the result.

---

[API](https://skmtc.net/atriptech/apis/default-module.md) · [All operations](https://skmtc.net/atriptech/apis/default-module/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atriptech/default-module/revisions/8e9a8f8010ab/schema)
