Nhảy tới nội dung

Confirm In-Store Payment API

Use Case

This API is used by the Merchant to confirm that the down payment has been collected in store.

Call this API only after receiving a Payment Notification from Fundiin where paymentMethod = STORE and downPaymentAmount is present.

Request

POST /v2/payments/confirm-store

ParameterTypeRequiredDescription
merchantIdStringFundiin-provided Merchant ID (MID) as a unique identifier for the merchant.
referenceIdStringUnique identifier of the order to confirm payment for. Must match the value used in Initiate API.
storeIdStringStore ID where the payment was processed.
downPaymentAmount.valueNumberAmount of the down payment collected from the customer at the store.
downPaymentAmount.currencyStringCurrency of the down payment amount. Always VND.
tenderTypeStringPayment tender type. Possible values: CASH, CARD, BANK_TRANSFER, WALLET.
storePaymentRefStringMerchant/POS transaction ID for the payment.
cashierIdStringIdentifier for the cashier handling the transaction.
descriptionStringAdditional description for this payment.
extraDataStringAdditional merchant-defined data.

Example Request

{
"merchantId": "Your merchant code",
"storeId": "Your store id",
"referenceId": "Your order number",
"downPaymentAmount": {
"currency": "VND",
"value": 100000
},
"tenderType": "CASH",
"storePaymentRef": "POS-123456",
"cashierId": "NV001",
"description": "Paid in full",
"extraData": "{\"promoCode\":\"DISCOUNT10\"}"
}

Response

ParameterTypeRequiredDescription
referenceIdStringReference ID (order number) of the transaction.
resultStatusStringAPPROVED, REQUEST_PROCESSING, or error codes (see table below).
resultMsgStringResult message containing additional info.
paymentTransIdStringFundiin Payment Transaction ID generated after confirmation.
paymentStatusStringPENDING, SUCCESS, FAIL.
paymentTimeStringISO-8601 UTC time the payment was made. Example: 2025-08-08T03:10:05Z.

Example Response

{
"referenceId": "ORD123",
"resultStatus": "APPROVED",
"resultMsg": "The payment was successfully confirmed.",
"paymentTransId": "PAYABC123",
"paymentStatus": "SUCCESS",
"paymentTime": "2025-08-08T03:10:05Z",
}

Result Status & Messages

Status codeDescriptionAction to take
APPROVEDThe payment was successfully confirmed.No further action needed.
REQUEST_PROCESSINGThe confirmation request has already been processed or is in progress.Retry later with the same Idempotency-Key.
ACCESS_DENIEDAccess denied.Check merchant configuration in portal or contact Fundiin.
INVALID_REQUESTInvalid request (missing/invalid parameters).Fix request and retry.
INVALID_REFERENCE_IDThe referenceId is invalid.Verify and retry.
INVALID_STORE_IDThe storeId is invalid.Retry with a correct storeId.
AMOUNT_MISMATCHConfirmed amount does not match initiated order amount.Correct the amount or contact support.
EXPIREDOrder expired, cannot confirm.Initiate a new transaction.
ERROR_GENERALDeclined due to general reasons other than the specific decline codes provided.Contact Fundiin support for assistance.