Skip to main content

procurement_portal_preferences

Creates, updates, deletes, gets or lists a procurement_portal_preferences resource.

Overview

Nameprocurement_portal_preferences
TypeResource
Idaws.invoicing.procurement_portal_preferences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_account_idstringThe Amazon Web Services account ID associated with this procurement portal preference. (pattern: <code>\d{12}</code>)
buyer_domainstringThe domain identifier for the buyer in the procurement portal. (NetworkID)
buyer_identifierstringThe unique identifier for the buyer in the procurement portal. (pattern: <code>\S+</code>)
contactsarrayList of contact information for portal administrators and technical contacts.
create_datestring (date-time)The date and time when the procurement portal preference was created.
einvoice_delivery_enabledbooleanIndicates whether e-invoice delivery is enabled for this procurement portal preference.
einvoice_delivery_preferenceobjectThe configuration settings that specify how e-invoices are delivered to the procurement portal.
einvoice_delivery_preference_statusstringThe current status of the e-invoice delivery preference. (PENDING_VERIFICATION, VALIDATED, TEST_INITIALIZED, TEST_INITIALIZATION_FAILED, TEST_FAILED, ACTIVE, SUSPENDED)
einvoice_delivery_preference_status_reasonstringThe reason for the current e-invoice delivery preference status. (pattern: <code>[\s\S]*</code>)
last_update_datestring (date-time)The date and time when the procurement portal preference was last updated.
procurement_portal_instance_endpointstringThe endpoint URL where e-invoices are delivered to the procurement portal. (pattern: <code>\S+</code>)
procurement_portal_namestringThe name of the procurement portal. (SAP_BUSINESS_NETWORK, COUPA)
procurement_portal_preference_arnstringThe Amazon Resource Name (ARN) of the procurement portal preference. (pattern: <code>arn:aws:invoicing::[0-9]{12}:procurement-portal-preference/[-a-zA-Z0-9]+</code>)
procurement_portal_shared_secretstringThe shared secret or authentication credential used for secure communication with the procurement portal. (pattern: <code>\S+</code>)
purchase_order_retrieval_enabledbooleanIndicates whether purchase order retrieval is enabled for this procurement portal preference.
purchase_order_retrieval_endpointstringThe endpoint URL used for retrieving purchase orders from the procurement portal. (pattern: <code>\S+</code>)
purchase_order_retrieval_preference_statusstringThe current status of the purchase order retrieval preference. (PENDING_VERIFICATION, VALIDATED, TEST_INITIALIZED, TEST_INITIALIZATION_FAILED, TEST_FAILED, ACTIVE, SUSPENDED)
purchase_order_retrieval_preference_status_reasonstringThe reason for the current purchase order retrieval preference status. (pattern: <code>[\s\S]*</code>)
selectorobjectSpecifies criteria for selecting which invoices should be processed using a particular procurement portal preference.
supplier_domainstringThe domain identifier for the supplier in the procurement portal. (NetworkID)
supplier_identifierstringThe unique identifier for the supplier in the procurement portal. (pattern: <code>\S+</code>)
test_env_preferenceobjectConfiguration on settings for the test environment of the procurement portal.
versioninteger (int64)The version number of the procurement portal preference configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_procurement_portal_preferenceselectregionThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Retrieves the details of a specific procurement portal preference configuration.
list_procurement_portal_preferencesselectregionThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.
create_procurement_portal_preferenceinsertregion, ProcurementPortalName, BuyerDomain, BuyerIdentifier, SupplierDomain, SupplierIdentifier, EinvoiceDeliveryEnabled, PurchaseOrderRetrievalEnabled, ContactsThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval. This preference defines how invoices are delivered to a procurement portal and how purchase orders are retrieved.
update_procurement_portal_preference_statusupdateregion, ProcurementPortalPreferenceArnThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.
put_procurement_portal_preferencereplaceregion, ProcurementPortalPreferenceArn, EinvoiceDeliveryEnabled, PurchaseOrderRetrievalEnabled, ContactsThis 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.
delete_procurement_portal_preferencedeleteregionThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.
send_procurement_portal_validationexecregion, ProcurementPortalPreferenceArnThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Sends a validation request for a procurement portal preference. This operation initiates the validation process by issuing a validation code that confirms ownership and connectivity of the configured procurement portal endpoint. Use VerifyProcurementPortalValidation to submit the received code and complete validation.
verify_procurement_portal_validationexecregion, ProcurementPortalPreferenceArn, CodeThis feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Submits a validation code to complete the validation of a procurement portal preference. Use this operation after calling SendProcurementPortalValidation to confirm ownership and connectivity of the configured procurement portal endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Retrieves the details of a specific procurement portal preference configuration.

