Free online invoicing software
Log in
Create an account
To renew your account, make a payment.
If you experience payment problems, contact us.

Afaktury.pl API

This page contains a detailed description of the API for afaktury.pl
For the API to work properly, you need a key, which can be found under
Settings > API Key

Usage example

This is sample text

<?php
$headers = ["Accept: application/json",
	"Content-Type: application/json",
	"afakturyId: 1234567890",
	"afakturyKey: apiPassword12345"
];
$data = ["name" => "Name",
	"body" => "Body"
];
$dataJSON = json_encode($data);

$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $dataJSON);
$headers[] = "Content-Length: " . strlen($dataJSON);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, "https://afaktury.pl/api/annotation");
$output = curl_exec($ch);
curl_close($ch);
?>
<?php
$headers = ["Accept: application/json",
	"Content-Type: application/json",
	"afakturyId: 1234567890",
	"afakturyKey: apiPassword12345"
];
$data = ["id" => "1"
];
$dataJSON = json_encode($data);

$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, "https://faktura/api/product?" . http_build_query(["data" => $dataJSON]));
$output = curl_exec($ch);
curl_close($ch);
?>
Please wait...
January|February|March|April|May|June|July|August|September|October|November|December
Mon|Tue|Wed|Thu|Fri|Sat|Sun
Remove date
SEND FEEDBACK
Internal service error, code E01. Please contact technical support.
The most common cause of this error is a lost internet connection. Refresh the current webpage.
If the problem persists, contact us.
The action was completed successfully.
You are not the owner of this item.
Invalid data: incorrect Tax ID or account number
You do not have permission to perform this action.
This field cannot be empty.
No results.
The verification code is incorrect
Internal service error, code E04. Please contact technical support.
The form could not be sent. Check that all required fields have been completed
A0kvhHwltOyGToJwhw2HBKN+63eGVrFTBP3t2ZZgBK5JlgER/DAoEpMJ8m0ECzka
The account is awaiting two-factor authentication confirmation