How to sent pdf to your recipient easily

How to sent pdf to your recipient easily

This page gives the short answer first, then every step.

Short answer: Send POST /quickpay/mailpdf with the address, a shipping type, and a link to your PDF. The steps are below.

Before you start

Step 1

Get your API key

Sign in. Click SETTINGS, then More, then Developer Panel. On the API Settings tab, click the eye icon to show your API Key. Click the copy icon to copy it. Keep it private.

Step 2

Pick the web address (base URL)

For tests, use the sandbox: https://test.onlinecheckwriter.com/api/v3. For real payments, use the live site: https://app.onlinecheckwriter.com/api/v3. Before you go live, ask our support team to turn on the live API. If you do not, your requests can come back with Access Denied.

Step 3

Add three headers to every request

Content-Type: application/json
Accept: application/json
Authorization: Bearer YOUR_API_KEY
Replace YOUR_API_KEY with your key.

Steps

Step 4

Send the request

Give the name and address of the person. Give a shippingTypeId. Give attachmentUrl, the link to your PDF, and attachmentTitle, a name for it. You can also add a fromAddress.

POST /quickpay/mailpdf

Send this in the body of the request:

{
  "name": "New Payee",
  "company": "Tyler Payment Technologist",
  "address1": "5007 richmond rd",
  "address2": "",
  "city": "Tyler",
  "state": "TX",
  "zip": "75701",
  "phone": "111111111",
  "email": "support@onlinecheckwriter.com",
  "shippingTypeId": 3,
  "attachmentUrl": "https://www.onlinecheckwriter.com/samples/invoice/invoicesample.pdf",
  "attachmentTitle": "Invoice 1244",
  "fromAddress": {
    "name": "David Abraham",
    "company": "David LLC",
    "address1": "450 Sutter Street",
    "address2": "",
    "city": "San Francisco",
    "state": "CA",
    "zip": "94108",
    "phone": "987564128"
  }
}

You get a reply like this:

{
  "success": true,
  "data": {
    "id": "pNlkQ4rzd4wnOV0",
    "title": "Invoice 1244",
    "status": "Pending",
    "shippingType": 3,
    "toAddress": {
      "id": "rWQ8GpJPkAjD0Zz",
      "name": "New Payee",
      "company": "Tyler Payment Technologist",
      "phone": "111111111",
      "email": "support@onlinecheckwriter.com",
      "address1": "5007 richmond rd",
      "address2": "",
      "city": "Tyler",
      "state": "TX",
      "zip": "75701",
      "country": null
    },
    "fromAddress": {
      "id": "w6YmZjq0Pe5MXrx",
      "name": "David Abraham",
      "address1": "450 Sutter Street",
      "address2": "",
      "city": "San Francisco",
      "state": "CA",
  ...

Common questions

What if I do not give a return address?

Use fromAddress to give your own return address. If you leave it out, the account address is used.

What is shipping type 1?

Shipping type 1 is regular USPS First Class mail.

Is there a way to send more advanced documents?

Yes. Use the Mail Document requests. They also mail HTML documents and track them.

Where is the full API guide?

Open apiv3.onlinecheckwriter.com. It lists every request, with examples.

I need more help.

Call (408) 775-7720, use the chat box in the lower right corner of the app, or email support@onlinecheckwriter.com.

Pay your vendors with Online Check Writer

Want help? Book a demo. Our team will answer your questions.

This page gives general information. It is not legal advice.