| title | Cash Advance Associations v4 |
|---|---|
| layout | reference |
The Cash Advance Associations v4 API can be used for operations related to associating and disassociating cash advances with an expense report.
Access to this documentation does not provide access to the API.
- Concur Expense Professional Edition
- Concur Expense Standard Edition
| Name | Description | Endpoint |
|---|---|---|
expense.report.read |
Read information about cash advances associated with a report. | GET |
expense.report.readwrite |
Read and write information about cash advances associated with a report. | GET, POST, DELETE |
SAP Concur clients must purchase the Concur Expense cash advance feature in order to use this API and use the Cash Advance v4.1 APIs to create cash advances.
Please contact your SAP Concur representative for more information.
This API supports both company level and user level access tokens.
Returns cash advance IDs associated with the specified report.
expense.report.read - Refer to Scope Usage for full details.
https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances| Name | Type | Format | Description |
|---|---|---|---|
| reportId | string |
path | The unique identifier of the report. |
| contextType | string |
query | The access level of the Concur user, which determines the form fields they can view/modify. Only used with User JWT. Available values : traveler, manager, processor. Default is traveler. |
- Request: None
- Response: CashAdvancesResponse
- RFC 7231 Accept-Language
- RFC 7231 Content-Type
- RFC 7231 Content-Encoding
- RFC 7235 Authorization - Bearer Token that identifies the caller. This is the Company or User access token.
curl --location --request GET 'https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json'200 OK
{
"cashAdvances": [
{
"id": "4a205b23-9d47-413f-9eeb-cd7245b75a6a"
},
{
"id": "75e1fbe2-7de8-467f-9f6f-67073908459b"
}
]
}Associates the specified cash advance(s) with the specified report. Replaces all existing associated cash advance(s) of the report with the provided payload.
Any invalid Cash Advance Ids will result in a failed action and no update will occur.
expense.report.readwrite - Refer to Scope Usage for full details.
https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances| Name | Type | Format | Description |
|---|---|---|---|
| reportId | string |
path | The unique identifier of the report. |
| body | CashAdvanceRequest |
application/json | The request body containing the cash advances to associate. |
- Request: CashAdvanceRequest
- Response: CashAdvancePostResponse
- RFC 7231 Accept-Language
- RFC 7231 Content-Type
- RFC 7231 Content-Encoding
- RFC 7235 Authorization - Bearer Token that identifies the caller. This is the Company or User access token.
curl --location --request POST 'https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cashAdvanceIds": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'201 Created
{
"uri": "https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances"
}Disassociate the specified cash advance(s) from the specified report.
expense.report.readwrite - Refer to Scope Usage for full details.
https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances?cashAdvanceIds={cashAdvanceId}| Name | Type | Format | Description |
|---|---|---|---|
| reportId | string |
path | The unique identifier of the report. |
| cashAdvanceIds | List<String> |
query | The unique identifier(s) of the cash advances to disassociate with the report |
- Request: None
- Response: None
- RFC 7231 Accept-Language
- RFC 7231 Content-Type
- RFC 7231 Content-Encoding
- RFC 7235 Authorization - Bearer Token that identifies the caller. This is the Company or User access token.
curl --request DELETE 'https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances?cashAdvanceIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&cashAdvanceIds=75e1fbe2-7de8-467f-9f6f-67073908459b' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json' 204 No Content| Name | Type | Format | Description |
|---|---|---|---|
| id | string | uuid | The associated cash advance Id. |
| Name | Type | Format | Description |
|---|---|---|---|
| cashAdvances | array | CashAdvanceResponse | List of the associated cash advance objects. |
| Name | Type | Format | Description |
|---|---|---|---|
| cashAdvanceIds | array | uuid | List of the associated cash advance ids |
| Name | Type | Format | Description |
|---|---|---|---|
| uri | string | - | The href to retrieve the cash advance associations |