# Retrieving Invoices By ID

```java
Map<String, Object> invoice = co.findById(ChargeOver.Target.INVOICE, 1001);
if (invoice == null) {
    System.out.println(co.getLastError());
} else {
    co.prettyPrint(invoice);
}

```
