3.27 Download e-Invoice (Albania only)
Connection URL
TEST URL | http://nap.dev.icash.bg/clientapi/v1/download-einvoice |
PRODUCTION URL | https://v1.icash.al/clientapi/v1/download-einvoice |
POST REQUEST
Param | Description | Field type | Required |
api_key | API Key | String | YES |
nonce | Nonce | Integer | YES |
signature | Signature | String | YES |
ses | Session indentificator | String | YES |
EIC | FiscNum | String | YES |
JSON response on success
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
1 – successful |
YES |
data | Operation ID | Integer | YES |
Example:
{ „nonce“: „1553078075“, „status“: 1, „data“: { „einvoice“: { „status“:“ok“, „einvoice_data“: { „EIC“:“93b3f81e-f68e-459c-a14b-97fa99375c9a“, „ServerError“:““, „PDF_data“:““, } } }} |
JSON response on unsuccess
Param | Description | Field type | Required |
nonce | Nonce from request | Integer | YES |
status | Request status | Integer
0 – unsuccess request |
YES |
error_message | Error Description | String | YES |
Example:
{ „nonce“: „1553077168“, „status“: 0, „error_message“: „Wrong value for OperationID“ } |