Skip to main content

Archive Invoice

Endpoint for archiving an Invoice.

info

Please be aware that this endpoint requires a Manage Invoices API Key.

DELETE /api/v1/groups/{group_id}/invoices/{invoice_id}

Response​

CodeDescription
200Success
400Bad Request / Validation error
500Internal Error

Example Usage​

plans.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
	method: 'DELETE',
	headers: headers,
	redirect: 'follow',
	body: {
		// request body data
	}
};
const group_id = '';
const invoice_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));

Example Success Response​

{
	"id": "7e44c370-078e-4fa3-9909-bdd8554eb068",
	"invoice_number": "MY-2026-002-INV",
	"group_id": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e",
	"slug": "8059f5c6-e1cd-4e46-9196-1d7e47401a3e/MY-2026-002-INV",
	"invoice_number_numeric": "002",
	"year": "2026",
	"note": "Thank you very much for your purchase!",
	"external_id": "9ab740bc-dc41-4c67-a6d5-f21ee2ca1f3a",
	"due_date": "2026-12-25T00:00:00Z",
	"send_email": false,
	"processor_id": "fbf2e44a-eed6-426f-b0e2-a3a5b34377c0",
	"card_enabled": true,
	"ach_enabled": false,
	"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": "2026-10-09T10:07:00.597584Z",
		"updated_at": "2026-10-09T10:07:00.597584Z"
	},
	"products": [
		{
			"id": "71169f53-ffae-4457-a0a8-cfdb0910dd58",
			"product_id": "3c35ec5c-843d-46a5-aba9-0180b0ad451d",
			"name": "Steak",
			"description": "",
			"amount": 5000,
			"included_tax_amount": 200,
			"unit_of_measure": "pc",
			"quantity": 2,
			"created_at": "2026-11-18T14:27:10.684702633Z",
			"updated_at": "2026-11-18T14:27:10.684702633Z"
		},
		{
			"id": "0594c1c0-32b2-4d11-866c-29cb5c33f6fc",
			"product_id": "4d685310-210f-4a62-924e-88d2bcc97783",
			"name": "French fries",
			"description": "",
			"amount": 500,
			"included_tax_amount": 0,
			"unit_of_measure": "pc",
			"quantity": 4,
			"created_at": "2026-11-18T14:27:10.687571196Z",
			"updated_at": "2026-11-18T14:27:10.687571196Z"
		},
		{
			"id": "16340baa-d8d6-4e85-a745-ef95f38dd7dd",
			"product_id": "2237b93b-b27a-4d44-a474-78b83446f051",
			"name": "Hamburger",
			"description": "",
			"amount": 1200,
			"included_tax_amount": 0,
			"unit_of_measure": "pc",
			"quantity": 1,
			"created_at": "2026-11-18T14:27:10.69005105Z",
			"updated_at": "2026-11-18T14:27:10.69005105Z"
		},
		{
			"id": "ae0cdb74-9310-40b7-8f86-4917d03ba46d",
			"product_id": "e4f73d6e-e132-4d74-97ac-80ff4803c4c3",
			"name": "Hot-Dog",
			"description": "",
			"amount": 700,
			"included_tax_amount": 0,
			"unit_of_measure": "pc",
			"quantity": 1,
			"created_at": "2026-11-18T14:27:10.692558798Z",
			"updated_at": "2026-11-18T14:27:10.692558798Z"
		},
		{
			"id": "5862120f-ea3c-46c2-8deb-aeb2d8ff31e0",
			"product_id": "0f3385f6-f522-402c-ad5d-0dc1bd04eb3f",
			"name": "Sandwich",
			"description": "",
			"amount": 1000,
			"included_tax_amount": 20,
			"unit_of_measure": "pc",
			"quantity": 1,
			"created_at": "2026-11-18T14:27:10.695220961Z",
			"updated_at": "2026-11-18T14:27:10.695220961Z"
		},
		{
			"id": "60f1dbdd-a17f-426b-9751-b6686f97a8fe",
			"product_id": "03e67641-d83a-461e-bfce-660386a6fbbc",
			"name": "Tea",
			"description": "",
			"amount": 300,
			"included_tax_amount": 0,
			"unit_of_measure": "pc",
			"quantity": 5,
			"created_at": "2026-11-18T14:27:10.697748769Z",
			"updated_at": "2026-11-18T14:27:10.697748769Z"
		},
		{
			"id": "90c527c9-d3f1-4305-aee8-6cd6c3ef72f1",
			"product_id": "0f3385f6-f522-402c-ad5d-0dc1bd04eb3f",
			"name": "Sandwich",
			"description": "",
			"amount": 3000,
			"included_tax_amount": 0,
			"unit_of_measure": "pc",
			"quantity": 1,
			"created_at": "2026-11-18T14:27:10.697748769Z",
			"updated_at": "2026-11-18T14:27:10.697748769Z"
		},
		{
			"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": "2026-11-18T14:27:10.697748769Z",
			"updated_at": "2026-11-18T14:27:10.697748769Z"
		}
	],
	"amount": 19900,
	"status": "archived",
	"created_at": "2026-11-18T14:27:10.661796389Z",
	"updated_at": "2026-11-18T14:27:10.661796389Z"
}