The LigdiCash API circulates several identifiers across requests, responses, and callbacks. They have distinct roles and are not interchangeable. Mixing upDocumentation Index
Fetch the complete documentation index at: https://developers.ligdicash.com/llms.txt
Use this file to discover all available pages before exploring further.
token and transaction_id, for example, is one of the most common mistakes during a first integration.
Summary table
| Identifier | Generated by | Format | Where it appears | Role |
|---|---|---|---|---|
token | LigdiCash | Long string | Create response + callback | Call confirm |
request_id | LigdiCash | PXXXXXXXX | Payment page + callback | Short displayable reference |
transaction_id | The merchant | Free-form | custom_data of the request + callback + dashboard | Merchant reconciliation |
external_id | The merchant | Free-form | invoice field of the request | Equivalent of transaction_id, alternative syntax |
The token
Thetoken is generated by LigdiCash when each transaction is created. It is returned in the create response:
confirm endpoint to check a transaction’s status. Store it in your database as soon as the transaction is created.
The request_id
Therequest_id is a short identifier generated by LigdiCash for each transaction. Its format is PXXXXXXXX — for example P2756808232026.
It is displayed on the LigdiCash payment page and is present in the callback. Its short form makes it easy to communicate: a merchant can show it to their customer as a payment reference, for example on a receipt or in a tracking interface.
The transaction_id
Thetransaction_id is an identifier that you generate on the merchant side and inject into the custom_data field of your request. LigdiCash returns it to you in the callback and displays it in your dashboard among your payin and payout transactions.
It is the pivot of your reconciliation: it links a LigdiCash transaction with your own order management system.
The format is entirely free — order reference, UUID, short customer-readable code, etc.
See The transaction_id pattern for best practices on format and usage.
The external_id
Theexternal_id is the direct equivalent of transaction_id — they serve the same purpose. The difference is their location in the request: external_id is a field of the invoice block, while transaction_id is injected into custom_data.
Both are returned in the callback. Use whichever fits your architecture best — they will have the same value in API responses.
Related pages
- The transaction_id pattern — format, lifecycle, extraction in the callback
- Securing the callback — why re-verify with the stored token
- Response codes and statuses
