How to Send Mail via OnlineCheckWriter.com: A Step-by-Step Guide

How to Send Mail via OnlineCheckWriter.com: A Step-by-Step Guide

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

Short answer: Create a payee, get your bank account ID, create a check, add an attachment if you want, and mail the check. 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

Create a payee

The payee is the person who gets the check. If the payee is already in your account, you get the same payeeId back. Save the payeeId.

POST /payees

Send this in the body of the request:

{
  "payees": [
    {
      "name": "Alison Gambala k",
      "nickName": "",
      "company": "",
      "email": "email@test.com",
      "phone": "900244400",
      "address1": "95113 mark street rod",
      "address2": "",
      "city": "Sanjose",
      "state": "CA",
      "zip": "95113",
      "country": "US"
    }
  ]
}

You get a reply like this:

{
  "success": true,
  "message": "Successfully created",
  "data": {
    "payees": [
      {
        "payeeId": "B1y3GL6ngmjpX8z",
        "name": "Liam Montgomery",
        "nickName": "Lee",
        "company": "Montgomery Innovations",
        "email": "liam.montgomery@example.com",
        "phone": "408-555-9876",
        "address1": "4321 Redwood Drive",
        "address2": "",
        "city": "San Jose",
        "state": "CA",
        "zip": "95120",
        "country": "US",
        "entityType": null,
        "dob": "1987-11-02"
      },
      {
        "payeeId": "3Ez2GgXbpKeqQgA",
  ...

Step 5

Get your bank account ID

If you do not know your bank account ID, ask for your list of bank accounts. You can also see it in the Developer Panel, on the Bank Accounts tab.

GET /bankAccounts?perPage=&page=&term=

You get a reply like this:

{
  "success": true,
  "data": {
    "meta": {
      "total": 2,
      "currentPage": 1,
      "perPage": 10
    },
    "bankAccounts": [
      {
        "bankAccountId": "RYkWx8ePPNMKeK2Xz05",
        "name": "Maple Street Bakery LLC",
        "nickName": "Operating Account",
        "accountNumber": "123456789012",
        "bankId": "dqyYjOWOv3jRJol",
        "addressLine1": "1250 Market Street",
        "addressLine2": "Suite 400",
        "city": "San Francisco",
        "state": "CA",
  ...

Step 6

Create a check

Use your payeeId and your bank account ID. The reply gives you a checkId. Save it.

POST /checks

Send this in the body of the request:

{
  "checks": [
    {
      "bankAccountId": "{{bankAccountId}}",
      "payeeId": "",
      "categoryId": "",
      "serialNumber": "1001",
      "issueDate": "2020-10-25",
      "amount": 100,
      "memo": "First, Test check using API",
      "note": "",
      "accountNumber": "458756",
      "invoiceNumber": "2545",
      "noSign": 0,
      "noAmount": 0,
      "noDate": 0,
      "noPayee": 0,
      "voucherId": null,
      "customElements": {
        "element1": "first class tracking",
        "element2": "test sender"
      }
    },
    {
      "bankAccountId": "{{bankAccountId}}",
      "payeeId": "",
      "categoryId": "",
      "serialNumber": "1002",
      "issueDate": "2020-10-25",
      "amount": 200,
      "memo": "First, Test check using API...",
      "note": "",
      "accountNumber": "458757",
      "invoiceNumber": "2546",
      "noSign": 0,
      "noAmount": 0,
      "noDate": 0,
      "noPayee": 0,
      "voucher": {
        "voucherNumber": "1000",
        "memo": "Test Memo",
        "date": "2020-10-20",
        "voucherItems": [
          {
            "invoiceNumber": 858,
            "name": "Product 1",
            "description": "Product Description 1",
            "quantity": 10,
            "unitCost": 5,
            "total": 200
          },
          {
            "invoiceNumber": 540,
            "name": "Product 1",
            "description": "Product Description 1",
            "quantity": null,
            "unitCost": null,
            "total": 350
          }
        ]
      }
    }
  ]
}

You get a reply like this:

{
  "success": true,
  "message": "succesfully created",
  "data": {
    "checks": [
      {
        "checkId": "yd6LeMEkVYeE8Dx",
        "serialNumber": "1001",
        "amount": "100.00",
        "amountInWord": " one hundred ",
        "date": "10/25/20",
        "status": 0,
        "memo": "First, Test check using API",
        "accountNumber": "458756",
        "invoiceNumber": "2545",
        "bankAccount": {
          "bankAccountId": "yd6LeMYmdQeE8Dx",
          "name": "Demo Bank Account 1"
        },
        "payee": {
          "payeeId": "Xw2lx48MdGMzWyD",
          "name": "Alison"
        },
        "category": {
          "categoryId": "MLbz3Aj3ReVw6Ev",
          "name": null
        }
      },
      {
        "checkId": "9MqkGWW2gPGD7Ry",
        "serialNumber": "1002",
  ...

Step 7

Add an attachment (optional)

If you want to send a paper with the check, add an attachment to the check.

POST /checks/{checkId}/attachments

Send this in the body of the request:

attachment: 

Step 8

Mail the check

Send the checkId to the mail request. We print and mail the check.

POST /mailchecks

Send this in the body of the request:

{
  "mailChecks": [
    {
      "checkId": "bL3YGddEnmG1X7w",
      "shippingTypeId": 3,
      "paperTypeId": 7,
      "informTypeId": 10,
      "enableSmsInform": 0,
      "enableEmailInform": 1,
      "payeeEmail": "email@test.com",
      "payeePhone": "123456789"
    }
  ]
}

You get a reply like this:

{
  "success": true,
  "message": "successfully mailed"
}

Common questions

Can I see the cost before I mail?

Yes. Use the Calculate Fee request in the mail check group.

Can I track the check?

Yes. Use the Track Mail Check request with the checkId.

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.