Skip to main content
POST
Send a message to a debtor

Authorizations

Authorization
string
header
required

OAuth2 access token or static API token. See Authorization for how to obtain one.

Body

Send a message to a debtor

administration_id
string
required

Administration identifier

message
object
required
debtor_number
string

Number of the debtor to send a message to

debtor_identifier
string

Identifier of the debtor to send a message to

invoice_number
string

Number of the invoice to send a message to

invoice_identifier
string

Identifier of the invoice to send a message to

credit_case_number
string

Number of the credit case to send a message to

Response

Message

CustomerApi_V1_MessageEntity model

sender_type
string
required

Sender type (creditor|debtor)

administration_id
string
required

Owning administration identifier

id
string
required

Unique identifier

updated_at
string<date-time>
required

Timestamp at which the message was last updated

attachments
object[]

Attachments of the message (request with the 'fields' parameter)

origin
enum<string>

Where the message came from: user (sent by a user of the creditor), api (sent through this API), auto_reply (automatic reply of the inbox), system (sent automatically by Payt), debtor_portal (sent by the debtor in the debtor portal) or email (received by email). Empty when unknown, which can be the case for older messages

Available options:
api,
auto_reply,
debtor_portal,
email,
system,
user
subject
string

Message subject

read_by_user
object

User who marked the message as read

sent_by_user
object

Creditor user who sent the message

credit_case_id
string

Associated credit_case identifier

debtor_id
string

Associated debtor identifier

invoice_id
string

Associated invoice identifier

content
string

The content of the message (request with the 'fields' parameter)

sent_at
string<date-time>

Timestamp at which the message was sent

received_at
string<date-time>

Timestamp at which the message was received

read_at
string<date-time>

Timestamp at which the message was first read (please note that for some mail clients this field is not filled when an email is read)

archived_at
string<date-time>

Timestamp at which the message's conversation was archived in the inbox; archiving applies to the whole conversation and is undone when the debtor replies (request with the 'fields' parameter)