Ditutup

WHMCS - Create a hook with local API and response the data in JSON Post method to a url

I need to connect the invoicing system of the WHMCS to a einvoicing provider according the new laws of our country, they told me that the response type have to be in a POST method in JSON to a specific url they give us, after that the authority of the goverment will receive and approve the invoice trought them and later the final response that we will receive on a xml encoded in Base64. I ask to the WHMCS support and they say this:

-------------

Hello Aaron,

Thanks for contacting WHMCS! I'm afraid we are unable to assist with specific coding issues like this. I'd be happy to point out some API/hooks that would be useful. According to this document, you need to hook into THEIR API in a JSON response. In this case, you would likely need to use WHMCS hookpoints to grab the data, format it in the manner they want, and then send it off to their API. [url removed, login to view]

In this case, you would likely need WHMCS to generate an invoice to get the provider the data they need, then send that off to them. For this I would recommend utilizing the InvoiceCreation hookpoint combined with the API functions GetInvoice and GetClients. These look like they will pull the required data that you can format and send off.

----------------------

So, talking with the einvoicing provider we get to the conclusion that the JSON have to be send after payment received, invoice creation pre email, or better way invoices paid, this is the ways what WHMCS recomend in our case according this documentation:

Hooks info: [url removed, login to view]

API info: [url removed, login to view]

[url removed, login to view]

We for sure sent to WHMCS support the documentation give it by the einvoincing provider to us, I attached on this to get help making the conection with this kind of web services.

The other thing is to acomodate the fields needed by them that they have to receive to validate the official invoice in XML.

Best Regards

Aaron Barboza T.

Kemahiran: MySQL, PHP, WHMCS, XML

Lihat lagi: sending xml data using post method php, module whmcs will hook antagus api, create api web service json php, whmcs create api, api module whmcs create, create api send data mysql database php admin, send xml data php post method, whmcs create hostgator account, create google accounts api, create ebay feedback api, create google account api, can create vbscript html form survey data, google local api php, customer response data, google local api

Tentang Majikan:
( 0 ulasan ) Costa Rica

ID Projek: #16200571

6 pekerja bebas membida secara purata $29 untuk pekerjaan ini

bhagwansahane89

Hello Aron, we are working on whmcs. come on chat now so we can discuss in detail. thanks

$10 USD dalam sehari
(31 Ulasan)
4.9
phpizephing

Hello, I have 7 years of experience in WHMCS development. I have created many WHMCS module & hooks and integrated external API into WHMCS. I have created similar external invoicing module for WHMCS. Ref: https Lagi

$90 USD dalam 3 hari
(9 Ulasan)
3.8
abhilashrana01

Hello dear, I hope this proposal find you well, I saw your job posting online, I would like to request you please have a look into my previous works. I am a full-time freelancer with over 5 years of vast experience i Lagi

$10 USD dalam 3 hari
(15 Ulasan)
3.4
Naazsoftware

Dear Sir, You recently advertised your job posting for on this website. I am confident I am a best fit for this project. I WOULD LIKE TO DISCUSS THE PROJECT IN CHAT/ CALL. WE HAVE THE VOICE CALL FACILITY ON F Lagi

$25 USD dalam sehari
(3 Ulasan)
1.5
marie001234

A proposal has not yet been provided

$15 USD dalam sehari
(0 Ulasan)
0.0
$25 USD dalam sehari
(0 Ulasan)
0.0