Get Invoice
Endpoint for getting Invoice by ID.
info
Please be aware that this endpoint requires a Manage Invoices or a View Invoices API Key.
GET
/api/v1/groups/{group_id}/invoices/{invoice_id}
Response
| Code | Description |
|---|---|
| 200 | Success |
| 500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
get.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
const group_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/invoices/${invoice_id}`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
get.py
import requests
group_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/"+group_id+"/invoices/"+invoice_id
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
get.go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/invoices/" + invoice_id
client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Success Response
{
"id": "3dccd93c-fb56-43c7-90df-9c4f96ad988d",
"invoice_number": "MY-2025-001-INV",
"group_id": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e",
"slug": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e/MY-2025-001-INV",
"invoice_number_numeric": "001",
"year": "2025",
"note": "Thank you for your purchase!",
"external_id": "dec29104-1875-4af8-a9db-a1266096ff6",
"due_date": "2025-12-18T00:00:00Z",
"send_email": false,
"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
"card_enabled": true,
"ach_enabled": true,
"partner": {
"id": "8d7fbc56-b2e1-4e33-8d52-e93bb9a91ab7",
"group_id": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e",
"company": "Dan The Man Co.",
"first_name": "Dan",
"last_name": "Humphrey",
"email": "test@example.com",
"line_1": "E 123 22",
"line_2": "",
"city": "Brooklyn",
"country": "US",
"subdivision": "NY",
"postal_code": "11001",
"created_at": "2025-10-09T10:07:00.597584Z",
"updated_at": "2025-10-09T10:07:00.597584Z"
},
"products": [
{
"id": "5deec605-95b4-446e-9eb3-8c4171df17c8",
"product_id": "3ad1e74e-3e3b-45ae-be00-82621759c8ec",
"name": "Coffee",
"description": "",
"amount": 500,
"included_tax_amount": 0,
"unit_of_measure": "pc",
"quantity": 3,
"created_at": "2025-11-18T14:11:55.714228Z",
"updated_at": "2025-11-18T14:11:55.714228Z"
},
{
"id": "79fc9894-d916-490b-8333-a81dcfddd70f",
"product_id": "03e67641-d83a-461e-bfce-660386a6fbbc",
"name": "Tea",
"description": "",
"amount": 300,
"included_tax_amount": 0,
"unit_of_measure": "pc",
"quantity": 1,
"created_at": "2025-11-18T14:11:55.711293Z",
"updated_at": "2025-11-18T14:11:55.711293Z"
}
],
"amount": 1800,
"status": "pending",
"created_at": "2025-11-18T14:11:55.69373Z",
"updated_at": "2025-11-18T14:11:55.69373Z"
}