Skip to navigation

Send an order message

Writes a text message in one of the creator’s order conversations, as the creator.

What the buyer sees

The message is stored as the creator’s (senderRole: CREATOR), with a source and authorship decided by EVVA. The buyer sees an ordinary creator message: no source, authorship or id reaches the buyer. Only text can be sent.

Authorship

The request must declare authorship (see message authorship):

  • AI_AUTOMATED needs write:messages:automated, and the creator’s account must allow BULK_MESSAGING.
  • HUMAN_AUTHORED or AI_DRAFTED_HUMAN_SENT needs operatorRef and write:messages:operator, for a live operator in the agency’s CRM.

Idempotency

The Idempotency-Key header is optional. A retry with the same key replays the stored message. When the send limits refuse a message, nothing is written and a keyed request records nothing, so its retry is a fresh send. See rate limits.

Errors

  • 400 AUTHORSHIP_REQUIRED — authorship is missing.
  • 400 AUTHORSHIP_INVALID — the value is not one your application may declare.
  • 403 AUTHORSHIP_NOT_PERMITTED — the creator’s consent does not cover the declared authorship.
  • 403 CREATOR_SUSPENDED — an automated message for a creator whose account does not allow BULK_MESSAGING.
  • 409 IDEMPOTENCY_KEY_REUSED — the key was already used for a different request.
  • 429 TOO_MANY_MESSAGES — a send limit is full. Nothing was written; wait Retry-After.

Required scopes: write:orders.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:write:orders

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

orderIdstringRequired>=1 character
The order reference. Another creator's order, or one the creator's account bought, answers 404.

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Idempotency-KeystringOptionalformat: "^[A-Za-z0-9_-]*$"<=128 characters

Optional on the other order writes: the same semantics as RefundIdempotencyKey when present; blank means no key.

Request

This endpoint expects an object.
bodystringRequired>=1 character
The creator route's own bound and normalisation apply.
authorshipenumOptional
REQUIRED for an application.
Allowed values:
operatorRefstringOptional1-64 characters

The external CRM’s opaque operator id — required with HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT, refused otherwise.

Response

Sent, or a replay of the stored message for the same Idempotency-Key.

messageobject

An order message as the agency sees it: the ordinary message plus who sent it and how it was written. The buyer never sees these fields.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error