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
Params | Required | Type | Description |
---|---|---|---|
accountNo | √ | String | Account number receiving money |
billCode | √ | String | Partner's order number, which is unique for each order |
partnerRefId | √ | String[16] | Partner unique request code (up to 16 characters) |
signature | √ | String | Signature of parameters returned from the API, parameters are included in the signature in the order of inclusion: accountNo + billCode + partnerRefId (xem thêm phần cách tạo signature) |
Data result
Params | Type | Description |
---|---|---|
errorCode | Integer | Error result |
message | String | Description error code detail |
Example
Request
{
"accountNo": "902000668565",
"billCode": "VA586f8d6a684",
"partnerRefId": "123456",
"signature": "abc123",
}
Response
{
"errorCode": 0,
"message": "Thành công"
}