Skip to content

AI coding assistants

This documentation publishes files that AI coding assistants (Claude Code, Cursor, GitHub Copilot, ChatGPT and others) can read directly, so they use the current endpoints, field names and signing rules instead of guessing.

FileContentUse it to
/llms.txtIndex of every page with links (llms.txt format)Let the assistant pick only the relevant pages
/llms-full.txtEvery page, Thai and English, as one Markdown fileGive the assistant the full context at once
/openapi.jsonOpenAPI 3.0 description of the Partner APIGenerate clients, types or mocks, and validate requests and responses

In the console, the AI integration guide menu opens llms-full.txt for you.

  1. Point the assistant at https://docs.example.com/llms-full.txt (paste the URL if the tool can browse, or download the file into your repository and reference it).
  2. For generated types or clients, use https://docs.example.com/openapi.json.
  3. State your language, framework and what you need.
  4. Review the result, especially the signing function: check it against the test vectors before calling the API.

Example prompt:

Read https://docs.example.com/llms-full.txt (Partner API section).
Write a TypeScript module for Node.js 20 that:
- signs requests exactly as described (X-Api-Key, X-Timestamp, X-Nonce, X-Signature),
reading PARTNER_API_KEY and PARTNER_API_SECRET from environment variables,
- creates a pay-in with the payer's bank account inline (payer: { bankCode, accountNumber, accountName }),
and returns checkoutUrl, amount, payerId and payTo (incl. payTo.qrPayload),
- exposes an Express route that verifies webhook signatures on the raw body
and handles payin.succeeded idempotently (dedupe on data.id + data.status).
Add a unit test that checks the signer against the documented test vectors.
  • These files are regenerated whenever the documentation changes. Fetch them again after updates instead of relying on an old copy.
  • If the assistant uses a field, header or endpoint that is not in the documentation, trust the documentation and openapi.json.
  • Do not let AI tools call the API automatically with production keys: pay-ins and payouts move real money.