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

Con 5226 make company contracts delete multiproperty #736

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 12th February 2025
* [Delete company contracts](../operations/companycontracts.md#delete-company-contracts):
* Included support for [Portfolio Access Tokens](../guidelines/authentication.md#portfolio-access-tokens).

## 11th February 2025
* Added new restricted operation [Disable credit card](../operations/creditcards.md#disable-credit-card).

Expand Down
18 changes: 10 additions & 8 deletions operations/companycontracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Updates one or more company contracts.

## Delete company contracts

Deletes one or more company contracts.
Deletes one or more company contracts. Note this operation supports [Portfolio Access Tokens](../concepts/multi-property.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

Extend the request with EnterpriseId


### Request

Expand All @@ -326,6 +326,7 @@ Deletes one or more company contracts.
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TravelAgencyContractIds": [
"0078f370-3787-43dc-a615-af150066bb88",
"652d4a22-ac33-42b7-abe7-af1f00820023"
Expand All @@ -338,13 +339,14 @@ Deletes one or more company contracts.
}
```

| Property | Type | Contract | Description |
| :-- | :-- | :-- | :-- |
| `ClientToken` | string | required | Token identifying the client application. |
| `AccessToken` | string | required | Access token of the client application. |
| `Client` | string | required | Name and version of the client application. |
| `TravelAgencyContractIds` | array of string | required, max 1000 items | Unique identifiers of the Travel agency contract to delete. |
| `ServiceIds` | array of string | required, max 1000 items | Unique identifiers of the [Service](services.md#service) the travel agency contract belongs to. |
| Property | Type | Contract | Description |
|:--------------------------| :-- | :-- |:------------------------------------------------------------------------------------------------|
| `ClientToken` | string | required | Token identifying the client application. |
| `AccessToken` | string | required | Access token of the client application. |
| `Client` | string | required | Name and version of the client application. |
| `EnterpriseId` | string | required | Unique identifier of the [Enterprise](enterprises.md#enterprise). |
| `TravelAgencyContractIds` | array of string | required, max 1000 items | Unique identifiers of the Travel agency contract to delete. |
| `ServiceIds` | array of string | required, max 1000 items | Unique identifiers of the [Service](services.md#service) the travel agency contract belongs to. |

### Response

Expand Down