Query Transaction

To check the status of an order

! Tip

After you receive access credentials (merchant id, login name, merchant key). You can step through the demo Query Orderopen in new window which may help you when going through the documentation.

Endpoint

https://api.grubpay.io/v4/inquire

Method:

POST

Content-Type: application/json;charset=UTF-8

Request
namerequiredtypesampledescription
mchIdyString10000701assigned by GrubPay
mchOrderNoy*String1234567890abcassigned by merchant
payOrderIdy*String
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

*use either payOrderId or mchOrderNo, use one of them

Response
namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode is SUCCESS, order detailed info returned

retData contains order information:

namerequiredtypesampledescription
payOrderIdyStringPC20221123224002378248641620For refunding/voiding this transaction
mchIdyString
mchOrderNonString
originalOrderIdnStringoriginal pay order id for refund
amountyInt100in cents
tokenyString(50)cf6e8f3f-c010-4b99-9a9f-32cf21ea7cb6reusable token
currencyyStringUSD
payTypeyStringpay or refund
refundableyString'Y' or 'N'
voidableyString'Y' or 'N'
statusyInt0,1,2,90 = pending order, 1 = unknown, 2 = success, 9 = fail
recurringIdyIntrecurring payment id this transaction belongs to
paySuccTimeyString2021-04-07 19:44:51
cardNumnString432567******2266
cardTypenStringA = Amex D = Discover M = Mastercard N = Non-co-branded debit card V = Visa
expiryDatenString
authNumyString
transNumyString
channelyStringCC_CARD or CC_ACHCC_CARD: card transactions, CC_ACH: ACH transactions
Last Updated:
Contributors: Grant, grant, Grant, Grant Yao