Skip to content

Instantly share code, notes, and snippets.

View clongeau's full-sized avatar

Charles Longeau clongeau

View GitHub Profile
@clongeau
clongeau / uber-eats-invoice.js
Created July 14, 2025 19:32 — forked from neopheus/uber-eats-invoice.js
Uber Eats Download Invoice
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
const downloadInvoice = async (orderUUID) => {
try {
console.log(`Downloading invoice for order UUID: ${orderUUID}`);
const invoiceResponse = await fetch('https://www.ubereats.com/_p/api/getInvoiceFilesV1?localeCode=fr', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-csrf-token': 'x' }, // Remplacez 'x' par votre token CSRF réel
body: JSON.stringify({ orderUUID }),
});