curl --location '/v1/invoices' \
--header 'X-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_id": "10000",
"customer_id": "51220",
"customer_reference": "PO-88231",
"kid": "1234567890128",
"account_number": "12345678903",
"amount": 12500,
"due_date": "2022-10-09",
"last_payment_date": "2022-12-30",
"name": "Jim Smith",
"email": "jimsmith@example.com",
"phone": "+37263256604",
"currency": "NOK",
"notify_customer": true,
"invoice_url": "https://www.example.com",
"redirect_url": "https://www.customershop.com/controlpanel",
"cancel_url": "https://google.com",
"is_recurring": false,
"language": "no"
}'{
"data": {
"unique_id": "5f0c1e2a-8b3d-4c7e-9a41-2d6b7c8e9f10",
"account_id": 1,
"invoice_id": "10000",
"amount": 12500,
"customer_id": "51220",
"customer_reference": "PO-88231",
"kid": "1234567890128",
"account_number": "12345678903",
"name": "Jim Smith",
"email": "jimsmith@example.com",
"phone": "+37263256604",
"currency": "NOK",
"notify_customer": true,
"reminded": false,
"payment_method": null,
"opened": 0,
"language": "no",
"redirect_url": "https://www.customershop.com/controlpanel",
"cancel_url": "https://google.com",
"due_date": "2021-04-09T00:00:00",
"last_payment_date": "2021-04-23T23:59:59",
"paid_at": null,
"created_at": "2021-03-29T09:32:25",
"updated_at": "2021-03-29T09:32:25",
"deleted_at": null,
"deactivated_at": null,
"refunded_at": null,
"payment_url": "https://pay2.amili.no/pay/invoice/5f0c1e2a-8b3d-4c7e-9a41-2d6b7c8e9f10",
"is_recurring": false,
"recurring_invoice_id": null
}
}