SELECT
aws_account_id,
buyer_domain,
buyer_identifier,
contacts,
create_date,
einvoice_delivery_enabled,
einvoice_delivery_preference,
einvoice_delivery_preference_status,
einvoice_delivery_preference_status_reason,
last_update_date,
procurement_portal_instance_endpoint,
procurement_portal_name,
procurement_portal_preference_arn,
procurement_portal_shared_secret,
purchase_order_retrieval_enabled,
purchase_order_retrieval_endpoint,
purchase_order_retrieval_preference_status,
purchase_order_retrieval_preference_status_reason,
selector,
supplier_domain,
supplier_identifier,
test_env_preference,
version
FROM aws.invoicing.procurement_portal_preferences
WHERE region = '{{ region }}' -- required
;

INSERT examples

This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval. This preference defines how invoices are delivered to a procurement portal and how purchase orders are retrieved.

INSERT INTO aws.invoicing.procurement_portal_preferences (
ProcurementPortalName,
BuyerDomain,
BuyerIdentifier,
SupplierDomain,
SupplierIdentifier,
Selector,
ProcurementPortalSharedSecret,
ProcurementPortalInstanceEndpoint,
TestEnvPreference,
EinvoiceDeliveryEnabled,
EinvoiceDeliveryPreference,
PurchaseOrderRetrievalEnabled,
Contacts,
ResourceTags,
ClientToken,
region
)
SELECT
'{{ ProcurementPortalName }}' /* required */,
'{{ BuyerDomain }}' /* required */,
'{{ BuyerIdentifier }}' /* required */,
'{{ SupplierDomain }}' /* required */,
'{{ SupplierIdentifier }}' /* required */,
'{{ Selector }}',
'{{ ProcurementPortalSharedSecret }}',
'{{ ProcurementPortalInstanceEndpoint }}',
'{{ TestEnvPreference }}',
{{ EinvoiceDeliveryEnabled }} /* required */,
'{{ EinvoiceDeliveryPreference }}',
{{ PurchaseOrderRetrievalEnabled }} /* required */,
'{{ Contacts }}' /* required */,
'{{ ResourceTags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
procurement_portal_preference_arn
;

UPDATE examples

This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.

UPDATE aws.invoicing.procurement_portal_preferences
SET
ProcurementPortalPreferenceArn = '{{ ProcurementPortalPreferenceArn }}',
EinvoiceDeliveryPreferenceStatus = '{{ EinvoiceDeliveryPreferenceStatus }}',
EinvoiceDeliveryPreferenceStatusReason = '{{ EinvoiceDeliveryPreferenceStatusReason }}',
PurchaseOrderRetrievalPreferenceStatus = '{{ PurchaseOrderRetrievalPreferenceStatus }}',
PurchaseOrderRetrievalPreferenceStatusReason = '{{ PurchaseOrderRetrievalPreferenceStatusReason }}',
ClientToken = '{{ ClientToken }}'
WHERE
region = '{{ region }}' --required
AND ProcurementPortalPreferenceArn = '{{ ProcurementPortalPreferenceArn }}' --required
RETURNING
procurement_portal_preference_arn;

REPLACE examples

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.

REPLACE aws.invoicing.procurement_portal_preferences
SET
ProcurementPortalPreferenceArn = '{{ ProcurementPortalPreferenceArn }}',
Selector = '{{ Selector }}',
ProcurementPortalSharedSecret = '{{ ProcurementPortalSharedSecret }}',
ProcurementPortalInstanceEndpoint = '{{ ProcurementPortalInstanceEndpoint }}',
TestEnvPreference = '{{ TestEnvPreference }}',
EinvoiceDeliveryEnabled = {{ EinvoiceDeliveryEnabled }},
EinvoiceDeliveryPreference = '{{ EinvoiceDeliveryPreference }}',
PurchaseOrderRetrievalEnabled = {{ PurchaseOrderRetrievalEnabled }},
Contacts = '{{ Contacts }}',
ClientToken = '{{ ClientToken }}'
WHERE
region = '{{ region }}' --required
AND ProcurementPortalPreferenceArn = '{{ ProcurementPortalPreferenceArn }}' --required
AND EinvoiceDeliveryEnabled = {{ EinvoiceDeliveryEnabled }} --required
AND PurchaseOrderRetrievalEnabled = {{ PurchaseOrderRetrievalEnabled }} --required
AND Contacts = '{{ Contacts }}' --required
RETURNING
procurement_portal_preference_arn;

DELETE examples

This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.

DELETE FROM aws.invoicing.procurement_portal_preferences
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews). Sends a validation request for a procurement portal preference. This operation initiates the validation process by issuing a validation code that confirms ownership and connectivity of the configured procurement portal endpoint. Use VerifyProcurementPortalValidation to submit the received code and complete validation.

EXEC aws.invoicing.procurement_portal_preferences.send_procurement_portal_validation
@region='{{ region }}' --required
@@json=
'{
"ProcurementPortalPreferenceArn": "{{ ProcurementPortalPreferenceArn }}",
"ClientToken": "{{ ClientToken }}"
}'
;