Saves the that can be enabled/disabled in general options to display specific fields when claiming for an expense
Name | Description | Additional information |
---|---|---|
request | The Field Setting request |
Define this parameter in the request body. |
{ "Code": "sample string 1", "DisplayAs": "sample string 2", "DisplayForCash": true, "DisplayForCreditCard": true, "DisplayForPurchaseCard": true, "DisplayOnIndividualItem": true, "MandatoryForCash": true, "MandatoryForCreditCard": true, "MandatoryForPurchaseCard": true }
<GeneralOptionsDisplayFieldSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types"> <Code>sample string 1</Code> <DisplayAs>sample string 2</DisplayAs> <DisplayForCash>true</DisplayForCash> <DisplayForCreditCard>true</DisplayForCreditCard> <DisplayForPurchaseCard>true</DisplayForPurchaseCard> <DisplayOnIndividualItem>true</DisplayOnIndividualItem> <MandatoryForCash>true</MandatoryForCash> <MandatoryForCreditCard>true</MandatoryForCreditCard> <MandatoryForPurchaseCard>true</MandatoryForPurchaseCard> </GeneralOptionsDisplayFieldSetting>
Sample not available.
{ "Item": { "Code": "sample string 1", "DisplayAs": "sample string 2", "DisplayForCash": true, "DisplayForCreditCard": true, "DisplayForPurchaseCard": true, "DisplayOnIndividualItem": true, "MandatoryForCash": true, "MandatoryForCreditCard": true, "MandatoryForPurchaseCard": true }, "ResponseInformation": { "Errors": [ { "ErrorCode": "sample string 1", "Message": "sample string 2" }, { "ErrorCode": "sample string 1", "Message": "sample string 2" }, { "ErrorCode": "sample string 1", "Message": "sample string 2" } ], "Status": 0, "Links": [ { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": true }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": true }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": true } ] } }
<GeneralOptionsDisplayFieldSettingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses"> <ResponseInformation xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common"> <Errors> <ApiErrorDetail> <ErrorCode>sample string 1</ErrorCode> <Message>sample string 2</Message> </ApiErrorDetail> <ApiErrorDetail> <ErrorCode>sample string 1</ErrorCode> <Message>sample string 2</Message> </ApiErrorDetail> <ApiErrorDetail> <ErrorCode>sample string 1</ErrorCode> <Message>sample string 2</Message> </ApiErrorDetail> </Errors> <Links> <Link> <Href>sample string 2</Href> <IsTemplated>true</IsTemplated> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>sample string 2</Href> <IsTemplated>true</IsTemplated> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>sample string 2</Href> <IsTemplated>true</IsTemplated> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> </Links> <Status>Failure</Status> </ResponseInformation> <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:DisplayAs>sample string 2</d2p1:DisplayAs> <d2p1:DisplayForCash>true</d2p1:DisplayForCash> <d2p1:DisplayForCreditCard>true</d2p1:DisplayForCreditCard> <d2p1:DisplayForPurchaseCard>true</d2p1:DisplayForPurchaseCard> <d2p1:DisplayOnIndividualItem>true</d2p1:DisplayOnIndividualItem> <d2p1:MandatoryForCash>true</d2p1:MandatoryForCash> <d2p1:MandatoryForCreditCard>true</d2p1:MandatoryForCreditCard> <d2p1:MandatoryForPurchaseCard>true</d2p1:MandatoryForPurchaseCard> </Item> </GeneralOptionsDisplayFieldSettingResponse>