Get Invoice Details
Retrieves detailed information for a specific invoice, including customer information, invoice amount, payment status, and related transaction data. The request should include the invoice ID and required authentication credentials
Base URL
Sandbox Base URL
bearerAuthAuthorizationBearer <JWT>Pass access token obtained from login endpoint
accessCode*stringPass the merchant access code issued by Hesabe
Accept*stringapplication/json
Content-Type*stringapplication/json
id*numberPass the invoice object "id" field number
data*stringPass the encrypted payload as a query parameter
Details fetched successfully. Decrypt the server response to view the final result
application/json- response
id?integerinvoice_type?integerinvoice_sub_type?integertoken?stringaccess_key?stringsplit_access_key?stringmerchant_id?stringreference_number?stringamount?stringservice_charge?stringpayment_method?array<string>discount?stringdescription?stringsms_response?stringinvoice_status?integersubscription?string|nullsms_status?integerurl_status?integervisited_count?integercountry_id?string|nullcreated_id?integerlanguage?stringexpires_at?stringdateattachment?stringurl?stringspliturl?string|nullcreated_at?stringdate-timeupdated_at?stringdate-timecustomer?created_by_merchant?products?array<unknown>transaction?fetch("https://merchantapisandbox.hesabe.com/api/v1/invoice/14696?data=0e7898bd7464d0c402fe8a949d9cbf9b826ccb9b83b56fa003373275f1947a65", { method: "GET", headers: { "accessCode": "c333729b-d060-4b74-a49d-7686a8353481", "Accept": "application/json", "Content-Type": "application/json" }}){ "id": 14696, "invoice_type": 1, "invoice_sub_type": 3, "token": "3118174834216193364264", "access_key": "9E4Y773Q", "split_access_key": "", "merchant_id": "3118", "reference_number": "31188232353", "amount": "15.000", "service_charge": "0.000", "payment_method": [ "1", "2", "7", "9" ], "discount": "0.000", "description": "", "sms_response": "", "invoice_status": 1, "subscription": null, "sms_status": 0, "url_status": 1, "visited_count": 1, "country_id": null, "created_id": 3705, "language": "en", "expires_at": "2025-05-30", "attachment": "", "url": "https://merchantapisandbox.hesabe.com/s/9E4Y773Q", "spliturl": null, "created_at": "2025-05-27 13:36:01", "updated_at": "2025-05-27 13:36:32", "customer": { "name": "jusaira", "email": "", "phone_number": null }, "created_by_merchant": { "id": 3705, "name": "refundemployee" }, "products": [ null ], "transaction": { "id": 1190281, "amount": 15, "net_amount": 14.9, "commission": 0.1, "admin_charge": 0, "token": "string", "payment_type_id": 1, "service_type_id": 2, "payment_transfer_status": 2, "payment_status": 1, "auth_status": 0, "refund_status": 0, "description": "string", "order_reference_number": "string", "transaction_payment_id": "string", "result_code": "CAPTURED", "transaction_id": "string", "auth": "string", "transaction_reference_number": "string", "track_id": "string", "terminal_id": "string", "bank_name": "string", "reconciled_document_number": "string", "payment_transfer_document_number": "string", "pending_auth_amount": 0, "created_at": "string", "updated_at": "string", "balance_amount": 0, "merchant": { "merchant_id": 0, "name": "string", "code": "string", "sequence_id": 0, "company_name": "string", "company_logo": "string", "business_name": "string" }, "payment_type": { "id": 0, "name": "string", "display_name": "string" }, "service_type": { "id": 0, "name": "string" }, "payment_gateway": { "variable_1": "string", "variable_2": "string", "variable_3": "string", "variable_4": "string", "variable_5": "string", "version": 0 }, "reconciliation": "string", "payment_transfer": "string", "refund": [ { "id": 0, "amount": "string", "refund_at": "string", "document_number": "string", "recover_method": "string", "status": 0, "refund_method": "string", "approved_by": "string", "balance_amount": "string", "remark": "string", "created_at": "string", "updated_at": "string" } ], "invoice": { "created_by_id": 0, "created_name": "string", "reference_number": "string", "phone_number": "string", "customer_name": "string", "amount": "string", "admin_charge_paid": "string", "rentperiod": "string", "description": "string", "invoice_sub_type": 0, "subscription_amount": 0, "subscription_count": 0, "start_date": "string", "frequency": "string" }, "sales_order": "string", "payment_card_detail": { "card_number": "string", "name_on_card": "jusaira", "issuer_name": "string" }, "customer": { "id": "string", "name": "string", "mobile_number": "string", "email": "string" }, "Rental_Asset": "string", "Rental_Unit": "string", "Rental_Tenant": "string" }}To resend the invoice POST
Resend Invoice allows the merchant to resend an existing invoice link or notification to the customer without creating a new one
Cancel invoice PUT
Cancels an existing invoice for a merchant. Once canceled, the invoice cannot be paid or processed further. The request should include the invoice token number