Inkoopfacturen
Bijlagen zijn te beheren via de controller 'attachment'.
attachment add
Middels deze functie voegt u een bijlage toe aan een bestaande inkoopfactuur. Deze functie is beschikbaar voor een inkoopfactuur in alle statussen.
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| ReferenceIdentifier | int | De unieke ID van een inkoopfactuur |
| CreditInvoiceCode | string | Eigen interne inkoopfactuurnummer |
| Type | string | Bij inkoopfactuur altijd 'creditinvoice' |
| Filename | string | De bestandsnaam |
| Base64 | text | Base64 encoded string |
Voorbeeld invoer:
$parameters = [
"ReferenceIdentifier" => "1",
"Type" => "creditinvoice",
"Filename" => "sample.pdf",
"Base64" => "JVBERi0xLj...UlRU9GDQ=="
];
$api->sendRequest('attachment', 'add', $parameters);
Voorbeeld uitvoer:
Array
(
[controller] => attachment
[action] => add
[status] => success
[date] => 2024-01-21T12:00:00+02:00
[success] => Array
(
[0] => Het bestand 'sample.pdf' is toegevoegd als bijlage bij de inkoopfactuur
)
)