Skip to main content

Delete a provider account

This API lets you delete an e-invoice provider account.

POST
URLhttps://open-api.tingee.vn/v1/e-invoice/delete-account

Delete an e-invoice provider account by ID.

Header Request​

HeaderRequiredDescription
Content-Type✓application/json
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature. See How to generate the signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Body Parameter​

FieldTypeRequiredDescription
idnumber✓ID of the provider account to delete.
merchantIdnumber✕Merchant ID.
(Required if you connect with a Master Merchant account).

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/e-invoice/delete-account' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE' \
--header 'Content-Type: application/json' \
--data '{
"id": 1
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": null
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
datanullNo data returned.

Common error codes​

CodeDescriptionHow to handle
1057The account to delete was not foundCheck id with List accounts.
2033The default account cannot be deletedSet another account as the default, then delete again.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.