电子邮件文字替代

这是我们崭新的REST API的文档页面-并不是要找到它。此API尚未准备好供公众使用。随着我们的成长,我们正在砍伐和改变很多。因此,如果您构建使用它的东西,那么很可能在以后的更新中中断。 不要说您没有被警告!

网址:

//api.meituohu.com/v2/{objecttype}/{objectnumber}/emailtextsubstitutions

方法):

得到

回应格式:

JSON,XML

描述:

This resource returns key/value pairs for a Quote/Invoice/Customer/Purchase, which can be used as text replacements for tokens used in an email template. If a block of text in an email template contains matching 键 enclosed within two ‘#’签名,然后附上那个钥匙‘#’可以用相应的值代替。
{objecttype}{objectnumber}
行情 报价编号
发票 发票号码
顾客 客户代码
采购 采购编号

参量

名称 类型 描述
可以在一段文本中匹配的密钥
上面匹配的密钥可以替换为此值。

GET操作

返回实体的EmailTextSubstitution列表。

网址: / quotes / 10 / emailtextsubstitutions

GET的EmailTextSubstitutions响应示例


[{
    "键": "邀请函",
    "值": "33"
}, {
    "键": "CUSTREF",
    "值": ""
}, {
    "键": "TOTAL",
    "值": ""
}, {
    "键": "PAYMENTTERMS",
    "值": ""
}, {
    "键": "NAME",
    "值": ""
}, {
    "键": "COMPANY",
    "值": ""
}, {
    "键": "CONTACT",
    "值": ""
}, {
    "键": "TITLE",
    "值": ""
}, {
    "键": "FIRSTNAME",
    "值": ""
}, {
    "键": "LASTNAME",
    "值": ""
}, {
    "键": "CUSTCODE",
    "值": ""
}, {
    "键": "TEL",
    "值": ""
}, {
    "键": "FAX",
    "值": ""
}, {
    "键": "MOBILE",
    "值": ""
}, {
    "键": "CELL",
    "值": ""
}, {
    "键": "CUSTOMTEXT1",
    "值": ""
}, {
    "键": "CUSTOMTEXT2",
    "值": ""
}, {
    "键": "CUSTOMTEXT3",
    "值": ""
}, {
    "键": "CUSTOMTEXT4",
    "值": ""
}, {
    "键": "CUSTOMTEXT5",
    "值": ""
}, {
    "键": "CUSTOMTEXT6",
    "值": ""
}, {
    "键": "CUSTOMTEXT7",
    "值": ""
}, {
    "键": "CUSTOMTEXT8",
    "值": ""
}, {
    "键": "CUSTOMTEXT9",
    "值": ""
}, {
    "键": "CUSTOMTEXT10",
    "值": ""
}, {
    "键": "CUSTOMTEXT11",
    "值": ""
}, {
    "键": "CUSTOMTEXT12",
    "值": ""
}, {
    "键": "CUSTOMTEXT13",
    "值": ""
}, {
    "键": "CUSTOMTEXT14",
    "值": ""
}, {
    "键": "CUSTOMTEXT15",
    "值": ""
}, {
    "键": "CUSTOMTEXT16",
    "值": ""
}, {
    "键": "CUSTOMTEXT17",
    "值": ""
}, {
    "键": "CUSTOMTEXT18",
    "值": ""
}, {
    "键": "CUSTOMTEXT19",
    "值": ""
}, {
    "键": "CUSTOMTEXT20",
    "值": ""
}, {
    "键": "Customerportal",
    "值": ""
}, {
    "键": "PERMALINK",
    "值": ""
}]

网址: / invoices / 10 / emailtextsubstitutions


