Main Web API Documentation Information
|
|
Actual Page/Function Name:
|
getFullInvoiceDetails |
Human Readable Name or Caption:
|
Get Full Invoice Details |
Page/Function Description:
|
This method will get all details of a single invoice. |
Page/Function Output Type:
|
API - JSON or WDDX |
Categories:
|
eComm,invoice |
Extra Page/Function Notes:
|
This method will return all the pieces for single invoices. This includes things like main information, customer information, line items, payments, stock unit information, and other invoice values. |
Parameters
|
|||||||
Scope | Name | Type | Default | Description | Required | Alternates | Known Values |
Arguments | CORP_ID | Numeric | 0 | Pass in the corp id number. This is your corporation ID or your business world number. This is required and will be validated. The default is 0, but will be checked for a real number. | Yes | ||
Arguments | INVOICE_NUMBER | Numeric | 0 | Pass in the invoice number. This is the primary key that ties the main invoice to the line items and other details. As a note, you should have already ran the startMainInvoice method. Use that id number to pass to this method. | Yes | ||
Arguments | LINE_SHOW | String | hide | Pass in the string "all" for all visible and non-visible line items. Use the string "hide" for only visible lines. | Yes |
Results
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RET_STATUS | RET_MAIN_MESSAGE | RET_SECOND_MESSAGE | Redirect Link | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ok | success | This assumes that everything went well. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dataIn | Unable to get the invoice details. Missing some data. | Use your back button and try again. | If it doesn't pass general validation, it will return this. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zero | Unable to find the invoice you requested in the database. | Use your back button and try again. | If we're unable to find the invoice requested, this will respond with a zero. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
db | Unable to connect to the database. Missing the main invoice information. | Use your back button and try again. | Error in querying the main invoice details, store info, stock info, invoice payments, additional customers, elements of time, or flex grid check. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stock | Unable to find the stock number [____]. Missing invoice line items. | Use your back button and try again. | This is a line item level check in case it couldn't find an associated stock unit. This only runs if it shows that a stock unit was assigned to the invoice as a line item. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
db2 | Unable to connect to the database. Missing the invoice line items information. | Use your back button and try again. | This error message comes back if there was a problem checking for invoice line items, sub stock unit information, tax sums, or hidden line item counts. This section also populates an array of formatted line items. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
db3 | Problems while doing math on invoice totals. Missing the invoice line items information. | Use your back button and try again. | This message comes back if there was an error with the line numbers, line sum, discounts check, payment sum, transaction dates check, paid date check, or reoccurring invoice check. |
Samples
|
|
Caption | Text |
JSON |
{"API_CALL_FUNCTION_NAME":"getFullInvoiceDetails","CORP_ID":"53","INVOICE_NUMBER":"78","LINE_SHOW":"hide","API_CORP_KEY_ID":"PLA-0053","API_USER_NAME":"demo","API_USER_PASSWORD":"1234","API_CURRENT_PAYEE_ID":"3","API_INPUT_OUTPUT_TYPE":"JSON","API_URL_ENCODING":"AUTO"}
|