Skip to content

Create v4.expense-cash-advance-associations.markdown #1402

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

ctruzzi
Copy link
Contributor

@ctruzzi ctruzzi commented Mar 31, 2025

No description provided.

* [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)

Choose a reason for hiding this comment

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

Need Payloads section with link to CashAdvancesResponse schema

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Copy link

@concur-perryb concur-perryb Apr 8, 2025

Choose a reason for hiding this comment

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

FYI... There's actually a template markdown. https://github.concur.com/developer/documentation/blob/master/documentation-template.md

It's not adhered to well, but I'm trying to address documentation consistency, within ERS as a minimum but hopefully globally across Spend, as part of the overall externalization / parity / devcenter enhancement exercise.

## Associate Cash Advances with Report

Associates the specified cash advance(s) with the specified report.

Copy link

@concur-perryb concur-perryb Apr 8, 2025

Choose a reason for hiding this comment

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

Need a clarification that the POST operation REPLACES any prior associations rather than add them as amendments.

Also it should also be clear that an individual bad/unrecognized CA Id will lead to a non-action with no change to any pre-existing association list.

Copy link
Contributor Author

@ctruzzi ctruzzi Apr 8, 2025

Choose a reason for hiding this comment

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

Also it should also be clear that an individual bad/unrecognized CA Id will lead to a non-action with no change to any pre-existing association list.

Isn't that explained in the Swagger Documentation with the description of
'
Invalid reportId, Invalid field value specified, Invalid Cash Advance Id
'
?

Need a clarification that the POST operation REPLACES any prior associations rather than add them as amendments.

Isn't that common usage of a POST in that it does a full replace of the object that is being sent?

Choose a reason for hiding this comment

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

Minor typo on 111. Cash advances, not Cash advanced.

The REPLACES comment was something that came out of the design review. The group felt it would be better to make this explicitly clear.

The swagger simply says that 400=bad ID/404=ID not found. It doesn't explain that any single failure for a list of IDs will result in non-action for the entire list.


# 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.

Choose a reason for hiding this comment

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

Use disassociate for consistency with DELETE endpoint.

#### 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' \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is slightly different than what is shown in the template, I can keep as a curl or change to how they show them.

Choose a reason for hiding this comment

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

We have lots of examples with curl. I'm fine with this for now.

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.

2 participants