Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging cost object documentation into Workflow documentation #1085

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

RoseWyatt
Copy link
Contributor

@RoseWyatt RoseWyatt commented May 13, 2024

JIRA: https://jira.concur.com/browse/ERS-16983

Background:
Between Project Manager Transitions an externalization effort was not fully completed. The goal of this Jira is to finish the job, and get the end point costObjectsForApprover fully available in general access.

@RoseWyatt RoseWyatt marked this pull request as draft May 13, 2024 14:13
@@ -101,64 +121,222 @@ PATCH operations in Expense Reports v4 conform to the JSON Merge Patch specifica

* [Approve/SendBack/Recall Report Response](#patch-approve-sendback-recall-report-response-schema)

### Example
## View Cost Objects for a specific Report

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call this as "Get" instead of "View" ?

* [RFC 7231 Accept-Encoding](https://tools.ietf.org/html/rfc7231#section-5.3.4)
* [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.
* `Concur-CorrelationId` is a Concur specific custom header used for technical support in the form of

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not exposing Concur-CorrelationId. It is considered as internal only param. Remove.

```shell
curl --location --request GET https://integration.api.concursolutions.com/expensereports/v4/users/aa024d31-95eb-4270-b9yz-cb6b5f558a7c/reports/97F923D6935D4426BF9C/costObjectsForApprover
--header 'Authorization: Bearer {access_token}' \
--header 'Concur-CorrelationId: abcd-efgh-xyzw' \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not exposing Concur-CorrelationId. It is considered as internal only param. Remove.

| `currencyCode` | `string` | - | **Required** The 3-letter ISO 4217 currency code for the expense report currency, based on the user's assigned reimbursement currency when the report was created. Examples: `USD` - US dollars; `BRL` - Brazilian real; `CAD` - Canadian dollar; `CHF` - Swiss franc; `EUR` - Euro; `GBO` - Pound sterling; `HKD` - Hong Kong dollar; `INR` - Indian rupee; `MXN` - Mexican peso; `NOK` - Norwegian krone; `SEK` - Swedish krona |
| `value` | `number` | `double` | **Required** The amount in the defined currency. |

### <a name="error-message-schema"></a>ErrorMessage

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have this schema defined at the end

| `timestamp` | `string` | `date-time` | **Required** The time when the error was captured. |
| `validationErrors` | [`ValidationError`](#validation-error-schema) | - | The validation error messages. |

### <a name="validation-errors-schema"></a>ValidationError

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have this schema defined at the end

@RoseWyatt RoseWyatt marked this pull request as ready for review June 5, 2024 14:39
Copy link
Collaborator

@RoAnnC1 RoAnnC1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@RoAnnC1 RoAnnC1 merged commit e30761d into SAP-docs:main Jun 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants