Remove file of an invoice
Removes file of an invoice.
Endpoint
DELETE /integration/invoice/{id}/file
HTTP Request
DELETE /integration/invoice/{id}/file
Query parameters
| Name | Description | Required | Type |
|---|---|---|---|
| id | Identifier of the invoice | Yes | string |
Successful response
{
"blueTapeId": "fb5637b2e5f3"
}
Erroneous response
{
"code": "404",
"reason": "Invoice not found."
}
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| 400 | Invalid request |
| 401 | Unauthorized |
| 404 | Not found |
| 500 | Unexpected error |
Examples
curl https://api.bluetape.com/genericBthubService/integration/invoice/<invoiceId>/file \
-X DELETE \
-H "X-BlueTape-Key: <your-key>" \
-H "X-Integration-AccountId: <your-account-id>" \
import fetch from 'node-fetch';
const invoiceId = '27be905508e7';
const url = `https://api.bluetape.com/genericBthubService/integration/invoice/${invoiceId}/file`;
const options = {
method: 'DELETE',
headers: {
'X-BlueTape-Key': '<your-key>',
'X-Integration-AccountId': '<your-account-id>',
'Content-Type': 'application/json'
}
};
fetch(url, options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
using Flurl.Http;
var result = await "https://api.bluetape.com/genericBthubService/integration/invoice/{invoiceId}/file"
.WithHeader("X-BlueTape-Key", "<your-key>")
.WithHeader("X-Integration-AccountId", "<your-account-id>")
.WithHeader("Content-Type", "application/json")
.DeleteAsync();
import requests
url = "https://api.bluetape.com/genericBthubService/integration/invoice/<invoiceId>/file"
headers = {
"X-BlueTape-Key": "<your-key>",
"X-Integration-AccountId": "<your-account-id>",
"Content-Type": "application/json"
}
response = requests.delete(url, headers=headers)
print(response.text)