Skip to main content

Manage Tokenizations API

Use Case

This API is used to manage a tokenizations.
CANCEL: The tokenizations cannot be restored after it has been cancelled.
DEACTIVE: The tokenizations can be restored after it has been cancelled.
ACTIVE: used to active token after Deactive.

Request

POST/v2/tokenizations/manage

ParameterTypeRequiredDescription
merchantIdStringFundiin provides MID as a unique identifier to each merchant.
referenceIdStringThe reference id of the transaction you want to cancel.
tokenizationsStringuser tokenizations want to cancel
merchantUserIdStringmerchantUserId want to cancel
requestTypeStringCANCEL, DEACTIVE, ACTIVE
tokenizationsStringThe tokenizations User
langStringLanguage of returned message (vi or en)

Example Request

{
"merchantId": "Your merchant code",
"referenceId": "Your order number",
"tokenizations": "Your token",
"requestType": "CANCEL",
"merchantUserId": "merchantUserId",
"tokenizations": "IAoa3wmENyYEluGRvMC5yqxuhWiV8WU1",
"lang": "vi",
}

Response

ParameterTypeRequiredDescription
merchantIdStringFundiin provides MID as a unique identifier to each merchant.
referenceIdStringMerchant's Reference Id unique for every refund transaction
responseTimeStringDate & Time of response:
Format: YYYY-MM-DD hh:mm:ss
resultStatusStringResult Status
resultMsgStringThe result message which contains information about the result.
{
"merchantId": "FundiinVN",
"referenceId": "Your order number",
"responseTime": 1689315609,
"resultMsg": "Thành công",
"resultStatus": "APPROVED"
}

Result Status & Messages

Status codeDescriptionAction to take
APPROVEDCancel transaction was approved
ACCESS_DENIEDAccess denied.Please check your settings in merchant portal, or contact Fundiin for configurations.
MERCHANT_USER_ID_INVALIDThe merchantUserId is requiredPlease send Fundiin merchantUserId because this is required.
INVALID_REQUESTInvalid request. e.g. Invalid merchantUserId etc.
INVALID_REFERENCE_IDThe referenceId is invalidPlease retry with a different
INVALID_CLIENT_IDThe cliendId is not registered
INVALID_SIGNATUREThe signature is invalid.
INVALID_MERCHANT_IDThe merchant is not registered.
INVALID_HTTP_METHODThe server does not implement the requested HTTPS method.
INVALID_APIAPI is not defined.Check whether the request URL is correct. Ensure that the endpoint of the called API is correct.
REQUEST_PROCESSINGThe request already processed or in progress
DOWNSTREAM_ERRORPartner downstream timeout. (Retriable)
ERROR_GENERALDeclined due to general reasons other than the specific decline error codes provided.