Charge
This endpoints should be used for manual inspection of different transactions.
Charge Status
kamiPay will automatically send webhooks for status update notifications but we recommend all integration to have this endpoint configured in case webhook was not properly received.
The main information about status progress will be found within the "data" key in the response.
So main status will be "ok" meaning, we acknowledge that we have that transaction and then within the data key you will have specific details of that transaction.
If at the top, the status says "failed" it means we don't have this transaction in our records yet. It may eventually be processed or received shortly after.
Path Parameters
Name | Type | Description |
---|---|---|
target | string | Required. tx_id or operation_id |
type | string | Required. When you are receiving a payment is 'charge' |
id | string | Required. Transaction hash or operation id |
chain | string | Required. 'polygon' | 'tron' |
Example Request
Response
There will be cases where a transaction is returned to the payor. When this happens, it'll occur within a few seconds and you will receive a response with "status": "ok"
at the top level, but inside the data
object there will be "status": "failed"
as shown in the (Returned) example below. This means the money was successfully returned to the payor.