Webhook
Webhook notification for LIKE pay agent (`via`)

Setup:

Please contact us for setting up the webhook for your agent account. You must set the parameter via when using LIKE pay to be able to receive notification

Specification:

Transaction Information (tx):

Key
Description
from
Sender cosmos wallet
fromId
Sender Liker ID
to
Receiver cosmos wallet
toId
Receiver Liker ID
ts
Originating timestamp
completeTs
Transaction complete timestamp
txHash
Transaction hash
remarks
Transaction remarks/memo
status
Transaction status, possible values: pending/success/fail/timeout
type
Transaction type
amount
Transfer amount

Transaction Metadata(metadata):

Key
Description
likePay
Parameters entered when using LIKE pay widget
toIds
Receiver Liker IDs
amounts
Receiver LIKE amounts in string
agentID
The `via` parameter Liker ID
agentFee
Agent fee if set
redirectUri
Redirect URI if set
remarks
LIKE pay transaction remarks
blocking
if blocking flag was set
state
state parameters if set

Example event:

1
{
2
"tx": {
3
"from": "cosmos1wfu97hwfv5ukc0xjyutajq9e6w5xkcdprlmyhj",
4
"ts": 1611659587189,
5
"to": "cosmos1rcgfvhgvc6r066w9gzvkt74qx5uk9zj8yr6yf3",
6
"amount": {
7
"amount": "1000000000",
8
"denom": "nanolike"
9
},
10
"completeTs": 1611659583719,
11
"txHash": "30A19D04DEFFF62BC3BC268EE3E391C691231EBA87ADC032A2D99D56AC401959",
12
"toId": "ckxpress",
13
"fromId": "williamchong-du",
14
"remarks": "LIKE pay via developer",
15
"status": "success",
16
"type": "cosmosTransfer"
17
},
18
"metadata": {
19
"likePay": {
20
"agentId": "developer",
21
"amounts": [
22
"1"
23
],
24
"remarks": "LIKE pay via developer",
25
"agentFee": "0",
26
"toIds": [
27
"ckxpress"
28
]
29
}
30
}
31
}
Copied!
Last modified 8mo ago
Export as PDF
Copy link