Validate IRN
curl --request POST \
--url https://test-api.pasca.co/api/v1/einvoice/irn/validate \
--header 'API-KEY: <api-key>' \
--header 'API-SECRET: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"irn": "TEST001-6244CC45-20250629",
"business_id": "{{YOUR_BUSINESS_ID}}"
}
'import requests
url = "https://test-api.pasca.co/api/v1/einvoice/irn/validate"
payload = {
"irn": "TEST001-6244CC45-20250629",
"business_id": "{{YOUR_BUSINESS_ID}}"
}
headers = {
"API-KEY": "<api-key>",
"API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'API-KEY': '<api-key>',
'API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({irn: 'TEST001-6244CC45-20250629', business_id: '{{YOUR_BUSINESS_ID}}'})
};
fetch('https://test-api.pasca.co/api/v1/einvoice/irn/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"data": {
"ok": true
}
}{
"code": 400,
"data": null,
"message": "error has occurred",
"error": {
"id": "fe9db3ab-8efa-4ddd-b7a5-47dc2a4e151a",
"handler": "invoice_actions",
"details": "irn validation failed for this business, refer to the template and try again",
"public_message": "validation failed: we are unable to process your request. also confirm this is not a duplicate request"
}
}{
"status": false,
"code": 401,
"message": "Unauthorized",
"data": null,
"error": {
"details": "invalid or missing API credentials"
}
}IRN and QR
Validate IRN
POST
/
api
/
v1
/
einvoice
/
irn
/
validate
Validate IRN
curl --request POST \
--url https://test-api.pasca.co/api/v1/einvoice/irn/validate \
--header 'API-KEY: <api-key>' \
--header 'API-SECRET: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"irn": "TEST001-6244CC45-20250629",
"business_id": "{{YOUR_BUSINESS_ID}}"
}
'import requests
url = "https://test-api.pasca.co/api/v1/einvoice/irn/validate"
payload = {
"irn": "TEST001-6244CC45-20250629",
"business_id": "{{YOUR_BUSINESS_ID}}"
}
headers = {
"API-KEY": "<api-key>",
"API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'API-KEY': '<api-key>',
'API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({irn: 'TEST001-6244CC45-20250629', business_id: '{{YOUR_BUSINESS_ID}}'})
};
fetch('https://test-api.pasca.co/api/v1/einvoice/irn/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"data": {
"ok": true
}
}{
"code": 400,
"data": null,
"message": "error has occurred",
"error": {
"id": "fe9db3ab-8efa-4ddd-b7a5-47dc2a4e151a",
"handler": "invoice_actions",
"details": "irn validation failed for this business, refer to the template and try again",
"public_message": "validation failed: we are unable to process your request. also confirm this is not a duplicate request"
}
}{
"status": false,
"code": 401,
"message": "Unauthorized",
"data": null,
"error": {
"details": "invalid or missing API credentials"
}
}⌘I