Get Invoice Process Status

If you would like to get the response of an already processed invoice. Then you can call this API. The API will fetch the final signed invoice along with some of the metadata added by API and will return the format in JSON. If the invoice was not processed already then an error will be returned.

Request Method

GET

Request Path

{{API_URL}}/api/v2/ksa_einvoice/online_service/query_invoice/

Request Params

Parameter
Value
Description

invoice_id

1

ID of the invoice

invoice_uuid

63547e08-0c1b-11ee-be56-0242ac120002

UUID of the invoice

Request Headers

Parameter
Value
Description

Productid

einvoicing_global

Keep as is

Authorization/MiplApiKey

api_key/auth token

Value and header type is mentioned in the Authentication Page

Responses

200 (OK)

If invoice is fetched successfully.

Schema

Paramater
Value
Description

message

Invoices fetched Successfully

Sample String

success

True

data

[]

List of invoices matching the id

Sample

404 (Not found)

If invoice is not found in the database

401 (Permission Error)

You will get 401 errors when the token is invalid.

500 (Server Error)

If there is a server error during the invoice processing

Last updated