Skip to main content
POST
Add carrier note
The Add Carrier Note endpoint adds a note to a carrier. The note is listed with the carrier’s notes in Alvys and is not shown to the carrier. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.
This endpoint requires the carrier:update scope. See Authentication.

Request parameters

Request body

Alvys generates the note’s Id, saves it with NoteType General, and records your credential as CreatedBy. Notes added here cannot be edited or deleted through the API.

Plain text only

A < followed by a letter, !, / or ?, such as <b>, </p> or <!--, reads as markup and returns 400 Bad Request. Any other <, such as rate < 2.00 or <5 loads, is kept as sent.

Retry safely

Without an Idempotency-Key, every call adds a new note, so a retry after a timeout can leave two. With an Idempotency-Key, the key is tied to this carrier:
  • The first call adds the note and returns 201 Created.
  • The same key with the same Description returns that note with 200 OK and adds nothing.
  • The same key with a different Description returns 409 Conflict with a type ending in IdempotencyKeyReused. Send a new key to add another note. The same applies when the note was edited in Alvys after it was added.
  • If the note was deleted in Alvys, the same key adds it again.
An empty key, or one over 100 characters, returns 400 Bad Request.

MacroPoint

When the MacroPoint integration is on, Alvys sends a carrier’s first note to MacroPoint with the carrier’s details. A note added to a carrier that has no notes can reach MacroPoint.

Response

201 Created with the new note, or 200 OK with the existing note on a replay of the same Idempotency-Key.

Errors

Example cURL request

Example response (201 Created)


Rate limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information, see the Rate Limits section.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Headers

Idempotency-Key
string

Path Parameters

carrierId
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

Description
string
required
Required string length: 1 - 4000
Pattern: ^(?:[^<]|<(?![a-zA-Z!/?]))*$

Response

OK

Id
string | null
Description
string | null
NoteType
string | null
CreatedAt
string<date-time> | null
CreatedBy
string | null
CreatedById
string | null