MarminDeveloper Docs

Retrieve a purchase invoice


Retrieves the details of a specific purchase invoice.

Path parameters

GET /api/purchase-invoices/{id}
ParameterTypeRequiredDescription
idstring
Required
The ID of the purchase invoice to retrieve.
Response

Status code: 200 OK

Response body:

Returns the purchase invoice object with all fields populated.

Error responses

401 Unauthorized

Authentication required or invalid token.

{
  "errors": {
    "message": "Authentication required or invalid token"
  }
}
404 Not Found

Purchase invoice not found.

{
  "errors": {
    "message": "Purchase invoice not found"
  }
}
500 Internal Server Error

An error occurred while processing the request.

{
  "errors": {
    "message": "An error occurred"
  }
}
Next