The identifier of the thread to retrieve.
curl -i -X GET \
'https://your-instance.mirakl.net/api/inbox/threads/{thread_id}?shop_id=0'
OK
Thread authorized participants
Those are the participants who are authorized to join the thread.
Thread current participants
Those are the participants who have actually participated in the thread, meaning that they are either sender or receivers of at least one message of the thread.
These participants must be on the list of the authorized_participants
Thread "no store reply needed" actions.
{ "authorized_participants": [ { … } ], "current_participants": [ { … } ], "customer_organization": { "display_name": "string", "id": "string" }, "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "entities": [ { … } ], "id": "string", "messages": [ { … } ], "metadata": { "last_message_date": "2019-08-24T14:15:22Z", "last_sender": { … }, "shop_reply_needed_since": "2019-08-24T14:15:22Z", "total_count": 0 }, "no_store_reply_needed": [ { … } ], "topic": { "type": "string", "value": "string" } }
You may want to retrieve the threads linked to a specific entity, using both entity_type
and entity_id
.
For example, to retrieve threads for an order, use entity_type=MMP_ORDER&entity_id=my-order-1
.
Available values for entity_type
are:
MMP_ORDER
: for threads on product ordersMMP_OFFER
: for threads on offersMPS_ORDER
: for threads on service ordersMPS_SERVICE
: for threads on servicesSELLER_OPERATOR
: for threads between sellers and operatorThis resource uses seek pagination. The default value for parameter limit
is 50.
Entity type to include in result (default: include all).
Available values: MMP_ORDER, MMP_OFFER, MPS_ORDER, MPS_SERVICE, SELLER_OPERATOR
Comma separated list of Entity id to include in result (default: include all).
The entity_type must be specified to use this filter, otherwise an error 400 will be returned.
Example of an entity_id query: entity_id=order1-A,order20-A,order13-A&entity_type=MMP_ORDER
True to include message details. Limited to the last 100 messages received on each thread.
List of the channel codes to filter with, using a comma (,) as a separator.
If specified, only order messages linked to the given channels will be returned (Whatever the value of entity_type
).
Otherwise, messages will be returned regardless of their channels.
Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
curl -i -X GET \
'https://your-instance.mirakl.net/api/inbox/threads?channel_codes=string&entity_id=string&entity_type=string&page_token=string&shop_id=0&sort=string&updated_since=2019-08-24T14%3A15%3A22Z&with_messages=false'
{ "data": [ { … } ], "next_page_token": "string", "previous_page_token": "string" }
curl -i -X GET \
'https://your-instance.mirakl.net/api/inbox/threads/{attachment_id}/download?shop_id=0'