eBay Post-Order APIVersion 2

Send Inquiry Message

POST /post-order/v2/inquiry/{inquiryId}/send_message

Enables one party to communicate with the other about the progress of the specified Item Not Received (INR) inquiry.

Input

See also Samples.

Resource URI (production)

POST https://api.ebay.com/post-order/v2/inquiry/{inquiryId}/send_message

URI parameters

Parameter Type Required? Meaning
inquiryId string Required The unique identifier of the inquiry being discussed.

Note: This is the value that was returned by the POST /post-order/v2/inquiry/ call in an HTTP location code: /post-order/v2/inquiry/{INQUIRYID}, in which INQUIRYID identifies the newly created inquiry.


HTTP request headers

All requests made to eBay REST operations require you to provide the authorization HTTP header for authentication.
See HTTP request headers for details.



Authorization

This call uses standard authorization tokens. See Making a Call for details.

Payload model

The following lists all fields that could be included in the request.

{ /* SendMessageRequest */
"message":
    { /* Text */
    "content": string,
    "language": string,
    "translatedFromContent": string,
    "translatedFromLanguage": string
    }
}

Request field descriptions



Input Container/Field Type Occurrence Meaning
message Text Required This container is used to input the text that comprises the message being sent to the order partner.
message.content string Conditional This field displays the actual textual content in the language specified in the language field. This field is always used for containers using the Text type.
message.language string Conditional This two-letter code indicates the language used to display the content in the content field. The language will default to the language used on the eBay site if a specific language is not specified through the Accept-Language HTTP header. This field is always used for containers using the Text type.

Applicable values are from LanguageEnum:See language.
message.translatedFromContent string Conditional If language translation/localization is required, this field displays the actual textual content in the language specified in the translatedFromLanguage field. If language translation was not required, this field is not applicable.
message.translatedFromLanguage string Conditional If language translation/localization is required, this two-letter code indicates the language used to display the content in the translatedFromContent field. If language translation was not required, this field is not applicable.

Applicable values are from LanguageEnum:See translatedFromLanguage.

Output

See also Samples.

Payload model

This call has no response payload.



Samples

New to making API calls? Please see Making a Call.

Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.

Sample: Basic Call

Send a message to order partner regarding INR inquiry.

Description

In this sample, the buyer is sending a message to the seller. The buyer wants to inform the seller that he still wants the item and will close the INR inquiry once the item is received.

Input

The buyer passes in the inquiry ID value as a path parameter to identify the INR inquiry for which a message is being sent to the seller. The buyer wants to inform the seller that he still wants the item and will close the INR inquiry once the item is received. The buyer supplies this message through the message container.

URL format. See also the non-wrapped version of this URL.

POST https://api.ebay.com/post-order/v2/inquiry/5002661989/send_message
{ 
  "message":
  { 
     "content": "I still want this item, and if you will send it to me, I will close the INR inquiry once the item is received."
  }
}

Output

There is no output payload with this response. A successful call contains an HTTP status code of 200.

JSON format.



Change History

Change Date Description