Skip to content
Snippets Groups Projects

Add or change API request to Fakturownia

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    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 );
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment