> For the complete documentation index, see [llms.txt](https://resources.atriptech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.atriptech.com/api-wen-dang/api-can-kao/gong-ju-api/atrip-token.md).

# ATRIP Token

{% hint style="info" %}
遇到 API 接入问题时，可登录 [Eva](https://www.atriptech.com/) 寻求帮助。
{% endhint %}

在指南和链接中，统一使用 `ATRIP Token` 作为主名称。

这个 API 对应 `getAtripToken.do`。

历史材料里也可能写成 `getAtripToken`。

## getAtripToken

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

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"security":[],"paths":{"/getAtripToken.do":{"post":{"summary":"getAtripToken","deprecated":false,"description":"**Dependency**\nNo preceding function needs to be carried out.","tags":[],"parameters":[{"name":"Accept","in":"header","description":"","required":true,"schema":{"type":"string"}},{"name":"Content-Type","in":"header","description":"","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"","required":true,"schema":{"type":"string","default":"gzip"}},{"name":"x-atlas-client-id","in":"header","description":"","required":true,"schema":{"type":"string","default":"<YOUR_CLIENT_ID>"}},{"name":"x-atlas-client-secret","in":"header","description":"","required":true,"schema":{"type":"string","default":"<YOUR_CLIENT_SECRET>"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orderNo":{"type":"string","description":"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":{"type":"string","description":"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":{"type":"string","description":"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:\n\nCustomer service : Access to manage orders and request post ticketing services\n\nFinance : Access to manage the balance and check statements\n\nDeveloper : Access to manage the system configurations\n\nAdmin : Full access"}},"required":["role","userName","orderNo"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"A url with token to access to Atlas customer service portal.\n\n"},"status":{"type":"integer","description":"0: success\n\n2: System error\n\n3: unauthorized access"},"msg":{"type":"string","description":"Error message.\n\nThe '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.","nullable":true}},"required":["url","status"]}}},"headers":{}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resources.atriptech.com/api-wen-dang/api-can-kao/gong-ju-api/atrip-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
