Banktransacties
Banktransacties zijn te beheren via de controller 'transaction'.
match
U kunt deze functie gebruiken om banktransacties the matchen in WeFact.
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Identifier | int | Het unieke ID van een bank transactie |
| Matches | array | Informatie over transactie matches: |
| - ReferenceId | int | Gekoppelde entiteits ID |
| - ReferenceType | 'invoice', 'creditinvoice', 'directdebit' | Entiteit type om de transactie aan te matchen |
| - MatchedAmount | float | Het te matchen bedrag |
| - Currency | string | Valuta, zie variabelen-lijst |
| - PaymentType | 'received', 'paid', 'directdebit' | Het type betaling van de banktransactie |
| - MarkAsPaid | 'yes' of 'no' | Mogelijke actie om een transactie op betaald te zetten |
| - DoublePayment | 'yes' of 'no' | Mogelijke actie om een transactie als dubbel te markeren |
| - Reversal | array | Stornering informatie: |
| -- Reason | string | Reden voor stornering |
| -- InvoiceAction | 'move_to_next_batch', 'remove_direct_debit_from_invoice', 'remove_direct_debit_from_debtor' | Mogelijke actie ten aanzien van stornering |
| -- BatchDate | string | Incasso batch datum |
| -- NotifyClient | 'yes' of 'no' | Optie om klant te informeren |
Voorbeeld invoer:
$parameters = [
"Identifier" => 1,
"Matches" => [
[
"ReferenceId" => 1,
"ReferenceType" => "invoice",
"MatchedAmount" => 100,
"Currency" => "EUR",
"PaymentType" => "received",
"MarkAsPaid" => "yes"
]
]
];
$api->sendRequest('transaction', 'match', $parameters);
Voorbeeld uitvoer:
Array
(
[controller] => transaction
[action] => match
[status] => success
[date] => 2024-01-21T12:00:00+02:00
[transaction] => Array
(
[Identifier] => 1
[BankAccount] => NL24INGB0001234567
[Date] => 2025-01-14
[Type] => deposit
[Amount] => 100
[Currency] => EUR
[ShortDescription] => Factuurnr. 12345678910
[ExtendedDescription] =>
[AccountName] => Klantnaam
[AccountNumber] => NL59RABO0123456789
[AccountBIC] => RABONL2U
[BankReference] => 2025-01-14||82371f10e463ff84f786b3d28b691ee3
[Status] => matched
[Matches] => Array
(
[0] => Array
(
[ReferenceType] => invoice
[ReferenceId] => 1
[MatchedAmount] => 100
[Currency] => EUR
[MatchType] => full_payment
)
)
[Origin] => api
[Created] => 2024-01-21 11:00:00
[Modified] => 2024-01-21 11:00:00
)
)