Skip to main content
Version: Lastest

API Close virtual account

API Close virtual account

Chat with AI▼

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

Method: POST

Header: How to generate JWT_TOKEN

Language: en | vi

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

Params​

ParamsRequiredTypeDescription
accountNo√StringAccount number receiving money
billCode√StringPartner's order number, which is unique for each order
partnerRefId√String[16]Partner unique request code (up to 16 characters)
signature√StringSignature 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"
}

Code Examples​

curl --location 'https://gateway.dev.appotapay.com/api/v1/service/ebill/close' \
--header 'X-APPOTAPAY-AUTH: JWT_TOKEN' \
--header 'Content-Type: application/json' \
-d '{
"accountNo": "902000668565",
"billCode": "VA586f8d6a684",
"partnerRefId": "123456",
"signature": "abc123"
}'

Request​

REQUEST

Development server
Example (from schema)