PostalMethod Live HelpAcceptDecline Close
Would you like to chat with our support team?
PostalMethods Live Help
Home
Live Help
  • 1-866-460-3621
  • Contact Us
  • About Us
  • Login
  • Home
  • Tour
  • Send Mail From...
  • Postal API
  • FAQ
  • Support Forum
  • Pricing & Buy
  • Developer Quick Start
  • Developers' Guide
  • Reference Manual
  • Code Samples
You are here: Home > Postal API > Code Samples > Java

Developer?

Get a full development account, for free:

Click to Register

What's included?

  • Free and unlimited account
  • No credit card required
  • View and track your mail online
  • Code samples for many environments
  • Free, high-level and quick support
  • Limitation: mail posting is only simulated
  • To send mail, just add funds to your account. No need for code changes

Java

Download Download Java samples [.zip] (includes .jar file) | Standalone .jar file

These samples demonstrate how to consume PostalMethods services from Java - how to send a letter, check its delivery status, cancel it, etc.

  • Java: Try Me First
  • Java: Send A Letter With SendLetter()
  • Java: Send A Letter with SendLetterAndAddress()
  • Java: Send A Letter By Providing The Document Content
  • Java: Send A Letter With Binary Content In Memory
  • Java: Send A Letter Using A Template
  • Java: Get The Generated Letter with GetPDF()
  • Java: Get The Status Of Letters And Postcards with GetStatus()
  • Java: Get Letters And Postcards' Delivery Details with GetDetails()
  • Java: Get Letters And Postcards' Production Details with GetDetailsExtended()
  • Java: Cancel Delivery Of A Letter with CancelDelivery()
  • Java: Delete an uploaded file using DeleteUploadedFile()
  • Java: Get Details Of Uploaded Files Using GetUploadedFileDetails()
  • Java: Upload A File For Future Use Using UploadFile()
  • Deprecated
Java: Try Me First ›
  • About
  • Contact Us
  • Partners
  • News
  • Privacy Policy
  • Terms of Service
  • 1-866-460-3621