Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#f9f9f9"/><meta name="version" content="76199ace_8255015"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-itunes-app" content="app-id=531717763">
<title data-rh="true">Grafik Freelancer na projekt (3-4 miesiące) Zielona Góra • OLX.pl</title>
<meta data-rh="true" http-equiv="Content-Language" content="pl"/><meta data-rh="true" name="robots" content="index, follow"/><meta data-rh="true" name="facebook-domain-verification" content="bx0u32f6xa1urebxqi49jygtxun286"/><meta data-rh="true" property="al:android:url" content="pl.tablica://"/><meta data-rh="true" property="al:android:package" content="pl.tablica"/><meta data-rh="true" property="al:android:app_name" content="OLX.pl"/><meta data-rh="true" property="al:ios:url" content="pl.tablica://"/><meta data
curl --location 'https://api.sandbox-infakt.pl/api/v3/async/invoices.json' \
--header 'X-inFakt-ApiKey: 8a2b425b1f7cfbca67bc7a8dc2c942d84e311906' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"invoice": {
"number": "16/03/2023-2370997",
"invoice_date": "2023-03-08",
"sale_date": "2023-03-08",
"paid_date": "2023-03-08",
{
"invoice": {
"number": "16/03/2023-2370997", // date-ZP_Order_id https://is.gd/cOLEUX
"invoice_date": "2023-03-08", // date of the invoice from ZP
"sale_date": "2023-03-08", // date of the invoice from ZP
"paid_date": "2023-03-08", // date of the invoice from ZP
"status":"paid",
"paid_price": 13530, //combined price in grozy (Polish cents), includes vat
"client_first_name": "FirstName",
"client_last_name": "LastName",
{
"invoice": {
"client_business_activity_kind": "private_person",
"client_first_name": "FirstName",
"client_last_name": "LastName",
"payment_method": "transfer",
"services": [
{
"name": "Przykładowa Usługa",
@00pp
00pp / gist:346f57c04695f85afb3955ba658cec5d
Created December 2, 2018 14:05
2dim array flattering
array [
'one' => [
'sub_one' => 'final_value',
'sub_one2' => 'final_value2',
'sub_one3' => 'final_value3'
]
]
...