[{
    "键": "邀请函",
    "值": "1111111490"
}, {
    "键": "INVDUE",
    "值": "07\/09\/2013"
}, {
    "键": "DUEDATE",
    "值": "07\/09\/2013"
}, {
    "键": "DAYS_14",
    "值": "16\/08\/2013"
}, {
    "键": "TOTAL",
    "值": "$998.99"
}, {
    "键": "AMOUNTDUE",
    "值": "$998.99"
}, {
    "键": "PERMALINK",
    "值": "http:\/\/securedwebapp.com\/RestApi\/\/documents\/invoices\/83B7201E-1613-422F-8839-A194EF7715D1"
}, {
    "键": "PAYPAL",
    "值": "https:\/\/www.paypal.com\/cgi-bin\/webscr?currency_code=USD&cmd=_xclick&business=aatish%40kashflow.com&item_name=Invoice%20%231111111490&amount=999.00&no_shipping=0&no_note=1&bn=Kashflow_Acct_ST&invoice=1111111490&custom=23887936&lc=GB&charset=UTF%2d8"
}, {
    "键": "PAYONLINE",
    "值": "https:\/\/www.paypal.com\/cgi-bin\/webscr?currency_code=USD&cmd=_xclick&business=aatish%40kashflow.com&item_name=Invoice%20%231111111490&amount=999.00&no_shipping=0&no_note=1&bn=Kashflow_Acct_ST&invoice=1111111490&custom=23887936&lc=GB&charset=UTF%2d8"
}, {
    "键": "PAYMENTTERMS",
    "值": ""
}, {
    "键": "NAME",
    "值": "021"
}, {
    "键": "COMPANY",
    "值": "021"
}, {
    "键": "CONTACT",
    "值": "AATISH"
}, {
    "键": "TITLE",
    "值": ""
}, {
    "键": "FIRSTNAME",
    "值": "Aatish"
}, {
    "键": "LASTNAME",
    "值": ""
}, {
    "键": "CUSTCODE",
    "值": "021"
}, {
    "键": "TEL",
    "值": "912065101091"
}, {
    "键": "FAX",
    "值": ""
}, {
    "键": "MOBILE",
    "值": "912065101091"
}, {
    "键": "CELL",
    "值": "912065101091"
}, {
    "键": "CUSTOMTEXT1",
    "值": ""
}, {
    "键": "CUSTOMTEXT2",
    "值": ""
}, {
    "键": "CUSTOMTEXT3",
    "值": ""
}, {
    "键": "CUSTOMTEXT4",
    "值": ""
}, {
    "键": "CUSTOMTEXT5",
    "值": ""
}, {
    "键": "CUSTOMTEXT6",
    "值": ""
}, {
    "键": "CUSTOMTEXT7",
    "值": ""
}, {
    "键": "CUSTOMTEXT8",
    "值": ""
}, {
    "键": "CUSTOMTEXT9",
    "值": ""
}, {
    "键": "CUSTOMTEXT10",
    "值": ""
}, {
    "键": "CUSTOMTEXT11",
    "值": ""
}, {
    "键": "CUSTOMTEXT12",
    "值": ""
}, {
    "键": "CUSTOMTEXT13",
    "值": ""
}, {
    "键": "CUSTOMTEXT14",
    "值": ""
}, {
    "键": "CUSTOMTEXT15",
    "值": ""
}, {
    "键": "CUSTOMTEXT16",
    "值": ""
}, {
    "键": "CUSTOMTEXT17",
    "值": ""
}, {
    "键": "CUSTOMTEXT18",
    "值": ""
}, {
    "键": "CUSTOMTEXT19",
    "值": ""
}, {
    "键": "CUSTOMTEXT20",
    "值": ""
}, {
    "键": "Customerportal",
    "值": ""
}]

网址: / customers / cust01 / emailtextsubstitutions


[{
    "键": "PAYMENTTERMS",
    "值": "45"
}, {
    "键": "NAME",
    "值": "01"
}, {
    "键": "COMPANY",
    "值": "01"
}, {
    "键": "CONTACT",
    "值": "Melyn Gates"
}, {
    "键": "TITLE",
    "值": "Mr"
}, {
    "键": "FIRSTNAME",
    "值": "Rodriques"
}, {
    "键": "LASTNAME",
    "值": "John"
}, {
    "键": "CUSTCODE",
    "值": "01"
}, {
    "键": "TEL",
    "值": ""
}, {
    "键": "FAX",
    "值": ""
}, {
    "键": "MOBILE",
    "值": "9568712345"
}, {
    "键": "CELL",
    "值": "9568712345"
}, {
    "键": "CUSTOMTEXT1",
    "值": ""
}, {
    "键": "CUSTOMTEXT2",
    "值": ""
}, {
    "键": "CUSTOMTEXT3",
    "值": ""
}, {
    "键": "CUSTOMTEXT4",
    "值": ""
}, {
    "键": "CUSTOMTEXT5",
    "值": ""
}, {
    "键": "CUSTOMTEXT6",
    "值": ""
}, {
    "键": "CUSTOMTEXT7",
    "值": ""
}, {
    "键": "CUSTOMTEXT8",
    "值": ""
}, {
    "键": "CUSTOMTEXT9",
    "值": ""
}, {
    "键": "CUSTOMTEXT10",
    "值": ""
}, {
    "键": "CUSTOMTEXT11",
    "值": ""
}, {
    "键": "CUSTOMTEXT12",
    "值": ""
}, {
    "键": "CUSTOMTEXT13",
    "值": ""
}, {
    "键": "CUSTOMTEXT14",
    "值": ""
}, {
    "键": "CUSTOMTEXT15",
    "值": ""
}, {
    "键": "CUSTOMTEXT16",
    "值": ""
}, {
    "键": "CUSTOMTEXT17",
    "值": ""
}, {
    "键": "CUSTOMTEXT18",
    "值": ""
}, {
    "键": "CUSTOMTEXT19",
    "值": ""
}, {
    "键": "CUSTOMTEXT20",
    "值": ""
}, {
    "键": "Customerportal",
    "值": ""
}]

网址: / purchases / 25 / emailtextsubstitutions


[{
    "键": "PAYMENTTERMS",
    "值": "28"
}, {
    "键": "邀请函",
    "值": "25"
}, {
    "键": "INVDUE",
    "值": "16\/07\/2010"
}, {
    "键": "NAME",
    "值": "Honda  供应商 "
}, {
    "键": "CUSTCODE",
    "值": "08C"
}, {
    "键": "CUSTREF",
    "值": "Y785"
}, {
    "键": "CONTACT",
    "值": "Mr Tim Lee"
}, {
    "键": "TITLE",
    "值": "Mr"
}, {
    "键": "FIRSTNAME",
    "值": "Tim"
}, {
    "键": "LASTNAME",
    "值": "Lee"
}, {
    "键": "TOTAL",
    "值": "900"
}, {
    "键": "COMPANY",
    "值": "GovGle"
}, {
    "键": "TEL",
    "值": "7487897"
}, {
    "键": "FAX",
    "值": "7894654"
}, {
    "键": "MOBILE",
    "值": "95623487"
}]

了解KashFlow如何与您的业务和书籍一起使用