9 min read · ERP and CRM

A company uses PEAK accounting software and has another system that also issues invoices. The accounting team has to re-enter the same invoices in PEAK every day. Someone suggests, “Let's just connect the two systems.” But before anyone writes code, there are several things to agree on and several questions to ask.
This article is a checklist for connecting another system to PEAK. The PEAK-side information comes from PEAK's developer documentation, read on November 20, 2026. It may change, so check with PEAK again before you decide.
What PEAK exposes for integration, according to its documentation
PEAK's developer documentation describes PEAK's API (a way for one program to talk to another) in several categories. From what we read, the main topics are as follows.
- Master data: contacts, products, services and payment methods
- Sales documents: quotations, invoices, receipts, credit notes and billing notes
- Purchase and expense documents, such as purchase orders and expenses
- Journals and reports, such as trial balance and ledger
- Webhooks (PEAK notifies our system when an event occurs, such as a document being created or edited)
A document type appearing in the list does not mean everything can be done on your plan. The documentation itself says some parts are not confirmed within the public API scope, such as PEAK TAX, ASSET and PAYROLL. So treat this list as a starting point for questions.
Decide which system owns the data
Before connecting, answer for each kind of data where it is created and who can edit it. If both systems can edit the same data, the data will soon conflict.
- Customers: which system creates them, and where they are edited
- Products and services: where the master list lives
- Sales documents: issued in our system and then sent to PEAK, or issued in PEAK itself
- Direction: one way only, or sending back as well
PEAK's documentation has webhooks, which can send data back. But you should not assume that unattended two-way sync is available. Define a single direction clearly first.
Ask PEAK clearly before you start
Some matters are not answered by the public documentation, or may change over time, so write them as questions and have PEAK answer in writing.
- API entitlement: can our plan use the API, and how do we apply or get approval
- Commercial terms: what are the terms of API use, and how are items counted as usage that is charged (the documentation has a page that explains how items are counted)
- Test environment: is one available to try first, and how do we request a production token
- Documents we need: can every type of document we will send be created through the API
- Tax and e-Tax: the documentation says there is a function to send an e-Tax Invoice through the API. Ask PEAK whether it can be used for our business and what the conditions are
- Availability: does PEAK guarantee a service level (SLA)
Know about tokens and limits in advance
PEAK's documentation separates the keys into two types. The first is the Client Token, which our system requests itself. The second is the User Token, which is issued after a user at the business enters the application code and accepts the connection in PEAK. This means someone on the business side has to do that step.
- Token permissions: the documentation says each endpoint requires a specific scope, such as view, create, edit, cancel, approve and pay. Request only what is needed
- Call limits: the documentation has a page on rate limits and concurrent requests. If you exceed them you get an error, so wait and try again
- Token lifetime: the go-live documentation says the Client Token expires in 24 hours. Store it and reuse it
- For the exact limit values, read the latest documentation at the time of development
Make a field mapping table between the two systems
A field mapping is a list showing which field in our system matches which field in PEAK. Make it as a spreadsheet table before writing code.
- Customer: name, address, tax ID, branch
- Product/service: code, name, unit
- Tax: how VAT and withholding tax are sent, to be set by the accountant
- Status: how draft, approved, paid and cancelled in the two systems match
- Reference code: our system's original document number, used to prevent duplicate documents
Don't guess that the same field has the same meaning. Check each field against the API documentation for each document type.
Handle duplicates, failures and retries
Networks go down. The system must know what has already been sent successfully, or a retry will create a duplicate invoice.
- Keep our reference code with the document created in PEAK, and check every time before sending whether it already exists
- Use a queue that sends in batches, and do not fire everything at once beyond the limit
- When a send fails, wait and retry with increasing intervals, and set a maximum number of attempts
- Keep a log of requests, responses, error codes and times
- Provide a screen where people can see the items that failed
Example of one invoice
Hypothetical example: the company's sales system issues invoice INV-0001 for 50,000 baht. The system sends it to PEAK, but the customer in our system does not yet exist in PEAK, so the send fails. The system logs the error and notifies a staff member. The staff member creates the contact correctly and presses send again. The system checks the reference code INV-0001, sees that it is not yet in PEAK, and creates 1 invoice. At the end of the day, the accounting team compares them: 1 invoice in our system matches 1 invoice in PEAK, with the same amount of 50,000.
Test before going live
PEAK's go-live documentation recommends passing a test stage (UAT) and having the accounting team confirm the results before going live. In testing, cover the abnormal cases as well.
- A normal document, and a document whose customer does not exist in PEAK
- Editing a document after it has been sent
- Cancelling a document (PEAK's documentation has an error topic about locked accounting periods that cannot be cancelled, so try this case)
- Deliberately sending twice, which must not create a duplicate document
- Sending a large number at once, to see how the limits are hit
- Reconciliation: compare daily counts and totals between the two systems
The go-live documentation also says partial document sync is not supported, for example installment payments. You have to calculate the amounts in our system and create each document separately. Confirm this with PEAK again.
Checklist before you start
- Identify which documents and data will be connected and which will not
- Decide the system that owns the data and the direction of sending
- Send the questions above to PEAK and keep the answers in writing
- Have the accountant confirm the tax and status mapping table
- Design duplicate prevention, the queue and retries
- Test every case in the list above and have the accounting team sign off on the results
- Assign someone to maintain it after launch and set a daily reconciliation time
Who it suits, and its limits
Integration reduces repeated data entry when the scope is clear. It suits businesses with many documents and an existing source system.
The limit is that you must check PEAK's current documentation and API entitlement. Do not assume every document can be connected or that two-way sync happens on its own. If you issue only a few documents per week, entering them by hand or importing a file may suit you better.
Next step
If you want to assess how far your system can connect to PEAK, prepare a list of the data and documents you want to connect, along with the name of the PEAK plan you use, then talk to BT San to assess feasibility. Answers about entitlement and terms must come from PEAK.




