Support » Plugin: WP-Invoice - Web Invoice and Billing » Create invoice via API

  • Resolved yckelvin

    (@yckelvin)


    Dear Sir/Madam,

    I review your API document, I have a question to the parameter charges, what is it for? I am not familiar with the API coding, how can I get the class-IXR.php and class-wp-http-ixr-client.php?

    Best regards

    Kelvin

    • This topic was modified 1 year, 1 month ago by  yckelvin.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Hello.

    You could find those elements when adding payments, charges manually. Here is screenshot – https://screencast.com/t/bwiom2YeXQ

    Regards.

    Dear MariaKravchenko,

    Noted with thanks. How can I get the class-IXR.php and class-wp-http-ixr-client

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Technical consulting is paid in our plugin. You could order that via Marcus or in WP-Invoice Settings page, Feedback/Support tab.

    Regards.

    Dear MariaKravchenko,

    I refer to the document from https://wp-invoice.github.io/docs/api/, I don’t see the download link for the two class files class-IXR.php and class-wp-http-ixr-client.php, do you mean getting the files is considered as technical consulting?

    In the article it says

    It is the third argument that should contain an Associative Array of parameters. It varies depending on methods. Detailed lists of arguments you can find in WP-Invoice installation. Settings->Help->WP-Invoice XML-RPC API Reference.

    , there is no information about how a user can get the classes files, does it mean we need to order it? If we submit the consulting question, it charges for minimum $280, I don’t think the two class files cost $280.

    We are not seeking consulting service how we code the api, we don’t know how to get the class files it mentioned in the document and there is no download link or link for us to order.

    Best regards,

    Kelvin.

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Dear Kelvin.

    I will check what can be done.

    Come back to you soon.

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Hello Kelvin

    If you are developing some service that will do requests to your WordPress site and create invoices using WP-Invoice API then you should use any XMLRPC client. Like this example https://gist.github.com/quietshu/8fd50b1f732b87025762
    There are a lot of public libraries for this purpose. Just google for php (or whatever language you use) xmlrpc client.

    If you are going to use WP-Invoice API within the same WordPress site then you can use XMLRPC client that WordPress provides. Like this from the example:

    
    include_once( ABSPATH . WPINC . '/class-IXR.php' );
    include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
    
    $client = new WP_HTTP_IXR_Client( 'http://example.site.com/xmlrpc.php' );
    

    Dear Anton Korotkoff,

    I try execute the script by adding

    define('WP_USE_THEMES', false);
    require('wp-blog-header.php');

    before the sample script but not success to create invoice. May I know what is the $credentials for? Is it one of the user account who can create the invoice from backend is fine?

    In the sample script, I can’t find the field about slug, how can I name the slug for the invoice?

    Best regards,

    Kelvin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Create invoice via API’ is closed to new replies.