注意:查找较新的3.0版本在这里。
费用分录出席者管理出席者与费用报告和分录之间的关系,用于指定的费用分录。此资源不包括完整的参与者信息,可以使用Get参会者函数访问这些信息。
https://www.concursolutions.com/api/expense/expensereport/v2.0/report/ {reportID} / {entryID} /与会者/条目
这允许开发人员指定哪些现有参与者与指定的条目相关联。它还为开发人员提供了为Entry-Attendee关联提供值的选项。请求中的参与者列表将替换任何现有的相关参与者,因此开发人员必须在请求中包含所有参与者。此函数不能用于创建新的参与者。
参数 | 必需的/可选 | 描述 |
---|---|---|
{_reportId_} |
要求 | 费用报告的唯一标识符。控件在reporttid元素中返回此值得到报告细节函数。 |
{_entryId_} /与会者 |
要求 | 费用条目和参会者关键字的唯一标识符。属性在ReportEntryID元素中返回该值得到报告细节函数。 |
应用程序/ xml
application / json
XML:请求将包含一个EntryAttendees带有出席者子元素,用于与条目关联的每个参与者。
JSON:请求字符串将包含与条目相关联的每个参与者的对象。
请求必须包括与条目相关的所有参与者。若要分离先前附加的与会者,请使用排除该与会者的Put请求。该函数始终只关联Put中指定的参与者。要不修改元素或名称/值对值,请提供一个空值(XML)或空值(JSON),或使用与您在获取费用入账响应。
的出席者元素(XML)或出席者对象(JSON)必须包含以下所有元素(XML)或名称/值对(JSON):
元素名称 | 数据类型 | 描述 |
---|---|---|
量 | 小数 | 分配给该与会者的进场交易金额的部分。 |
AssociatedAttendeeCount | int | 与此与会者关联的与会者的计数。计数大于1表示有与该参与者关联的未命名参与者。 |
AttendeeID | 字符串 | 与会者的唯一标识符。 |
EntryAttendeeCustom1 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom2 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom3 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom4 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom5 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
应用程序/ xml
application / json
将https://www.concursolutions.com/api/expense/expensereport/v2.0/report/9d8ea1kolesis293mn38dh美元/ 8 sle90wikl3h /条目halwnk lakdjw83美元/参会者HTTP/1.1授权:OAuth{访问令牌}内容类型:应用程序/ xml
< EntryAttendeesxmlns =“http://www.concursolutions.com/api/expense/expensereport/2012/07”xmlns:我=“http://www.w3.org/2001/XMLSchema-instance”><出席者>< >数量2422.00000000< / >数量< AssociatedAttendeeCount >1< / AssociatedAttendeeCount >< AttendeeID >nFaAj0ncBso0sBd8ejqrxLHz1FfmhJ69b< / AttendeeID >< EntryAttendeeCustom1 >fg6rt< / EntryAttendeeCustom1 >< EntryAttendeeCustom2 >9808< / EntryAttendeeCustom2 >< EntryAttendeeCustom3 >64564 drd< / EntryAttendeeCustom3 >< EntryAttendeeCustom4 >352年dsxcvs< / EntryAttendeeCustom4 >< EntryAttendeeCustom5我:nil =“真正的”/>< /与会者>< / EntryAttendees >
将https://www.concursolutions.com/api/expense/expensereport/v2.0/report/9d8ea1kolesis293mn38dh美元/ 8 sle90wikl3h /条目halwnk lakdjw83美元/参会者HTTP/1.1授权:OAuth{访问令牌}内容类型:application / json
[{“AttendeeID”:“nFaAj0ncBs puDs5XxZfOc6L5go8EJIueY美元”,“数量”:“807.33000000”,“AttendeeCount”:“0”,“Custom1”:“脱硫”,“Custom2”:“7686”,“Custom3”:“89080990-90-5464”,“Custom4”:“56 sdsd科幻”,“Custom5”:零},{“AttendeeID”:“nFaAj0ncBso0sBd8ejqrxLHz1FfmhJ69b”,“数量”:“707.33000000”,“AttendeeCount”:“0”,“Custom1”:“fg6rt”,“Custom2”:“9808”,“Custom3”:“64564 drd”,“Custom4”:“352 dsxcvs”,“Custom5”:零}]
200好了
为指定的费用分录检索费用分录参与者。此功能需要v2.0费用输入与会者资源。
参数 | 必需的/可选 | 描述 |
---|---|---|
{_reportId_} |
要求 | 费用报告的唯一标识符。属性中返回该值ReportID元素的Get Report Details函数。 |
{_entryId_} /与会者 |
要求 | 费用条目和参会者关键字的唯一标识符。属性中返回该值ReportEntryID元素的Get Report Details函数。 |
应用程序/ xml
application / json
应用程序/ xml
application / json
这个请求将返回一个与会者带有出席者子元素。的出席者元素将具有以下子元素。
元素名称 | 数据类型 | 描述 |
---|---|---|
量 | 小数 | 分配给该与会者的进场交易金额的部分。 |
AssociatedAttendeeCount | int | 与此与会者关联的与会者的计数。计数大于1表示有与该参与者关联的未命名参与者。 |
AttendeeID | 字符串 | 与会者的唯一标识符。 |
EntryAttendeeCustom1 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom2 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom3 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom4 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
EntryAttendeeCustom5 | 字符串 | Entry-Attendee自定义字段1-5的值。根据配置情况不同。 |
得到https://www.concursolutions.com/api/expense/expensereport/v2.0/report/nxxKgLlnROz3zHJBCRksaas23dsfs/entry/n7We3qWw99u1KoWTMaLhSCpXBYzQ1UDhn美元/参会者HTTP/1.1授权:OAuth{访问令牌}
得到https://www.concursolutions.com/api/expense/expensereport/v2.0/report/nxxKgLlnROz3zHJBCRksaas23dsfs/entry/n7We3qWw99u1KoWTMaLhSCpXBYzQ1UDhn美元/参会者HTTP/1.1授权:OAuth{访问令牌}
HTTP/1.1 200 OK内容类型:application/xml
< EntryAttendeesxmlns =“http://www.concursolutions.com/api/expense/expensereport/2012/07”xmlns:我=“http://www.w3.org/2001/XMLSchema-instance”><出席者>< >数量2422.00000000< / >数量< AssociatedAttendeeCount >1< / AssociatedAttendeeCount >< AttendeeID >nFaAj0ncBso0sBd8ejqrxLHz1FfmhJ69b< / AttendeeID >< EntryAttendeeCustom1 >医疗< / EntryAttendeeCustom1 >< EntryAttendeeCustom2 >北美< / EntryAttendeeCustom2 >< EntryAttendeeCustom3 >加拿大< / EntryAttendeeCustom3 >< EntryAttendeeCustom4 >温哥华< / EntryAttendeeCustom4 >< EntryAttendeeCustom5我:nil =“真正的”/>< /与会者>< / EntryAttendees >
HTTP/1.1 200 OK内容类型:application/json
[{“AttendeeID”:“nFaAj0ncBs puDs5XxZfOc6L5go8EJIueY美元”,“数量”:“807.33000000”,“AttendeeCount”:“0”,“Custom1”:“医疗”,“Custom2”:“北美”,“Custom3”:“加拿大”,“Custom4”:“温哥华”,“Custom5”:零},{“AttendeeID”:“nFaAj0ncBso0sBd8ejqrxLHz1FfmhJ69b”,“数量”:“707.33000000”,“AttendeeCount”:“0”,“Custom1”:“医疗”,“Custom2”:“北美”,“Custom3”:“加拿大”,“Custom4”:“温哥华”,“Custom5”:零}]