Pingen’s powerful, fully scalable snail mail API enables your software solution to send letters via India Post and DHL. Our SDKs allow for fast, easy integration.
Pingen’s Post API enables easy software integrations to automatically send letters via India Post and DHL.
We’re passionate about helping you automate processes. That’s why we provide our API to all customers free of charge.
Send letters via India Post in record time with our SDKs for PHP, Java, C#, and .Net.
Pingen supports ISR, ISR+, red payment slips, and QR-bill (Switzerland) as well as SEPA (Germany) and SEPA (Austria).
All of Pingen’s features are also available via our Post API and explained in detail in our documentation.
Detailed status information and real time progress updates are provided for every letter.
By reselling snail mail, integrators can unlock an exciting, new opportunity to generate additional revenues.
Sending letters via Pingen’s Post API is as easy as sending a standard email. Our API is digital and fully scalable.
Pingen’s snail mail API is designed to be flexible and straightforward, making it easy to integrate in no time. In addition to the user-friendly documentation, we also provide code examples to help you get started quickly.
require __DIR__ . '/vendor/autoload.php';
$provider = new \Pingen\Provider\Pingen(
array(
'clientId' => 'YOUR_OAUTH2_CLIENT_ID',
'clientSecret' => 'YOUR_OAUTH2_CLIENT_SECRET'
)
);
$access_token = $provider->getAccessToken('client_credentials');
$lettersEndpoint = (new \Pingen\Endpoints\LettersEndpoint($access_token))
->setOrganisationId('INSERT_YOUR_ORGANISATION_UUID_HERE');
$lettersEndpoint->uploadAndCreate(
(new \Pingen\Endpoints\DataTransferObjects\Letter\LetterCreateAttributes())
->setFileOriginalName('your_original_pdf_name.pdf')
->setAddressPosition('left')
->setAutoSend(false),
fopen('path_to_your_original_pdf_name.pdf', 'r')
);
curl \
-X GET "https://api.v2.pingen.com/file-upload" \
-H "Authorization: Bearer INSERT_YOUR_ACCESS_TOKEN_HERE"
# Extract data.attributes.url and data.attributes.url_signature from response
curl -X PUT -T path_to_your_file.pdf "INSERT_URL_FROM_INITIAL_CURL_REQUEST"
curl \
-X POST "https://api.v2.pingen.com/organisations/INSERT_YOUR_ORGANISATION_UUID_HERE/letters" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer INSERT_YOUR_ACCESS_TOKEN_HERE" \
--data-binary @- << EOF
{
"data": { \
"type": "letters", \
"attributes": { \
"file_original_name": "your_filename.pdf", \
"file_url": "INSERT_URL_FROM_INITIAL_CURL_REQUEST", \
"file_url_signature": "INSERT_URL_SIGNATURE_FROM_INITIAL_CURL_REQUEST", \
"address_position": "left", \
"auto_send": false, \
"delivery_product": "fast", \
"print_mode": "simplex", \
"print_spectrum": "color" \
} \
} \
}
EOF
The Pingen PHP Library offers everything you need to integrate our API and send snail mail via India Post and DHL. Pingen has already done the work for all PHP developers. Coming soon, we’ll release our SDKs for all other developers as well. 🚀
Our snail mail API offers much more than the classic API used by lettershops or mail service providers. With Pingen, you gain access to a fast-growing and international service that helps you send letters globally for the best price.
Already today, letters are being printed and sent locally in India, Germany, Austria, Switzerland andthe Netherlands.
Through our partnership with DHL, Pingen guarantees fast and reliable delivery to all other countries via air mail.
Pingen scales easily and is fail-safe due to our cloud and multi-site letter printing infrastructure.
With Pingen, you can also send letters via email, S3, Dropbox, Google Drive, OneDrive, or directly from services such as Odoo, ServiceNow, and more.
Thanks to our international presence and partnership with India Post and DHL, Pingen offers the fastest delivery at the most attractive prices.
Pingen offers a wide range of practical and innovative features for sending letters efficiently – locally and internationally!
Take a look at our snail mail API documentation and see how easy it is to integrate postal letters via India Post and DHL into your software solution!