Jump to content

Access Data of order form in PHP after submitted


Recommended Posts

Hello everyone!

How can i access the data like firstname, lastname etc from the order form after it has been send? I thought i could see it in the developer console in the network tab as a XHR request. But there i cant see anything..

Please give me some advice! Thanks a lot.

Link to comment
Share on other sites

Yes, You are getting below all params, So you can use Internal API to get all details from this Like get
https://developers.whmcs.com/api-reference/getinvoice/

Parameters

Variable Type Notes
OrderID int The Order ID
OrderNumber int The randomly generated order number
ServiceIDs array An array of Service IDs created by the order
AddonIDs array An array of Addon IDs created by the order
DomainIDs array An array of Domain IDs created by the order
RenewalIDs array An array of Domain Renewal IDs created by the order
PaymentMethod string The payment gateway selected
InvoiceID int The Invoice ID
TotalDue float The total amount due
Link to comment
Share on other sites

On 2/24/2025 at 7:06 AM, WHMCS Solution said:

Yes, You are getting below all params, So you can use Internal API to get all details from this Like get
https://developers.whmcs.com/api-reference/getinvoice/

Parameters

Variable Type Notes
OrderID int The Order ID
OrderNumber int The randomly generated order number
ServiceIDs array An array of Service IDs created by the order
AddonIDs array An array of Addon IDs created by the order
DomainIDs array An array of Domain IDs created by the order
RenewalIDs array An array of Domain Renewal IDs created by the order
PaymentMethod string The payment gateway selected
InvoiceID int The Invoice ID
TotalDue float The total amount due

Mh. But from which parameter of the list i could get the details of the order? Products, prices etc..

Link to comment
Share on other sites

14 hours ago, cry4pizza said:

Mh. But from which parameter of the list i could get the details of the order? Products, prices etc..

for example you want to get details of order then user 
OrderID - and use API to get order details https://developers.whmcs.com/api-reference/getorders/
InvoiceID
 - https://developers.whmcs.com/api-reference/getinvoice/

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated