POST api/order/mail/sendGrid
郵件發送(第三方接口)
Request Information
URI Parameters
None.
Body Parameters
OrderSendGridContractName | Description | Type | Additional information |
---|---|---|---|
sendgridrq | SendGridContract |
None. |
|
createip |
IP地址 |
string |
None. |
memberid |
用戶ID |
integer |
None. |
itemtype |
郵件類型 |
string |
None. |
docno |
訂單號 |
string |
None. |
atype |
郵件帳戶類型(啟用哪個帳戶) |
string |
None. |
companyid | string |
None. |
|
bcc | string |
None. |
|
cc | string |
None. |
|
attachfile | string |
None. |
|
actiontype | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "sendgridrq": { "personalizations": [ { "to": [ { "email": "sample string 1", "name": "sample string 2" }, { "email": "sample string 1", "name": "sample string 2" } ], "cc": [ { "email": "sample string 1", "name": "sample string 2" }, { "email": "sample string 1", "name": "sample string 2" } ], "bcc": [ { "email": "sample string 1", "name": "sample string 2" }, { "email": "sample string 1", "name": "sample string 2" } ], "subject": "sample string 1" }, { "to": [ { "email": "sample string 1", "name": "sample string 2" }, { "email": "sample string 1", "name": "sample string 2" } ], "cc": [ { "email": "sample string 1", "name": "sample string 2" }, { "email": "sample string 1", "name": "sample string 2" } ], "bcc": [ { "email": "sample string 1", "name": "sample string 2" }, { "email": "sample string 1", "name": "sample string 2" } ], "subject": "sample string 1" } ], "from": { "email": "sample string 1", "name": "sample string 2" }, "reply_to": { "email": "sample string 1", "name": "sample string 2" }, "subject": "sample string 1", "content": [ { "type": "sample string 1", "value": "sample string 2" }, { "type": "sample string 1", "value": "sample string 2" } ], "attachments": [ { "Type": "sample string 1", "Content": "sample string 2", "FileName": "sample string 3" }, { "Type": "sample string 1", "Content": "sample string 2", "FileName": "sample string 3" } ] }, "createip": "sample string 1", "memberid": 2, "itemtype": "sample string 3", "docno": "sample string 4", "atype": "sample string 5", "companyid": "sample string 6", "bcc": "sample string 7", "cc": "sample string 8", "attachfile": "sample string 9", "actiontype": "sample string 10" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
郵件發送(第三方接口)
ReturnResultOfBooleanName | Description | Type | Additional information |
---|---|---|---|
data | boolean |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": true, "code": 2, "message": "sample string 3" }