From 271ece7deeae78215ef93645fbdc0b2b3fcf8ab8 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Mon, 31 Mar 2025 16:41:06 -0700 Subject: [PATCH 01/10] Create v4.expense-cash-advance-associations.markdown --- ...expense-cash-advance-associations.markdown | 251 ++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown new file mode 100644 index 000000000..18216314c --- /dev/null +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -0,0 +1,251 @@ +# Expense Cash Advance Associations v4 + +The Expense Cash Advance Associations v4 API can be used for operations related to associating and dissociating cash advances with an expense report. + +## Limitations + +Access to this documentation does not provide access to the API. + +## Products and Editions + +* Concur Expense Professional Edition +* Concur Expense Standard Edition + +## Scope Usage + +| 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. | POST, DELETE | + +## Dependencies + +- SAP Concur clients must purchase Concur Expense in order to use this API. User based API requires the use of the [Identity v4 API](/api-reference/profile/v4.identity.html). +- SAP Concur clients must purchase the Expense Cash Advance feature in order to use this API and use the v4.1 Cash Advance APIs to create cash advances. + +Please contact your SAP Concur representative for more information. + +## Access Token Usage + +This API only supports company and User JWT access tokens. + +## Get Cash Advance Associations + +Returns cash advance IDs associated with the specified report. + +### Scopes + +`expense.report.read` - Refer to [Scope Usage](#scope-usage) for full details. + +### Request + +#### URI Template + +```shell +GET /expensereports/v4/reports/{reportId}/cashAdvances +``` + +#### Parameters + +| Name | Type | Format | Description | +|----------|----------|--------|--------------------------------------| +| reportId | `string` | path | The unique identifier of the report. | + +#### Headers + +* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) +* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) +* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) +* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. + This is the Company or User access token. +* +### Response + +#### Status Codes + +* [200 OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) +* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) +* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) +* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) +* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) +* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) + +### Example + +#### Request + +```shell +curl --location --request GET 'https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances' \ +--header 'Authorization: Bearer {access_token}' \ +--header 'Content-Type: application/json' +``` + +### Response + +#### 200 OK + +```shell +200 OK + +{ + "cashAdvances": [ + { + "id": "4a205b23-9d47-413f-9eeb-cd7245b75a6a" + }, + { + "id": "75e1fbe2-7de8-467f-9f6f-67073908459b" + } + ] +} +``` + +## Associate Cash Advances with Report + +Associates the specified cash advance(s) with the specified report. + +### Scopes + +`expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details. + +### Request + +#### URI Template + +```shell +POST /expensereports/v4/reports/{reportId}/cashAdvances +``` + +#### Parameters + +| Name | Type | Format | Description | +|----------|----------|--------|--------------------------------------| +| reportId | `string` | path | The unique identifier of the report. | +| body | `AssociateRequest` | application/json | The request body containing the cash advances to associate. | + +#### Headers + +* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) +* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) +* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) +* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. + This is the Company or User access token. + +### Response + +#### Status Codes + +* [201 OK](https://tools.ietf.org/html/rfc7231#section-6.3.2) +* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) +* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) +* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) +* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) +* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) + +### Example + +#### Request + +```shell +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" + ] +}' +``` + +### Response + +#### 201 Created + +```shell +200 Created + +{ + "uri": "https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances" +} +``` + +## Disassociate Cash Advances with Report + +Disassociate the specified cash advance(s) from the specified report. + +### Scopes + +`expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details. + +### Request + +#### URI Template + +```shell +DELETE /expensereports/v4/reports/{reportId}/cashAdvances +``` + +#### Parameters + +| Name | Type | Format | Description | +|----------|----------------|--------|--------------------------------------| +| reportId | `string` | path | The unique identifier of the report. | +| cashAdvanceIds | `List` | query | The unique identifier(s) of the cash advances to disassociate with the report | + +#### Headers + +* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) +* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) +* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) +* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. + This is the Company or User access token. + +### Response + +#### Status Codes + +* [204 OK](https://tools.ietf.org/html/rfc7231#section-6.3.2) +* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) +* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) +* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) +* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) +* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) + +### Example + +#### Request + +```shell +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' +``` + +### Response + +#### 204 Created + +```shell +204 No Content +``` +## Schema + +### Cash Advance Response + +| Name | Type | Format | Description | +|------|--------|--------|--------------------------------------| +| id | string | uuid | The associated cash advance Id. | + +### Cash Advances Response + +| Name | Type | Format | Description | +|--------------|--------|--------|--------------------------------------------------| +| cashAdvances | array | - | List of the associated cash advance objects. | + +#### Cash Advances Response + +| Name | Type | Format | Description | +|--------------|--------|--------|--------------------------------------------------| +| cashAdvances | array | - | List of the associated cash advance objects. | +| items | object | - | Refer to [Cash Advance Response](#cash-advance-response-schema) for details. | + + From b27adaeec0099bdf2f731877053750cd932677e7 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Mon, 31 Mar 2025 16:46:47 -0700 Subject: [PATCH 02/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index 18216314c..d2114be1a 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -161,7 +161,7 @@ curl --location --request POST 'https://us.api.concursolutions.com/expensereport #### 201 Created ```shell -200 Created +201 Created { "uri": "https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances" From 5cf38ae03c2c3c409bdf646599fe42bec2bbd16f Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 1 Apr 2025 09:28:13 -0700 Subject: [PATCH 03/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index d2114be1a..9e18ed694 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -1,4 +1,9 @@ -# Expense Cash Advance Associations v4 +--- +title: Expense Cash Advance Associations v4.0 +layout: reference +--- + +# Expense Cash Advance Associations v4.0 The Expense Cash Advance Associations v4 API can be used for operations related to associating and dissociating cash advances with an expense report. From 3a5e806be915480c9b19134329135ed0d391cac8 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 1 Apr 2025 09:29:16 -0700 Subject: [PATCH 04/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index 9e18ed694..cbee2b0df 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -25,8 +25,7 @@ Access to this documentation does not provide access to the API. ## Dependencies -- SAP Concur clients must purchase Concur Expense in order to use this API. User based API requires the use of the [Identity v4 API](/api-reference/profile/v4.identity.html). -- SAP Concur clients must purchase the Expense Cash Advance feature in order to use this API and use the v4.1 Cash Advance APIs to create cash advances. +- SAP Concur clients must purchase the Expense Cash Advance feature in order to use this API and use the [v4.1 Cash Advance APIs](/api-reference/cash-advance/v4-1.cash-advance.md). to create cash advances. Please contact your SAP Concur representative for more information. From ac331e99196ae440d7333bb24b2ccb5a1f7acd54 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 1 Apr 2025 09:29:56 -0700 Subject: [PATCH 05/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index cbee2b0df..111cc5476 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -185,7 +185,7 @@ Disassociate the specified cash advance(s) from the specified report. #### URI Template ```shell -DELETE /expensereports/v4/reports/{reportId}/cashAdvances +DELETE /expensereports/v4/reports/{reportId}/cashAdvances?cashAdvanceIds={cashAdvanceId} ``` #### Parameters From 7cb3aa6ebccf68784011627ef2e385dbee10ddaf Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 8 Apr 2025 11:30:54 -0700 Subject: [PATCH 06/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index 111cc5476..ee88c5804 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -31,7 +31,7 @@ Please contact your SAP Concur representative for more information. ## Access Token Usage -This API only supports company and User JWT access tokens. +This API supports both company level and user level access tokens. ## Get Cash Advance Associations From b04a362e3182601708fe3dfa2e46d9ecd1557e48 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 8 Apr 2025 12:19:11 -0700 Subject: [PATCH 07/10] Update v4.expense-cash-advance-associations.markdown (#1) --- ...expense-cash-advance-associations.markdown | 70 +++++++++++-------- 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index ee88c5804..72770ccbc 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -5,7 +5,7 @@ layout: reference # Expense Cash Advance Associations v4.0 -The Expense Cash Advance Associations v4 API can be used for operations related to associating and dissociating cash advances with an expense report. +The Expense Cash Advance Associations v4 API can be used for operations related to associating and disassociating cash advances with an expense report. ## Limitations @@ -21,7 +21,7 @@ Access to this documentation does not provide access to the API. | 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. | POST, DELETE | +| `expense.report.readwrite` | Read and write information about cash advances associated with a report. | GET, POST, DELETE | ## Dependencies @@ -41,20 +41,23 @@ Returns cash advance IDs associated with the specified report. `expense.report.read` - Refer to [Scope Usage](#scope-usage) for full details. -### Request - -#### URI Template +### URI ```shell -GET /expensereports/v4/reports/{reportId}/cashAdvances +https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances ``` -#### Parameters +### Parameters | Name | Type | Format | Description | |----------|----------|--------|--------------------------------------| | reportId | `string` | path | The unique identifier of the report. | +### Payloads + + * Request: None + * Response: [CashAdvancesResponse](#cash-advances-response-schema) + #### Headers * [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) @@ -74,7 +77,7 @@ GET /expensereports/v4/reports/{reportId}/cashAdvances * [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) * [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) -### Example +### Examples #### Request @@ -105,26 +108,29 @@ curl --location --request GET 'https://us.api.concursolutions.com/expensereports ## Associate Cash Advances with Report -Associates the specified cash advance(s) with the specified report. +Associates the specified cash advance(s) with the specified report. Replaces all existing associated cash advanced of the report with the provided payload. ### Scopes `expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details. -### Request - -#### URI Template +### URI ```shell -POST /expensereports/v4/reports/{reportId}/cashAdvances +https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances ``` -#### Parameters +### Parameters | Name | Type | Format | Description | |----------|----------|--------|--------------------------------------| | reportId | `string` | path | The unique identifier of the report. | -| body | `AssociateRequest` | application/json | The request body containing the cash advances to associate. | +| body | `CashAdvanceRequest` | application/json | The request body containing the cash advances to associate. | + +### Payloads + + * Request: [CashAdvanceRequest](#cash-advances-post-schema) + * Response: [CashAdvancePostResponse](#cash-advance-uri-schema) #### Headers @@ -145,7 +151,7 @@ POST /expensereports/v4/reports/{reportId}/cashAdvances * [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) * [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) -### Example +### Examples #### Request @@ -180,21 +186,24 @@ Disassociate the specified cash advance(s) from the specified report. `expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details. -### Request - -#### URI Template +### URI ```shell -DELETE /expensereports/v4/reports/{reportId}/cashAdvances?cashAdvanceIds={cashAdvanceId} +https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances?cashAdvanceIds={cashAdvanceId} ``` -#### Parameters +### Parameters | Name | Type | Format | Description | |----------|----------------|--------|--------------------------------------| | reportId | `string` | path | The unique identifier of the report. | | cashAdvanceIds | `List` | query | The unique identifier(s) of the cash advances to disassociate with the report | +### Payloads + + * Request: None + * Response: None + #### Headers * [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) @@ -214,7 +223,7 @@ DELETE /expensereports/v4/reports/{reportId}/cashAdvances?cashAdvanceIds={cashAd * [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) * [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) -### Example +### Examples #### Request @@ -233,23 +242,28 @@ curl --request DELETE 'https://us.api.concursolutions.com/expensereports/v4/repo ``` ## Schema -### Cash Advance Response +### CashAdvanceResponse | Name | Type | Format | Description | |------|--------|--------|--------------------------------------| | id | string | uuid | The associated cash advance Id. | -### Cash Advances Response +### CashAdvancesResponse | Name | Type | Format | Description | |--------------|--------|--------|--------------------------------------------------| -| cashAdvances | array | - | List of the associated cash advance objects. | +| cashAdvances | array | [CashAdvanceResponse](#cash-advance-response-schema) | List of the associated cash advance objects. | -#### Cash Advances Response +#### CashAdvanceRequest | Name | Type | Format | Description | |--------------|--------|--------|--------------------------------------------------| -| cashAdvances | array | - | List of the associated cash advance objects. | -| items | object | - | Refer to [Cash Advance Response](#cash-advance-response-schema) for details. | +| cashAdvanceIds | array | uuid | List of the associated cash advance ids | + +### CashAdvancePostResponse + +| Name | Type | Format | Description | +|------|--------|--------|--------------------------------------| +| uri | string | - | The href to retrieve the cash advance associations | From 793de07a476d2c5c81a5e2ee0e597b4f108950e1 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 8 Apr 2025 12:22:37 -0700 Subject: [PATCH 08/10] Update v4.expense-cash-advance-associations.markdown --- ....expense-cash-advance-associations.markdown | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index 72770ccbc..efa9efacd 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -58,7 +58,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances * Request: None * Response: [CashAdvancesResponse](#cash-advances-response-schema) -#### Headers +### Headers * [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) * [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) @@ -68,7 +68,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances * ### Response -#### Status Codes +### Status Codes * [200 OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) * [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) @@ -79,7 +79,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances ### Examples -#### Request +### Request ```shell curl --location --request GET 'https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances' \ @@ -132,7 +132,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances * Request: [CashAdvanceRequest](#cash-advances-post-schema) * Response: [CashAdvancePostResponse](#cash-advance-uri-schema) -#### Headers +### Headers * [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) * [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) @@ -142,7 +142,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances ### Response -#### Status Codes +### Status Codes * [201 OK](https://tools.ietf.org/html/rfc7231#section-6.3.2) * [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) @@ -153,7 +153,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances ### Examples -#### Request +### Request ```shell curl --location --request POST 'https://us.api.concursolutions.com/expensereports/v4/reports/764428DD6A664AF0BFCB/cashAdvances' \ @@ -204,7 +204,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances?cashAd * Request: None * Response: None -#### Headers +### Headers * [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5) * [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) @@ -214,7 +214,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances?cashAd ### Response -#### Status Codes +### Status Codes * [204 OK](https://tools.ietf.org/html/rfc7231#section-6.3.2) * [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) @@ -225,7 +225,7 @@ https://{datacenterURI}/expensereports/v4/reports/{reportId}/cashAdvances?cashAd ### Examples -#### Request +### Request ```shell 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' \ From 4563e38a6124a9545cd8da43ae60464209446122 Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 8 Apr 2025 14:09:53 -0700 Subject: [PATCH 09/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index efa9efacd..e9d144590 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -108,7 +108,7 @@ curl --location --request GET 'https://us.api.concursolutions.com/expensereports ## Associate Cash Advances with Report -Associates the specified cash advance(s) with the specified report. Replaces all existing associated cash advanced of the report with the provided payload. +Associates the specified cash advance(s) with the specified report. Replaces all existing associated cash advance(s) of the report with the provided payload. ### Scopes From b270dcfd0e68d0817ab33ab7d9e92ab39abdf22d Mon Sep 17 00:00:00 2001 From: ctruzzi Date: Tue, 8 Apr 2025 14:12:25 -0700 Subject: [PATCH 10/10] Update v4.expense-cash-advance-associations.markdown --- .../v4.expense-cash-advance-associations.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown index e9d144590..221c10189 100644 --- a/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown +++ b/src/api-reference/expense/expense-report/v4.expense-cash-advance-associations.markdown @@ -110,6 +110,8 @@ curl --location --request GET 'https://us.api.concursolutions.com/expensereports 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. + ### Scopes `expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details.