WeFact API versie 3.5
Facturen
Facturen zijn te beheren via de controller 'invoice'.
attachment add
Middels deze functie voegt u een bijlage toe aan een bestaande factuur. Deze functie is beschikbaar voor een factuur in alle statussen.
Voorbeeldbestand: /voorbeelden/attachment/attachment.invoice.add.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
ReferenceIdentifier | int | De unieke ID van een factuur |
InvoiceCode | string | Het factuurnummer |
Type | string | Bij factuur altijd 'invoice' |
Filename | string | De bestandsnaam |
Base64 | text | Base64 encoded string |
Voorbeeld invoer:
$api->sendRequest('attachment', 'add', array( 'ReferenceIdentifier' => 1, 'Type' => 'invoice', 'Filename' => 'sample.pdf', 'Base64' => 'JVBERi0x...lRU9GDQ==' ));
Voorbeeld uitvoer:
Array ( [controller] => attachment [action] => add [status] => success [date] => 2014-05-18T10:39:40+00:00 [success] => Array ( [0] => Het bestand 'sample.pdf' is toegevoegd als bijlage bij de factuur ) )