Marketplace API / Types

SendDirectMessageInput

Input

A message to send to a member.

input SendDirectMessageInput

Input fields

FieldTypeDescription
idempotencyKeyString!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.
mediaIdIDOne image: the asset of a READY upload that the caller created with purpose CHAT_IMAGE. A message may have an image and no text.
orderIdIDAn 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.
recipientIdID!A member other than the caller.
replyToMessageIdIDA message in the same conversation that is not deleted.
textStringThe 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.