HostFact API versie 3.1



Inkoopfacturen

Inkoopfacturen (van crediteuren) zijn te beheren via de controller 'creditinvoice'.



attachment delete

Middels deze functie verwijderd u een bijlage bij een inkoopfactuur.
Voorbeeldbestand: /voorbeelden/attachment/attachment.creditinvoice.delete.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een bijlage
ReferenceIdentifier int De unieke ID van een inkoopfactuur
CreditInvoiceCode string Het interne inkoopfactuurnummer
Type string Bij inkoopfactuur altijd 'creditinvoice'
Verplichte velden: Identifier, ReferenceIdentifier of CreditInvoiceCode en Type

Voorbeeld invoer:
<?php

require_once("../hostfact_api.php");

$api = new HostFactAPI();

$attachmentParams = array(
				'CreditInvoiceCode'	=> 'CF0001',
				'Type'				=> 'creditinvoice'
);

$response = $api->sendRequest('attachment', 'delete', $attachmentParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => attachment
    [action] => delete
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [success] => Array
        (
            [0] => De bijlage 'sample.pdf' is verwijderd
        )

)