Skip to Content
FeaturesMessaging

SMS

Overview

Asset uses text messages to reach a Business owner where they already are, and to let them send things back without logging in. SMS is used for three things:

UseDirectionWhat happens
RequestsAsset to the ownerAssets sends request for data it needs from the owner.
Document forwardingThe owner to AssetThe owner forwards the information to Asset .

All run on the Business' phone number. A Business can have several phone numbers, and a number has to be verified before Asset will text it or accept documents from it.

Phone numbers

Add a number with POST /v0/business/{business_id}/phone-numbers. Asset texts a six-digit code to it, and the number counts as verified once the code is submitted with POST /v0/business/{business_id}/phone-numbers/{phone_number_id}/verify. A code expires after 10 minutes, and stops working after 5 wrong guesses. Ask for a new one with .../verification-code.

If your product has already confirmed the number, add it as verified and Asset sends no code.

Asset sends the texts from a US or a Canadian number, picked from the owner's area code.

Customer communication

Asset sends the owner two kinds of message that aren't requests:

  • Verification codes, when a phone number is added or a new code is requested.
  • An acknowledgement, when the owner texts in a document: "We got your document and we're processing it. Thanks!" Asset sends it once. It is never resent, so a failed acknowledgement doesn't hold up the document.

Owners can opt out at any time by replying STOP, or one of the other standard stop words. From then on Asset sends nothing to that number. Replying START turns messages back on.

An opt-out belongs to the owner and overrides your settings. Turning notifications back on through the API does not undo it. Only the owner can, by replying START.

Receipt Requests

When a transaction needs a receipt, Asset creates a Receipt Request Task for the owner. Instead of waiting for the owner to open an app, Asset can text them about it.

Asset sends one text a day, and only on a day when new requests have arrived. A day with nothing new gets no text. It reports what came in since the last text, so an owner who ignores a request is not nagged about it again the next day.

You have 3 new receipts to upload: $52.30 at Home Depot on Sep 5; $18.00 at Shell on Sep 6 and 1 more. Reply to this message with a photo of each receipt to upload them.

The text names up to two receipts, so the owner can tell which purchases it means, and counts the rest.

Turn it on

Daily texts are opt-in. A Business gets them once it has an SMS notification profile:

PATCH /v0/business/{business_id}/notifications/sms

Request ParameterDescription
phone_number_idRequired when you first set it up. One of the Business' own phone numbers. Texts go nowhere until it is verified.
is_enabledOptional. Set to false to pause the texts without removing the profile.
send_atOptional. The local time the text is sent. Defaults to 09:00.
timezoneOptional. The time zone send_at is in, as an IANA name such as America/New_York.

The text goes out in the first hourly check at or after send_at, and Asset will still send a late one for up to three hours. GET on the same path returns the profile, and DELETE removes it, which turns the texts off.

Document forwarding

The owner can text a photo or file to Asset, and Asset treats it like an uploaded document. This is also how an owner answers a request: they reply to the daily text with a photo of the receipt.

  1. Asset recognizes the sender. It matches the phone number the text came from to a Business with that number verified. If the number belongs to no Business, the message is ignored. If more than one Business has it, Asset uses the one verified most recently.
  2. Asset stores the attachments. Each photo or file is saved, and the owner gets the acknowledgement.
  3. Asset ingests each one. Every attachment becomes a Document with the source sms, and goes through the same processing as one uploaded with Upload Documents for a Business. Asset works out what kind of document it is, for example a receipt, a bank statement or a bill.

What to expect:

  • Several files in one text are each ingested separately.
  • The same file sent twice is ingested once. A file the Business has already uploaded by any route is skipped as a duplicate.
  • Files Asset can't use, because the type isn't supported or the file is too large, are skipped. The other attachments in the same text are still processed.
  • The result is on the Document. Follow its status, and use the DOCUMENT_PROCESSED webhook to know when it finishes.

Questions? Reach out via our Contact form.

On this page