Invoices
Download any invoice
GET
/api/v1/invoices/admin/:idReturns any invoice's PDF download link, regardless of seller. Staff-only.
Requires Authorization
ADMIN, ACCOUNTANT only
Session
Path parameters
idstringrequired | Invoice ID. |
Request
curl --request GET \
--url https://api.swiftgoma.com/api/v1/invoices/admin/:id \
--header 'Authorization: Bearer <access_token>'200Example response
{
"success": true,
"data": {
"id": "inv_1a2b3c",
"sellerProfileId": "sp_2b3c4d",
"number": "SWG-INV-2026-0042",
"amount": "10.00",
"currency": "USD",
"issuedAt": "2026-02-01T09:05:00.000Z",
"pdfUrl": "https://res.cloudinary.com/dx3wclabo/image/upload/v1/invoices/swg-inv-2026-0042.pdf"
}
}