Update Invoice
curl --request PATCH \
--url https://test-api.pasca.co/api/v1/einvoice/update/{IRN} \
--header 'API-KEY: <api-key>' \
--header 'API-SECRET: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_status": "REJECTED",
"reference": "payment_reference_or_note"
}
'import requests
url = "https://test-api.pasca.co/api/v1/einvoice/update/{IRN}"
payload = {
"payment_status": "REJECTED",
"reference": "payment_reference_or_note"
}
headers = {
"API-KEY": "<api-key>",
"API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'API-KEY': '<api-key>',
'API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({payment_status: 'REJECTED', reference: 'payment_reference_or_note'})
};
fetch('https://test-api.pasca.co/api/v1/einvoice/update/{IRN}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": false,
"code": 400,
"message": "Failed to validate invoice",
"data": null,
"error": {
"id": "5c4c008e-8f1e-4034-a96b-8b352c143da5",
"handler": "invoice_actions",
"details": "this business does not exist",
"public_message": "validation failed"
},
"timestamp": "2025-12-23T14:54:12.477393Z"
}{
"status": false,
"code": 401,
"message": "Unauthorized",
"data": null,
"error": {
"details": "invalid or missing API credentials"
}
}Status and retrieval
Update Invoice
PATCH
/
api
/
v1
/
einvoice
/
update
/
{IRN}
Update Invoice
curl --request PATCH \
--url https://test-api.pasca.co/api/v1/einvoice/update/{IRN} \
--header 'API-KEY: <api-key>' \
--header 'API-SECRET: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_status": "REJECTED",
"reference": "payment_reference_or_note"
}
'import requests
url = "https://test-api.pasca.co/api/v1/einvoice/update/{IRN}"
payload = {
"payment_status": "REJECTED",
"reference": "payment_reference_or_note"
}
headers = {
"API-KEY": "<api-key>",
"API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'API-KEY': '<api-key>',
'API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({payment_status: 'REJECTED', reference: 'payment_reference_or_note'})
};
fetch('https://test-api.pasca.co/api/v1/einvoice/update/{IRN}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": false,
"code": 400,
"message": "Failed to validate invoice",
"data": null,
"error": {
"id": "5c4c008e-8f1e-4034-a96b-8b352c143da5",
"handler": "invoice_actions",
"details": "this business does not exist",
"public_message": "validation failed"
},
"timestamp": "2025-12-23T14:54:12.477393Z"
}{
"status": false,
"code": 401,
"message": "Unauthorized",
"data": null,
"error": {
"details": "invalid or missing API credentials"
}
}⌘I