FolioActions

Posts an allowance for a folio

Allowance value posted must not exceed sum of charges minus existing allowances<br>You must have at least one of these scopes: 'allowances.post, folios.manage'.<br>For fine-grained clients, you must have this permission: 'core.folios.post_folio_allowance'.

post/finance/v1/folio-actions/{folioId}/allowances

Request

  • Base URL
    https://api.apaleo.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.apaleo.com/finance/v1/folio-actions/{folioId}/allowances
  • Auth
    OAuth 2
    Implicit: https://identity.apaleo.com/connect/authorize
    Scopes: allowances.post, folios.manage, admin

Path parameters

folioIdstring required

The folio ID

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

serviceType'Other' | 'Accommodation' | 'FoodAndBeverages' | 'CityTax' | 'SecondCityTax' required

The service type, used by accounting to determine the correct revenue account

vatType'Null' | 'VeryReduced' | 'Reduced' | 'Normal' | 'Without' | 'Special' | 'Special1' | 'Special2' | 'ReducedCovid19' | 'NormalCovid19' | 'Mixed' required

The VAT type, used by accounting to determine the correct vat amount and account

subAccountIdstring nullable

ID of the custom sub-account to post the allowance to, used by accounting to determine the correct revenue account

reasonstring required

Reason why this allowance is posted

businessDatestring date nullable

The business date of the allowance. Defaults to the current date. In some cases you might want to post the allowances to the previous business date, this is only possible until 6 AM of the current day.

Example request

{
  "serviceType": "Other",
  "vatType": "Normal",
  "subAccountId": "MUC-REST",
  "reason": "Good guy discount",
  "amount": {
    "amount": 22,
    "currency": "EUR"
  }
}

Response

Success.

idstring required

Example response

{
  "id": "XT347518-1-1"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.