Marketplace API / Types
SendDirectMessageInput
InputA message to send to a member.
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 returns the first message. The key is also the clientMessageUuid of the CHAT_MESSAGE realtime event. |
mediaId | ID | One image: the asset of a READY upload that the caller created with purpose CHAT_IMAGE. A message may have an image and no text. |
orderId | ID | An order where the caller is the buyer and the recipient is the seller. An order the caller did not buy gives OrderNotFoundError. An order whose seller is not the recipient gives OrderParticipantMismatchError. |
productIds | [ID!] | 1 to 10 unique listings that the caller can see. An unknown listing gives ProductNotFoundError. |
recipientId | ID! | A member other than the caller. |
replyToMessageId | ID | A message in the same conversation that is not deleted. |
text | String | The message body. The server keeps bold, italic, link, mention span, paragraph, list and table tags, and removes every other tag. Null or empty after sanitizing: thrown VALIDATION_ERROR. |