Update Results of Approved Invoices with QuickBooks Enterprise Response

Endpoint Name : updateqbestatus

Request type : POST

Authorization : Bearer token as header

Endpoint Details : This API is used to get the results of approved invoices which are approved by the approver of a company using date range filter, QBE status filter and username list.

Request Type

Method

URL

POST

URL/access/klearstack/updateqbestatus

Request Body

Params

Values

Required

Description

company_name

string

Yes

Name of the company

username

string

Yes

Username for a particular user of a company

password

string

Yes

Password for a particular user of a company

collection_name

string

No

Type of document to be processed - “Invoices”, “Receipts”, “PurchaseOrders”,“NACH”,“LoanAgreement” or “Insurances”.

By default “Invoices” will be set if this parameter is not passed

Note: Optional Parameter

QBE_response

string

Yes

Response of Quickbook to particular invoice.This will be a string of Json.

Ex.

“{"document_id":"6073ff72de02f2c94bca9cef","QBE_status": "successful","error_message": "ErrMsg","QBE_timestamp":"14/04/2021 12:32:49"}“

Shell (cURL)

  • Request Body

curl --location "URL/access/klearstack/updateqbestatus" \
  --header "Authorization: Bearer your_token_here" \
  --form "company_name=Replace_Company_Name_Here" \
  --form "username=Replace_User_Name_Here" \
  --form "password=Replace_Password_Here" \
  --form "document_type=Invoices" \
  --form 'QBE_response={
    "document_id":"6073ff72de02f2c94bca9cef",
    "QBE_status":"successful",
    "error_message":"ErrMsg",
    "QBE_timestamp":"14/04/2021 12:32:49"
  }'

Python

  • Request Body

Java (OkHttp)

  • Request Body

Node.js (Axios)

  • Request Body

JavaScript (XHR)

  • Request Body

API Response

Status

Example Response

200

“QBE status updated successfully”

200

if document id is not found.

“Document ID not found”

Last updated