start_agreement_approvals
¶
start_agreement_approvals(
agreement_request_id: AgreementRequestId,
plan_inputs: AgreementApprovalPlanInputs,
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = 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
>>> 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/marketplace_agreement.py
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 | |