GuideLab API

Archive Invoice

Toggle the archive status of an invoice. If currently archived, it will be unarchived and vice versa. Archived invoices are excluded from default listing views.

POST
/invoices/{id}/archive

Toggle the archive status of an invoice. If currently archived, it will be unarchived and vice versa. Archived invoices are excluded from default listing views.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

Invoice ID

Response Body

application/json

curl -X POST "https://example.com/invoices/550e8400-e29b-41d4-a716-446655440000/archive"
{  "success": true,  "archived": true}
Empty