curl --location --request PUT '/v1/invoices/XdY5BQoZwwDeROmWL7NUfLa3B5XHcQr1vZf0uyr42mkB6wVzF1' \
--header 'X-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 12500,
"due_date": "2022-10-09",
"last_payment_date": "2022-12-30",
"phone": "+37263256604",
"currency": "NOK",
"invoice_url": "https://www.example.com",
"pdf_content": "base64 encoded pdf content",
"pdf_url": "https://www.url-to-pdf.com",
"payment_method": "Bank transfer",
"paid_at": "2022-10-10 09:15:47",
"deleted_at": "2022-10-30",
"redirect_url": "https://www.redirect-url.com",
"cancel_url": "https://google.com",
"notify_customer": true,
"language": "en",
"name": "Jim Smith",
"email": "jimsmith@example.com"
}'{
"data": {
"unique_id": "XdY5BQoZwwDeROmWL7NUfLa3B5XHcQr1vZf0uyr42mkB6wVzF1",
"account_id": 1,
"invoice_id": "10000",
"amount": 12500,
"customer_id": "51220",
"customer_reference": "PO-88231",
"name": "Jim Smith",
"email": "jimsmith@example.com",
"phone": "+37263256604",
"currency": "NOK",
"notify_customer": true,
"reminded": false,
"payment_method": "Bank transfer",
"opened": 0,
"language": "en",
"redirect_url": "https://www.customershop.com/controlpanel",
"cancel_url": "https://google.com",
"due_date": "2021-04-09T00:00:00",
"last_payment_date": "2022-04-24T00:00:00",
"paid_at": "2021-04-01T09:15:47",
"created_at": "2021-03-29T09:32:25",
"updated_at": "2021-03-29T09:39:39",
"deleted_at": null,
"deactivated_at": null,
"refunded_at": null,
"is_recurring": false,
"payment_url": "https://pay.amili.no/pay-invoice/XdY5BQoZwwDeROmWL7NUfLa3B5XHcQr1vZf0uyr42mkB6wVzF1"
}
}