Get invoice by number

GET {{baseUrl}}/invoices/:invoiceNo

Description

This API endpoint enables users to retrieve a specific invoice, identified by the :invoiceNo parameter.

Notes

  • Please ensure that you have the necessary authentication and authorization to access this endpoint.

  • You must provide a valid :invoiceId in the URL to get details for a specific invoice.

RESPONSES

status: OK

{"invoice":{"id":1014,"no":"0000002231","date":"2024-07-28T15:27:39.8354197","price":{"amount":13.85,"currency":"US Dollar","symbol":"$"},"downloadUrl":"/uploads/invoices/24310001-0000002231-1014.pdf","booking":{"bookingId":473,"bookingCode":"24310001","status":"Confirmed","checkIn":"2024-07-28T00:00:00","checkOut":"2025-08-31T00:00:00","space":1,"usedSpace":1,"invoiceTerm":1,"isPinCodeUsed":true,"createdDate":"2024-07-28T15:27:40.215303","yard":{"id":1,"name":"Telfair"}}}}