Skip to main content
Version: Lastest

API Close virtual account

Endpoint: /api/v1/service/ebill/close

Method: POST

Header: How to generate JWT_TOKEN

{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}

Params

ParamsRequiredTypeDescription
accountNoStringAccount number receiving money
billCodeStringPartner's order number, which is unique for each order
partnerRefIdString[16]Partner unique request code (up to 16 characters)
signatureStringSignature of parameters returned from the API, parameters are included in the signature in the order of inclusion: accountNo + billCode + partnerRefId (see more how to generate signature)

Data result

ParamsTypeDescription
errorCodeIntegerError result
messageStringDescription error code detail

Example

Request

{
"accountNo": "902000668565",
"billCode": "VA586f8d6a684",
"partnerRefId": "123456",
"signature": "abc123",
}

Response

{
"errorCode": 0,
"message": "Thành công"
}