Add or change API request to Fakturownia
The snippet can be accessed without any authentication.
Authored by
Krzysztof Dyszczyk
Edited
fakturownia_api_request.php 348 B
add_filter( 'fakturownia/core/api/request', function( $data, $order ) {
$data['invoice']['split_payment'] = 1; // - 1 lub 0 w zależności, czy dokument ma podlegać pod mechanizm podzielonej płatności - split payment, czy nie
$data['invoice']['description'] = $order->get_id().' PL'; // numer zamówienia z sufiksem
return $data;
}, 2, 10 );
Please register or sign in to comment