Browse the DEAP API

DEAP API · Period close

Preview

Period close: decide approval

POST/api/core/finance/period-closes/decide-approval

Authorization

Action
DECIDE_APPROVAL

Headers

  • AuthorizationstringRequired

    Access token of a signed-in user. It carries the tenant, the user and their roles.

  • Idempotency-KeystringOptional

    A key you choose that is unique to this attempt, so a retry is not applied twice.

  • X-Company-IDstringOptional

    Company the command acts on. Refused with 403 if the caller has no access to it.

  • Content-TypestringRequired

    Always application/json.

Request body

The fields of the DECIDE_APPROVAL command. The body is the command itself; it is not wrapped in another object.

Response

Status 200. The command ran. The body is its outcome.

  • footprintstringRequired

    Fingerprint of what was committed.

  • statusstringRequired

    SUCCESS when the command was committed.

  • tx_idstringRequired

    Identifier of the committed transaction.

  • committed_atdate-timeOptional

    When the command was committed.

  • dataanyOptional

    What the command returned: the record, a list, or nothing.

  • errorobjectOptional

    Why a command was not committed.

    4 child fields
    • codestringRequired

      No description yet.

    • messagestringRequired

      No description yet.

    • detailsanyOptional

      Further detail, when there is any.

    • fieldstringOptional

      The field the error is about, when there is one.

  • financial_impactobjectOptional

    Ledger effect of the command, when it has one.

  • semantic_contextobjectOptional

    Business context recorded with the command.

Errors

Every error carries an HTTP status. Where it also carries a code, branch on the code, not on the message.

  • 400The body is not one JSON value.
  • 401The access token is missing, expired or not valid.
  • 403The caller has no access to the company named in X-Company-ID.
  • 422The command was refused: a field is invalid, or the record is not in a state that allows the action. The message says which.
Generated from the API contract · revision 4b6c5622b519c9f7