start_agreement_approvals
async
¶
start_agreement_approvals(
agreement_request_id: AgreementRequestId,
plan_inputs: AgreementApprovalPlanInputs,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
purchase_orders: Optional[AgreementApprovalPurchaseOrders] = None,
) -> StartAgreementApprovalsOutput
Allows buyers (acceptors) to start the approvals that their organization requires for an agreement request. You start one agreement approval for each approval plan that you specify. Use GetAgreementRequestApprovalPlans to retrieve the approval plans of the agreement request. Once the agreement approvals start, the agreement request transitions to PENDING_APPROVAL status.
Parameters:
-
agreement_request_id(AgreementRequestId) –The unique identifier of the agreement request to start approvals for.
-
plan_inputs(AgreementApprovalPlanInputs) –The approval plans to start agreement approvals for.
-
purchase_orders(Optional[AgreementApprovalPurchaseOrders], default:None) –An optional list of purchase order references to associate with charges on the agreement request.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–Request was denied due to a resource conflict.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Start agreement approvals
>>> await client.start_agreement_approvals(agreement_request_id='ar-EXAMPLE4a539b123d4EXAMPLE78', plan_inputs=[{'buyerAgreementApprovalPlanInput': {'planReference': 'aplan-EXAMPLE7g8h9i0j1k2l', 'requesterNote': 'Annual subscription for the data platform team.'}}], purchase_orders=[{'chargeId': 'ch-EXAMPLE4b4296145c3EXAMPLE56', 'purchaseOrderReference': 'PO-123'}])
Source code in docs_src/capo_marketplace_agreement/_services/async_marketplace_agreement.py
3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 | |