rctab_cli.sub_apps.sub.create_approval

rctab_cli.sub_apps.sub.create_approval(subscription_id: UUID, ticket: str, amount: float, allocate: bool, date_from: str, date_to: str, force: bool = False) None

Create an approval for a subscription.

Parameters:
  • subscription_id – The ID of the subscription to approve.

  • ticket – The ticket reference of the request made.

  • amount – The amount to approve.

  • allocate – Whether to allocate the approved amount to the subscription.

  • date_from – The date the approval is valid from.

  • date_to – The date the approval is valid to.

  • force – Whether to allow the date_from to be > 30 days ago.

Returns:

None.