Skip to content
BolderBolder Developers
Esc
↑↓navigate↵open⌘Jpreview

Send an order message or note

Adds a message to the order’s conversation, authored by the token’s user (422 on $.base without one). External messages (default) are visible to the customer; internal: true adds a staff note. notify: true (external only, 422 on $.notify otherwise) also emails the message to the customer after it is saved. The order must have a contact (422 on $.order). Unknown fields answer 422. Needs the full orders.write scope; the _own scopes get 403.

POST/orders/{order_id}/messages
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
order_idstringrequired
Request body
requiredapplication/json
bodystringrequired
min length 1 · max length 5000
internalboolean
default: false
notifyboolean
default: false
Responses
201

Message created

idinteger
bodystring
internalboolean

true for a staff note, hidden from the customer.

senderstring
authorobject | null
Show properties
idinteger
namestring
created_onstring<date-time>
422

Invalid body, unknown field, notify on a note, no user on the token, or order without contact.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.onbolder.com/v2/orders/string/messages' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "body": "Tu visita quedo agendada para el martes.",
  "notify": true
}'
Response
{
  "id": 0,
  "body": "string",
  "internal": true,
  "sender": "admin",
  "author": {
    "id": 0,
    "name": "string"
  },
  "created_on": "2019-08-24T14:15:22Z"
}

Was this page helpful?