Cloud communication
With cloud communication, your POS app and the CodePay terminal talk to each other over the internet:
- Your POS app sends an API request to the CodePay platform.
- The CodePay platform sends the request to the CodePay terminal to start the payment.
- The terminal sends the transaction back to CodePay for processing.
- You will receive the transaction result in:
- Asynchronous: The POS app sends the request and closes the connection.
- The result is received later through an event notification or a transaction status request.

Development guidelines
Before using these APIs, you need to get some required parameters and understand the access rules. Please refer to the API secure .
Check the Cloud communication APIs in the table below.
| Function List | Type | Description |
|---|---|---|
| Create order | API | Submit payment orders through this api. |
| Close order | API | Close unpaid orders through this api. |
| Query order | API | Retrieve a specific transaction, using the merchant_order_no of that payment. |
| Refund a payment | API | Referenced refunds are connected to the original payment, using the merchant_order_no of that payment. |
| Void a payment | API | Cancels the authorisation on a payment that has not yet been captured. |
| Tip Adjustment | API | Add or adjust a tip to an existing payment. For example, the merchant can enter a tip amount written on a receipt. |
| Batch Close | API | Manually closeout the current batch of transactions. |