VNIT Posted December 10, 2021 Share Posted December 10, 2021 Hello! I used api to get order as guide https://developers.whmcs.com/api-reference/getorders/ , but this isn't correct, prameter "id" is this part id order id? 0 Quote Link to comment Share on other sites More sharing options...
string Posted December 10, 2021 Share Posted December 10, 2021 You need to use the ID. The ID begins with 1 and increases with each order. You can not use the order number (order number = the number, which is randomly generated). 0 Quote Link to comment Share on other sites More sharing options...
VNIT Posted December 10, 2021 Author Share Posted December 10, 2021 is there any way to get status from ID ? I was used ID on attachment but return other order thank you 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted December 16, 2021 Share Posted December 16, 2021 The IDs in that column are service IDs and not order IDs. On the client summary page, hit View Orders and it will show all orders for a client and the ID column there is what you would use for that API call. 0 Quote Link to comment Share on other sites More sharing options...
VNIT Posted December 16, 2021 Author Share Posted December 16, 2021 53 minutes ago, steven99 said: The IDs in that column are service IDs and not order IDs. On the client summary page, hit View Orders and it will show all orders for a client and the ID column there is what you would use for that API call. thank you, I have confusion between service IDs and order IDs 0 Quote Link to comment Share on other sites More sharing options...
VNIT Posted December 16, 2021 Author Share Posted December 16, 2021 anyone have solution to get status from service IDs ?, 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted December 16, 2021 Share Posted December 16, 2021 4 hours ago, VNIT said: anyone have solution to get status from service IDs ?, Service status is `domainstatus` in tblhosting table. If you want to check the status from GetOrders, check [lineitems][lineitem][status] "lineitems": { "lineitem": [ { "type": "product", "relid": 1, "producttype": "Other Product\/Service", "product": "SSL Certificates - Rapid SSL", "domain": "sampledomain.com", "billingcycle": "One-Time", "amount": "8.00", "status": "Active" } ] } 0 Quote Link to comment Share on other sites More sharing options...
VNIT Posted December 20, 2021 Author Share Posted December 20, 2021 I'm also thinking of having to use query database to process, because api I don't see any part can get status from service IDs, while order IDs can contain many services thank you. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.