Interacties
Interacties zijn te beheren via de controller 'interaction'.
add
Middels deze functie kunt u een interactie aanmaken in WeFact.
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Date | date | De vervaldatum van de interactie |
| Hours | string | Het uur van de interactie |
| Minutes | string | De minuten van de interactie |
| DebtorId | int | Id van de gekoppelde klant |
| DebtorContactId | int | Id van de gekoppelde klantcontactpersoon |
| CreditorId | int | Id van de gekoppelde leverancier |
| InvoiceId | int | Id van de gekoppelde factuur |
| PriceQuoteId | int | Id van de gekoppelde offerte |
| CreditInvoiceId | int | Id van de gekoppelde inkoop |
| UnprocessedCreditInvoiceId | int | Id van de gekoppelde onverwerkte inkoop |
| SubscriptionId | int | Id van het gekoppelde abonnement |
| Description | string | Beschrijving van de interactie |
| CommunicationMethod | string | Interactie contact via, zie variabelenlijst. |
Voorbeeld invoer:
$parameters = [
"Date" => "2023-11-22",
"Hours" => "14",
"Minutes" => "30",
"AssigneeId" => 1,
"DebtorId" => 1,
"Description" => "Example interaction",
"CommunicationMethod" => "phone"
];
$api->sendRequest('interaction', 'add', $parameters);
Voorbeeld uitvoer:
Array
(
[controller] => interaction
[action] => add
[status] => success
[date] => 2024-01-21T12:00:00+02:00
[interaction] => Array
(
[Identifier] => 1
[Date] => 2023-11-22
[Time] => 14:30
[AssigneeId] => 1
[DebtorId] => 1
[DebtorContactId] =>
[CreditorId] =>
[InvoiceId] =>
[PriceQuoteId] =>
[CreditInvoiceId] =>
[UnprocessedCreditInvoiceId] =>
[SubscriptionId] =>
[Description] => Example interaction
[CreatedByEmployeeId] =>
[CommunicationMethod] => phone
[Created] => 2024-01-21 11:00:00
[Modified] => 2024-01-21 11:00:00
[Comments] => Array
(
)
[Attachments] => Array
(
)
)
)