Admin API / Types
SendDirectMessageInput
InputThe direct message to send and the idempotency key.
input SendDirectMessageInputInput fields
| Field | Type | Description |
|---|---|---|
idempotencyKey | String! | A client-generated key, 1 to 200 characters after trim. A repeat with the same key and input within 24 hours returns the first message and sends no second one. The same key with another input returns IdempotencyConflictError. |
orderId | ID | An order of the store where the caller is the seller and the recipient is the buyer. The message stores it as an attachment. An order that the caller cannot see gives OrderNotFoundError. |
recipientId | ID! | A member other than the caller. The caller gives a thrown VALIDATION_ERROR. |
replyToMessageId | ID | A message in the same conversation that is not deleted. Another message gives ChatMessageNotFoundError, and so does any message when the client does not hold admin:chat:read. |
text | NonEmptyString! | Plain text. The server escapes markup. |