Skip to main content
Version: 1.0

API Check bill information

Endpoint: /api/v1/service/bill/check

Method: POST

Header: How to generate JWT_TOKEN

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

Params

ParamsRequiredTypeDescription
partnerRefIdStringThis is unique code corresponding to a request send (This ref id will be used when call API payment bill)
billCodeStringBill code/payment
serviceCodeStringService code (see more Table Of Content List code service)
signatureStringSignature of parameter passed to the API, the parameter is included into signature like this: billCode + partnerRefId + serviceCode (see more how to generate signature)

Data result

ParamsTypeDescription
errorCodeIntegerError code result
messageStringDescription detail error code
billDetailArrayInformation bill detail
billDetail[].billNumberStringBill number ID
billDetail[].periodStringPeriod payment bill
billDetail[].amountIntegerBill amount
billDetail[].billCreatedStringCreated time bill
billDetail[].billExpiryStringExpired payment
billDetail[].billTypeStringBill type
billDetail[].billOtherInfoStringOther information
billDetail[].isPartialPaymentAllowedBooleanDoes the invoice allow partial payments? (default: false)
billDetail[].extraInfoStringExtra information
customerInfoObjectCustomer information
customerInfo.customerCodeStringCustomer code
customerInfo.customerNameStringCustomer name
customerInfo.customerAddressStringCustomer address
customerInfo.customerOtherInfoStringOther information
customerInfo.extraInfoStringExtra information

Example

Request

{
"partnerRefId": "AB123",
"billCode": "PD12121",
"serviceCode": "ENVHN",
"signature": "b10294bae53e89919b3efd62a763bf3..."
}

Response

{
"errorCode": 0,
"message": "Thành công",
"billDetail": [
{
"billNumber": "117934",
"period": "4/2020",
"amount": 100000,
"billCreated": "",
"billExpiry": "",
"billType": "",
"billOtherInfo": "", "isPartialPaymentAllowed": false, "extraInfo": ""
}
],
"customerInfo": {
"customerCode": "PA12121",
"customerName": "Nguyen Van A",
"customerAddress": "Ha Noi",
"customerOtherInfo": "PA11",
"extraInfo": ""
}
}