Notify
Tip
Notifications are only supported for ACH transactions. Once there is a status update for ACH transaction, GrubPay will send a notification to your provided endpoint.
Header
Content-Type: application/json;charset=UTF-8
Request
https://example.com/notify
Method:
POST
name | required | type | sample | description |
---|---|---|---|---|
payOrderId | y | String | PC20221119011952089577758119 | assigned by GrubPay |
mchId | y | String | assigned by GrubPay | |
mchOrderNo | y | String | merchant order number | |
originalOrderId | n | String | original pay order id if payType="refund" | |
amount | y | Int | 100 | in cents |
currency | y | String | USD | |
payType | y | String | pay or refund | |
refundable | y | Int | 100 | in cents |
status | y | Int | 2,9 | 2 = success, 9 = fail |
recurringId | y | Int | recurring payment id this transaction belongs to (0 if non-recurring) | |
paySuccTime | y | String | 2021-04-07 19:44:51 | |
authNum | y | String | ||
transNum | y | String | ||
sign | y | String | C380BEC2BFD727A4B6845133519F3AD6 | Sign algorithm |
Response
Once notified, it is the client's responsibility to respond with "SUCCESS" to stop receiving further notifications for a transaction