Applies to merchants in Indonesia and Philippines:
You can display the several transactions data from your Xendit dashboard to partner webs/apps, especially for OWNED sub-account but there are several rules for this as follows:
- The transactions that can retrieve are only from the transactions tab, not the balance tab.
- Fee transactions will not be included in the detailed transactions.
- Before you want to hit the endpoint get transaction using API, please make sure that your dashboard already in new view can see the related article here.
- You can specify the retrieved transactions by querying the endpoint based on types, channel category, etc.
- Alternatively, for adding fee transactions on the partner webs/apps:
-
- Handles fee info stated on callback payload eg: on Invoice paid callback URL, if paid with a fee, there will be “fees_paid_amount” info
- For PH merchants, please set the parameter to PHP as currency as this is IDR by default.
- You can build a script to hardcode the fee transaction
- Using XP consolidated report to export “balance” tab report of all sub-accounts to get fee transactions.
-
- You need to hit the endpoint List Transactions:
https://api.xendit.co/transactions
first and don't forget to add the sub-account id in the header using the parameter for-user-id, please see the detail here.
- You can also retrieve detailed data per transaction by hitting the endpoint
https://api.xendit.co/transactions/{transaction_id}
, for details see here and make sure you enter the transaction id that has been obtained from the previous request on the endpoint used. - With that endpoint, you can use it to integrate with your partner webs/apps.