put_procurement_portal_preference
async
¶
put_procurement_portal_preference(
procurement_portal_preference_arn: ProcurementPortalPreferenceArnString,
einvoice_delivery_enabled: bool,
purchase_order_retrieval_enabled: bool,
contacts: Contacts,
*,
config_overrides: Optional[AsyncInvoicingClientConfig] = None,
selector: Optional[ProcurementPortalPreferenceSelector] = None,
procurement_portal_shared_secret: Optional[SensitiveBasicStringWithoutSpace] = None,
procurement_portal_instance_endpoint: Optional[BasicStringWithoutSpace] = None,
test_env_preference: Optional[TestEnvPreferenceInput] = None,
einvoice_delivery_preference: Optional[EinvoiceDeliveryPreference] = None,
marketplace_punch_out_enabled: Optional[bool] = None,
marketplace_punch_out_preference: Optional[MarketplacePunchOutPreference] = None,
client_token: Optional[BasicStringWithoutSpace] = None,
) -> PutProcurementPortalPreferenceResponse
This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews).
Updates an existing procurement portal preference configuration. This operation can modify settings for e-invoice delivery and purchase order retrieval.
Parameters:
-
procurement_portal_preference_arn(ProcurementPortalPreferenceArnString) –The Amazon Resource Name (ARN) of the procurement portal preference to update.
-
procurement_portal_shared_secret(Optional[SensitiveBasicStringWithoutSpace], default:None) –The updated shared secret or authentication credential for the procurement portal. This value must be encrypted at rest.
-
procurement_portal_instance_endpoint(Optional[BasicStringWithoutSpace], default:None) –The updated endpoint URL where e-invoices will be delivered to the procurement portal. Must be a valid HTTPS URL.
-
test_env_preference(Optional[TestEnvPreferenceInput], default:None) –Updated configuration settings for the test environment of the procurement portal.
-
einvoice_delivery_enabled(bool) –Updated flag indicating whether e-invoice delivery is enabled for this procurement portal preference.
-
einvoice_delivery_preference(Optional[EinvoiceDeliveryPreference], default:None) –Updated e-invoice delivery configuration including document types, attachment types, and customization settings for the portal.
-
purchase_order_retrieval_enabled(bool) –Updated flag indicating whether purchase order retrieval is enabled for this procurement portal preference.
-
marketplace_punch_out_enabled(Optional[bool], default:None) –Whether Marketplace PunchOut is enabled for this connection. Defaults to false if not provided.
-
marketplace_punch_out_preference(Optional[MarketplacePunchOutPreference], default:None) –Configuration for Marketplace PunchOut. Required when MarketplacePunchOutEnabled is true.
-
contacts(Contacts) –Updated list of contact information for portal administrators and technical contacts.
-
client_token(Optional[BasicStringWithoutSpace], default:None) –A unique, case-sensitive identifier that you provide to ensure idempotency of the request.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
-
InternalServerException–The processing request failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceQuotaExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
PutProcurementPortalPreference for Coupa pref
>>> await client.put_procurement_portal_preference(procurement_portal_preference_arn='arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd', procurement_portal_shared_secret='Coupa_Secret_2', procurement_portal_instance_endpoint='https://www.placeholder-domain.test', selector={'InvoiceUnitArns': ['arn:aws:invoicing::111111111111:invoice-unit/12345679'], 'SellerOfRecords': ['AWS_INC']}, test_env_preference={'BuyerDomain': 'NetworkID', 'BuyerIdentifier': 'BuyerId_1_Test', 'SupplierDomain': 'NetworkID', 'SupplierIdentifier': 'SupplierId_1_Test', 'ProcurementPortalSharedSecret': 'Coupa_Secret_test_2', 'ProcurementPortalInstanceEndpoint': 'https://www.placeholder-domain.test'}, einvoice_delivery_enabled=True, einvoice_delivery_preference={'EinvoiceDeliveryDocumentTypes': ['AWS_CLOUD_INVOICE'], 'EinvoiceDeliveryAttachmentTypes': ['INVOICE_PDF'], 'Protocol': 'CXML', 'PurchaseOrderDataSources': [{'EinvoiceDeliveryDocumentType': 'AWS_CLOUD_INVOICE', 'PurchaseOrderDataSourceType': 'ASSOCIATED_PURCHASE_ORDER_REQUIRED'}], 'ConnectionTestingMethod': 'PROD_ENV_DOLLAR_TEST', 'EinvoiceDeliveryActivationDate': 1750279280.091}, purchase_order_retrieval_enabled=True, marketplace_punch_out_enabled=True, contacts=[{'Name': 'John Doe2', 'Email': '[email protected]'}], client_token='e362c68e-4e74-48d7-9228-0bc5aa447b45')
Source code in docs_src/capo_invoicing/_services/async_invoicing.py
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 | |