2026/12/04 - AWS Invoicing - 6 updated api methods
Changes Add Zip as an AWS-supported 3rd party procurement portal.
{'EinvoiceDeliveryEmail': 'string',
'EinvoiceDeliveryPreference': {'Protocol': {'UBL'}},
'ProcurementPortalName': {'ZIP'},
'TestEnvPreference': {'EinvoiceDeliveryEmail': 'string'}}
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.
See also: AWS API Documentation
Request Syntax
client.create_procurement_portal_preference(
ProcurementPortalName='SAP_BUSINESS_NETWORK'|'COUPA'|'ZIP',
BuyerDomain='NetworkID',
BuyerIdentifier='string',
EinvoiceDeliveryEmail='string',
SupplierDomain='NetworkID',
SupplierIdentifier='string',
Selector={
'InvoiceUnitArns': [
'string',
],
'SellerOfRecords': [
'string',
]
},
ProcurementPortalSharedSecret='string',
ProcurementPortalInstanceEndpoint='string',
TestEnvPreference={
'BuyerDomain': 'NetworkID',
'BuyerIdentifier': 'string',
'SupplierDomain': 'NetworkID',
'SupplierIdentifier': 'string',
'ProcurementPortalSharedSecret': 'string',
'ProcurementPortalInstanceEndpoint': 'string',
'EinvoiceDeliveryEmail': 'string'
},
EinvoiceDeliveryEnabled=True|False,
EinvoiceDeliveryPreference={
'EinvoiceDeliveryDocumentTypes': [
'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
],
'EinvoiceDeliveryAttachmentTypes': [
'INVOICE_PDF'|'RFP_PDF',
],
'Protocol': 'CXML'|'UBL',
'PurchaseOrderDataSources': [
{
'EinvoiceDeliveryDocumentType': 'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
'PurchaseOrderDataSourceType': 'ASSOCIATED_PURCHASE_ORDER_REQUIRED'|'PURCHASE_ORDER_NOT_REQUIRED'
},
],
'ConnectionTestingMethod': 'PROD_ENV_DOLLAR_TEST'|'TEST_ENV_REPLAY_TEST',
'EinvoiceDeliveryActivationDate': datetime(2015, 1, 1)
},
PurchaseOrderRetrievalEnabled=True|False,
MarketplacePunchOutEnabled=True|False,
MarketplacePunchOutPreference={
'ApprovalRequestRedirectUrl': 'string'
},
Contacts=[
{
'Name': 'string',
'Email': 'string'
},
],
ResourceTags=[
{
'Key': 'string',
'Value': 'string'
},
],
ClientToken='string'
)
string
[REQUIRED]
The name of the procurement portal.
string
[REQUIRED]
The domain identifier for the buyer in the procurement portal.
string
[REQUIRED]
The unique identifier for the buyer in the procurement portal.
string
The production email address that receives customer invoices for Zip.
string
[REQUIRED]
The domain identifier for the supplier in the procurement portal.
string
[REQUIRED]
Specifies the supplier identifier in the procurement portal. The value depends on the portal:
For Coupa, specify a free-form value.
For all other portals, call ListProcurementPortals to get the portal identifier, and then call ListProcurementPortalSuppliers. Use the exact SupplierIdentifier that the operation returns for the appropriate environment.
dict
Specifies criteria for selecting which invoices should be processed using a particular procurement portal preference.
InvoiceUnitArns (list) --
The Amazon Resource Name (ARN) of invoice unit identifiers to which this preference applies.
(string) --
SellerOfRecords (list) --
The list of seller of record IDs to which this preference applies.
(string) --
string
The shared secret or authentication credential used to establish secure communication with the procurement portal. This value must be encrypted at rest.
string
The endpoint URL where e-invoices will be delivered to the procurement portal. Must be a valid HTTPS URL.
dict
Configuration settings for the test environment of the procurement portal. Includes test credentials and endpoints that are used for validation before production deployment.
BuyerDomain (string) -- [REQUIRED]
The domain identifier to use for the buyer in the test environment.
BuyerIdentifier (string) -- [REQUIRED]
The unique identifier to use for the buyer in the test environment.
SupplierDomain (string) -- [REQUIRED]
The domain identifier to use for the supplier in the test environment.
SupplierIdentifier (string) -- [REQUIRED]
Specifies the supplier identifier in the test environment. The value depends on the portal:
For Coupa, specify a free-form value.
For all other portals, use the exact SupplierIdentifier that ListProcurementPortalSuppliers returns for the test environment.
ProcurementPortalSharedSecret (string) --
The shared secret or authentication credential to use for secure communication in the test environment.
ProcurementPortalInstanceEndpoint (string) --
The endpoint URL where e-invoices will be delivered in the test environment.
EinvoiceDeliveryEmail (string) --
The test environment email address that receives customer invoices for Zip.
boolean
[REQUIRED]
Indicates whether e-invoice delivery is enabled for this procurement portal preference. Set to true to enable e-invoice delivery, false to disable.
dict
Specifies the e-invoice delivery configuration including document types, attachment types, and customization settings for the portal.
EinvoiceDeliveryDocumentTypes (list) -- [REQUIRED]
The types of e-invoice documents to be delivered.
(string) --
EinvoiceDeliveryAttachmentTypes (list) --
The types of attachments to include with the e-invoice delivery.
(string) --
Protocol (string) -- [REQUIRED]
The communication protocol to use for e-invoice delivery. The value depends on the portal:
For Zip, use Universal Business Language ( UBL).
For all other procurement portals, use commerce eXtensible Markup Language (cXML).
PurchaseOrderDataSources (list) -- [REQUIRED]
The sources of purchase order data to use for e-invoice generation and delivery.
(dict) --
Specifies the source configuration for retrieving purchase order data.
EinvoiceDeliveryDocumentType (string) --
The type of e-invoice document that requires purchase order data.
PurchaseOrderDataSourceType (string) --
The type of source for purchase order data.
ConnectionTestingMethod (string) -- [REQUIRED]
The method to use for testing the connection to the procurement portal.
EinvoiceDeliveryActivationDate (datetime) -- [REQUIRED]
The date when e-invoice delivery should be activated for this preference.
boolean
[REQUIRED]
Indicates whether purchase order retrieval is enabled for this procurement portal preference. Set to true to enable PO retrieval, false to disable.
boolean
Specifies whether Amazon Web Services Marketplace PunchOut is enabled for this procurement portal connection. The default value is false.
dict
The configuration for Amazon Web Services Marketplace PunchOut. This member is required for Coupa when MarketplacePunchOutEnabled is true.
ApprovalRequestRedirectUrl (string) --
The URL that buyers are redirected to for approval requests in the procurement portal. This is only supported for Coupa. When provided together with the procurement portal instance endpoint, its host must match the host of that endpoint.
list
[REQUIRED]
List of contact information for portal administrators and technical contacts responsible for the e-invoice integration.
(dict) --
Represents contact information for a person or role associated with the procurement portal preference.
Name (string) --
The name of the contact person or role.
Email (string) --
The email address of the contact person or role.
list
The tags to apply to this procurement portal preference resource. Each tag consists of a key and an optional value.
(dict) --
The tag structure that contains a tag key and value.
Key (string) -- [REQUIRED]
The object key of your of your resource tag.
Value (string) -- [REQUIRED]
The specific value of the resource tag.
string
A unique, case-sensitive identifier that you provide to ensure idempotency of the request.
This field is autopopulated if not provided.
dict
Response Syntax
{
'ProcurementPortalPreferenceArn': 'string'
}
Response Structure
(dict) --
ProcurementPortalPreferenceArn (string) --
The Amazon Resource Name (ARN) of the created procurement portal preference.
{'ProcurementPortalPreference': {'EinvoiceDeliveryEmail': 'string',
'EinvoiceDeliveryPreference': {'Protocol': {'UBL'}},
'ProcurementPortalName': {'ZIP'},
'TestEnvPreference': {'EinvoiceDeliveryEmail': 'string'}}}
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.
See also: AWS API Documentation
Request Syntax
client.get_procurement_portal_preference(
ProcurementPortalPreferenceArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the procurement portal preference to retrieve.
dict
Response Syntax
{
'ProcurementPortalPreference': {
'AwsAccountId': 'string',
'ProcurementPortalPreferenceArn': 'string',
'ProcurementPortalName': 'SAP_BUSINESS_NETWORK'|'COUPA'|'ZIP',
'BuyerDomain': 'NetworkID',
'BuyerIdentifier': 'string',
'EinvoiceDeliveryEmail': 'string',
'SupplierDomain': 'NetworkID',
'SupplierIdentifier': 'string',
'Selector': {
'InvoiceUnitArns': [
'string',
],
'SellerOfRecords': [
'string',
]
},
'ProcurementPortalSharedSecret': 'string',
'ProcurementPortalInstanceEndpoint': 'string',
'PurchaseOrderRetrievalEndpoint': 'string',
'TestEnvPreference': {
'BuyerDomain': 'NetworkID',
'BuyerIdentifier': 'string',
'SupplierDomain': 'NetworkID',
'SupplierIdentifier': 'string',
'ProcurementPortalSharedSecret': 'string',
'ProcurementPortalInstanceEndpoint': 'string',
'PurchaseOrderRetrievalEndpoint': 'string',
'EinvoiceDeliveryEmail': 'string'
},
'EinvoiceDeliveryEnabled': True|False,
'EinvoiceDeliveryPreference': {
'EinvoiceDeliveryDocumentTypes': [
'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
],
'EinvoiceDeliveryAttachmentTypes': [
'INVOICE_PDF'|'RFP_PDF',
],
'Protocol': 'CXML'|'UBL',
'PurchaseOrderDataSources': [
{
'EinvoiceDeliveryDocumentType': 'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
'PurchaseOrderDataSourceType': 'ASSOCIATED_PURCHASE_ORDER_REQUIRED'|'PURCHASE_ORDER_NOT_REQUIRED'
},
],
'ConnectionTestingMethod': 'PROD_ENV_DOLLAR_TEST'|'TEST_ENV_REPLAY_TEST',
'EinvoiceDeliveryActivationDate': datetime(2015, 1, 1)
},
'PurchaseOrderRetrievalEnabled': True|False,
'MarketplacePunchOutEnabled': True|False,
'MarketplacePunchOutPreference': {
'ApprovalRequestRedirectUrl': 'string'
},
'Contacts': [
{
'Name': 'string',
'Email': 'string'
},
],
'EinvoiceDeliveryPreferenceStatus': 'PENDING_VERIFICATION'|'VALIDATED'|'TEST_INITIALIZED'|'TEST_INITIALIZATION_FAILED'|'TEST_FAILED'|'ACTIVE'|'SUSPENDED',
'EinvoiceDeliveryPreferenceStatusReason': 'string',
'PurchaseOrderRetrievalPreferenceStatus': 'PENDING_VERIFICATION'|'VALIDATED'|'TEST_INITIALIZED'|'TEST_INITIALIZATION_FAILED'|'TEST_FAILED'|'ACTIVE'|'SUSPENDED',
'PurchaseOrderRetrievalPreferenceStatusReason': 'string',
'Version': 123,
'CreateDate': datetime(2015, 1, 1),
'LastUpdateDate': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
ProcurementPortalPreference (dict) --
The detailed configuration of the requested procurement portal preference.
AwsAccountId (string) --
The Amazon Web Services account ID associated with this procurement portal preference.
ProcurementPortalPreferenceArn (string) --
The Amazon Resource Name (ARN) of the procurement portal preference.
ProcurementPortalName (string) --
The name of the procurement portal.
BuyerDomain (string) --
The domain identifier for the buyer in the procurement portal.
BuyerIdentifier (string) --
The unique identifier for the buyer in the procurement portal.
EinvoiceDeliveryEmail (string) --
The production email address that receives customer invoices for Zip.
SupplierDomain (string) --
The domain identifier for the supplier in the procurement portal.
SupplierIdentifier (string) --
The supplier identifier in the procurement portal.
Selector (dict) --
Specifies criteria for selecting which invoices should be processed using a particular procurement portal preference.
InvoiceUnitArns (list) --
The Amazon Resource Name (ARN) of invoice unit identifiers to which this preference applies.
(string) --
SellerOfRecords (list) --
The list of seller of record IDs to which this preference applies.
(string) --
ProcurementPortalSharedSecret (string) --
The shared secret or authentication credential used for secure communication with the procurement portal.
ProcurementPortalInstanceEndpoint (string) --
The endpoint URL where e-invoices are delivered to the procurement portal.
PurchaseOrderRetrievalEndpoint (string) --
The endpoint URL used for retrieving purchase orders from the procurement portal.
TestEnvPreference (dict) --
Configuration on settings for the test environment of the procurement portal.
BuyerDomain (string) --
The domain identifier for the buyer in the test environment of the procurement portal.
BuyerIdentifier (string) --
The unique identifier for the buyer in the test environment of the procurement portal.
SupplierDomain (string) --
The domain identifier for the supplier in the test environment of the procurement portal.
SupplierIdentifier (string) --
Specifies the supplier identifier in the test environment of the procurement portal.
ProcurementPortalSharedSecret (string) --
The shared secret or authentication credential used for secure communication with the test environment.
ProcurementPortalInstanceEndpoint (string) --
The endpoint URL where e-invoices are delivered in the test environment.
PurchaseOrderRetrievalEndpoint (string) --
The endpoint URL used for retrieving purchase orders in the test environment.
EinvoiceDeliveryEmail (string) --
The test environment email address that receives customer invoices for Zip.
EinvoiceDeliveryEnabled (boolean) --
Indicates whether e-invoice delivery is enabled for this procurement portal preference.
EinvoiceDeliveryPreference (dict) --
The e-invoice delivery configuration including document types, attachment types, and customization settings.
EinvoiceDeliveryDocumentTypes (list) --
The types of e-invoice documents to be delivered.
(string) --
EinvoiceDeliveryAttachmentTypes (list) --
The types of attachments to include with the e-invoice delivery.
(string) --
Protocol (string) --
The communication protocol to use for e-invoice delivery. The value depends on the portal:
For Zip, use Universal Business Language ( UBL).
For all other procurement portals, use commerce eXtensible Markup Language (cXML).
PurchaseOrderDataSources (list) --
The sources of purchase order data to use for e-invoice generation and delivery.
(dict) --
Specifies the source configuration for retrieving purchase order data.
EinvoiceDeliveryDocumentType (string) --
The type of e-invoice document that requires purchase order data.
PurchaseOrderDataSourceType (string) --
The type of source for purchase order data.
ConnectionTestingMethod (string) --
The method to use for testing the connection to the procurement portal.
EinvoiceDeliveryActivationDate (datetime) --
The date when e-invoice delivery should be activated for this preference.
PurchaseOrderRetrievalEnabled (boolean) --
Indicates whether purchase order retrieval is enabled for this procurement portal preference.
MarketplacePunchOutEnabled (boolean) --
Indicates whether Amazon Web Services Marketplace PunchOut is enabled for this procurement portal preference. Defaults to false.
MarketplacePunchOutPreference (dict) --
The Amazon Web Services Marketplace PunchOut configuration for this procurement portal preference. This is present when MarketplacePunchOutEnabled is true.
ApprovalRequestRedirectUrl (string) --
The URL that buyers are redirected to for approval requests in the procurement portal. This is only supported for Coupa. When provided together with the procurement portal instance endpoint, its host must match the host of that endpoint.
Contacts (list) --
List of contact information for portal administrators and technical contacts.
(dict) --
Represents contact information for a person or role associated with the procurement portal preference.
Name (string) --
The name of the contact person or role.
Email (string) --
The email address of the contact person or role.
EinvoiceDeliveryPreferenceStatus (string) --
The current status of the e-invoice delivery preference.
EinvoiceDeliveryPreferenceStatusReason (string) --
The reason for the current e-invoice delivery preference status.
PurchaseOrderRetrievalPreferenceStatus (string) --
The current status of the purchase order retrieval preference.
PurchaseOrderRetrievalPreferenceStatusReason (string) --
The reason for the current purchase order retrieval preference status.
Version (integer) --
The version number of the procurement portal preference configuration.
CreateDate (datetime) --
The date and time when the procurement portal preference was created.
LastUpdateDate (datetime) --
The date and time when the procurement portal preference was last updated.
{'InvoiceSummaries': {'InvoiceType': {'SETTLEMENT_STATEMENT',
'SETTLEMENT_STATEMENT_CREDIT'}}}
Retrieves your invoice details programmatically, without line item details.
See also: AWS API Documentation
Request Syntax
client.list_invoice_summaries(
Selector={
'ResourceType': 'ACCOUNT_ID'|'INVOICE_ID',
'Value': 'string'
},
Filter={
'TimeInterval': {
'StartDate': datetime(2015, 1, 1),
'EndDate': datetime(2015, 1, 1)
},
'BillingPeriod': {
'Month': 123,
'Year': 123
},
'InvoicingEntity': 'string',
'ReceiverRole': 'SELLER'|'RESELLER'|'BUYER'
},
NextToken='string',
MaxResults=123
)
dict
[REQUIRED]
The option to retrieve details for a specific invoice by providing its unique ID. Alternatively, access information for all invoices linked to the account by providing an account ID.
ResourceType (string) -- [REQUIRED]
The query identifier type ( INVOICE_ID or ACCOUNT_ID).
Value (string) -- [REQUIRED]
The value of the query identifier.
dict
Filters you can use to customize your invoice summary.
TimeInterval (dict) --
The date range for invoice summary retrieval.
StartDate (datetime) -- [REQUIRED]
The beginning of the time period that you want invoice-related documents for. The start date is inclusive. For example, if start is 2019-01-01, AWS retrieves invoices starting at 2019-01-01 up to the end date.
EndDate (datetime) -- [REQUIRED]
The end of the time period that you want invoice-related documents for. The end date is exclusive. For example, if end is 2019-01-10, Amazon Web Services retrieves invoice-related documents from the start date up to, but not including, 2018-01-10.
BillingPeriod (dict) --
The billing period associated with the invoice documents.
Month (integer) -- [REQUIRED]
The billing period month.
Year (integer) -- [REQUIRED]
The billing period year.
InvoicingEntity (string) --
The name of the entity that issues the Amazon Web Services invoice.
ReceiverRole (string) --
The role of the invoice receiver to filter by.
string
The token for the next set of results. (You received this token from a previous call.)
integer
The maximum number of invoice summaries a paginated response can contain.
dict
Response Syntax
{
'InvoiceSummaries': [
{
'AccountId': 'string',
'InvoiceId': 'string',
'IssuedDate': datetime(2015, 1, 1),
'DueDate': datetime(2015, 1, 1),
'BillSourceAccounts': [
'string',
],
'BillSourceAccountsTotalCount': 123,
'ReceiverRole': 'SELLER'|'RESELLER'|'BUYER',
'Entity': {
'InvoicingEntity': 'string',
'BillingEntity': 'AWS'|'AWS_MARKETPLACE'
},
'BillingPeriod': {
'Month': 123,
'Year': 123
},
'InvoiceFrequency': 'ONE_TIME'|'RECURRING',
'BillType': 'ANNIVERSARY'|'PURCHASE'|'REFUND',
'InvoiceType': 'INVOICE'|'CREDIT_MEMO'|'PAYMENT_RECEIPT'|'SETTLEMENT_STATEMENT'|'SETTLEMENT_STATEMENT_CREDIT',
'CommercialInvoiceId': 'string',
'OriginalInvoiceId': 'string',
'PurchaseOrderNumber': 'string',
'EinvoiceDeliveryStatus': 'DELIVERED'|'NOT_DELIVERED',
'TaxAuthorityStatus': 'ISSUED'|'CANCELLED',
'BaseCurrencyAmount': {
'TotalAmount': 'string',
'TotalAmountBeforeTax': 'string',
'CurrencyCode': 'string',
'AmountBreakdown': {
'SubTotalAmount': 'string',
'Discounts': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
},
'Taxes': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
},
'Fees': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
}
},
'CurrencyExchangeDetails': {
'SourceCurrencyCode': 'string',
'TargetCurrencyCode': 'string',
'Rate': 'string'
}
},
'TaxCurrencyAmount': {
'TotalAmount': 'string',
'TotalAmountBeforeTax': 'string',
'CurrencyCode': 'string',
'AmountBreakdown': {
'SubTotalAmount': 'string',
'Discounts': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
},
'Taxes': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
},
'Fees': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
}
},
'CurrencyExchangeDetails': {
'SourceCurrencyCode': 'string',
'TargetCurrencyCode': 'string',
'Rate': 'string'
}
},
'PaymentCurrencyAmount': {
'TotalAmount': 'string',
'TotalAmountBeforeTax': 'string',
'CurrencyCode': 'string',
'AmountBreakdown': {
'SubTotalAmount': 'string',
'Discounts': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
},
'Taxes': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
},
'Fees': {
'Breakdown': [
{
'Description': 'string',
'Amount': 'string',
'Rate': 'string'
},
],
'TotalAmount': 'string'
}
},
'CurrencyExchangeDetails': {
'SourceCurrencyCode': 'string',
'TargetCurrencyCode': 'string',
'Rate': 'string'
}
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
InvoiceSummaries (list) --
List of key (summary level) invoice details without line item details.
(dict) --
The invoice that the API retrieved.
AccountId (string) --
The Amazon Web Services account ID.
InvoiceId (string) --
The invoice ID.
IssuedDate (datetime) --
The issued date of the invoice.
DueDate (datetime) --
The invoice due date.
BillSourceAccounts (list) --
The list of Amazon Web Services account IDs that are the bill source of the invoice. Currently, only a single bill source account is returned.
(string) --
BillSourceAccountsTotalCount (integer) --
The total number of accounts that are the bill source of the invoice.
ReceiverRole (string) --
The role of the invoice receiver.
Entity (dict) --
The organization name providing Amazon Web Services services.
InvoicingEntity (string) --
The name of the entity that issues the Amazon Web Services invoice.
BillingEntity (string) --
Helps you identify whether your invoices are for Amazon Web Services Marketplace or for purchases of other Amazon Web Services services.
BillingPeriod (dict) --
The billing period of the invoice-related document.
Month (integer) --
The billing period month.
Year (integer) --
The billing period year.
InvoiceFrequency (string) --
The frequency of the invoice.
BillType (string) --
The type of the bill.
InvoiceType (string) --
The type of invoice.
CommercialInvoiceId (string) --
The commercial invoice ID. This is only applicable for tax invoices and identifies the associated commercial invoice.
OriginalInvoiceId (string) --
The initial or original invoice ID.
PurchaseOrderNumber (string) --
The purchase order number associated to the invoice.
EinvoiceDeliveryStatus (string) --
The e-invoice delivery status.
TaxAuthorityStatus (string) --
The current status of an invoice as reported to the tax authority. This captures scenarios where an invoice may be cancelled after issuance.
BaseCurrencyAmount (dict) --
The summary with the product and service currency.
TotalAmount (string) --
The invoice currency amount.
TotalAmountBeforeTax (string) --
Details about the invoice total amount before tax.
CurrencyCode (string) --
The currency dominion of the invoice document.
AmountBreakdown (dict) --
Details about the invoice currency amount.
SubTotalAmount (string) --
The total of a set of the breakdown.
Discounts (dict) --
The discounted amount.
Breakdown (list) --
The list of discounts information.
(dict) --
The discounted amount.
Description (string) --
The list of discounts information.
Amount (string) --
The discounted amount.
Rate (string) --
The details for the discount rate..
TotalAmount (string) --
The discount's total amount.
Taxes (dict) --
The tax amount.
Breakdown (list) --
A list of tax information.
(dict) --
The tax amount.
Description (string) --
The details of the taxes.
Amount (string) --
The tax amount.
Rate (string) --
The details of the tax rate.
TotalAmount (string) --
The total amount for your taxes.
Fees (dict) --
The fee amount.
Breakdown (list) --
The list of fees information.
(dict) --
The fee amount.
Description (string) --
The list of fees information.
Amount (string) --
The fee amount.
Rate (string) --
Details about the rate amount.
TotalAmount (string) --
The total amount of fees.
CurrencyExchangeDetails (dict) --
The details of currency exchange.
SourceCurrencyCode (string) --
The exchange source currency.
TargetCurrencyCode (string) --
The exchange target currency.
Rate (string) --
The currency exchange rate.
TaxCurrencyAmount (dict) --
The summary with the tax currency.
TotalAmount (string) --
The invoice currency amount.
TotalAmountBeforeTax (string) --
Details about the invoice total amount before tax.
CurrencyCode (string) --
The currency dominion of the invoice document.
AmountBreakdown (dict) --
Details about the invoice currency amount.
SubTotalAmount (string) --
The total of a set of the breakdown.
Discounts (dict) --
The discounted amount.
Breakdown (list) --
The list of discounts information.
(dict) --
The discounted amount.
Description (string) --
The list of discounts information.
Amount (string) --
The discounted amount.
Rate (string) --
The details for the discount rate..
TotalAmount (string) --
The discount's total amount.
Taxes (dict) --
The tax amount.
Breakdown (list) --
A list of tax information.
(dict) --
The tax amount.
Description (string) --
The details of the taxes.
Amount (string) --
The tax amount.
Rate (string) --
The details of the tax rate.
TotalAmount (string) --
The total amount for your taxes.
Fees (dict) --
The fee amount.
Breakdown (list) --
The list of fees information.
(dict) --
The fee amount.
Description (string) --
The list of fees information.
Amount (string) --
The fee amount.
Rate (string) --
Details about the rate amount.
TotalAmount (string) --
The total amount of fees.
CurrencyExchangeDetails (dict) --
The details of currency exchange.
SourceCurrencyCode (string) --
The exchange source currency.
TargetCurrencyCode (string) --
The exchange target currency.
Rate (string) --
The currency exchange rate.
PaymentCurrencyAmount (dict) --
The summary with the customer configured currency.
TotalAmount (string) --
The invoice currency amount.
TotalAmountBeforeTax (string) --
Details about the invoice total amount before tax.
CurrencyCode (string) --
The currency dominion of the invoice document.
AmountBreakdown (dict) --
Details about the invoice currency amount.
SubTotalAmount (string) --
The total of a set of the breakdown.
Discounts (dict) --
The discounted amount.
Breakdown (list) --
The list of discounts information.
(dict) --
The discounted amount.
Description (string) --
The list of discounts information.
Amount (string) --
The discounted amount.
Rate (string) --
The details for the discount rate..
TotalAmount (string) --
The discount's total amount.
Taxes (dict) --
The tax amount.
Breakdown (list) --
A list of tax information.
(dict) --
The tax amount.
Description (string) --
The details of the taxes.
Amount (string) --
The tax amount.
Rate (string) --
The details of the tax rate.
TotalAmount (string) --
The total amount for your taxes.
Fees (dict) --
The fee amount.
Breakdown (list) --
The list of fees information.
(dict) --
The fee amount.
Description (string) --
The list of fees information.
Amount (string) --
The fee amount.
Rate (string) --
Details about the rate amount.
TotalAmount (string) --
The total amount of fees.
CurrencyExchangeDetails (dict) --
The details of currency exchange.
SourceCurrencyCode (string) --
The exchange source currency.
TargetCurrencyCode (string) --
The exchange target currency.
Rate (string) --
The currency exchange rate.
NextToken (string) --
The token to use to retrieve the next set of results, or null if there are no more results.
{'ProcurementPortalPreferences': {'ProcurementPortalName': {'ZIP'}}}
This 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.
See also: AWS API Documentation
Request Syntax
client.list_procurement_portal_preferences(
NextToken='string',
MaxResults=123
)
string
The token for the next set of results. (You received this token from a previous call.)
integer
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
dict
Response Syntax
{
'ProcurementPortalPreferences': [
{
'AwsAccountId': 'string',
'ProcurementPortalPreferenceArn': 'string',
'ProcurementPortalName': 'SAP_BUSINESS_NETWORK'|'COUPA'|'ZIP',
'BuyerDomain': 'NetworkID',
'BuyerIdentifier': 'string',
'SupplierDomain': 'NetworkID',
'SupplierIdentifier': 'string',
'Selector': {
'InvoiceUnitArns': [
'string',
],
'SellerOfRecords': [
'string',
]
},
'EinvoiceDeliveryEnabled': True|False,
'PurchaseOrderRetrievalEnabled': True|False,
'MarketplacePunchOutEnabled': True|False,
'EinvoiceDeliveryPreferenceStatus': 'PENDING_VERIFICATION'|'VALIDATED'|'TEST_INITIALIZED'|'TEST_INITIALIZATION_FAILED'|'TEST_FAILED'|'ACTIVE'|'SUSPENDED',
'EinvoiceDeliveryPreferenceStatusReason': 'string',
'PurchaseOrderRetrievalPreferenceStatus': 'PENDING_VERIFICATION'|'VALIDATED'|'TEST_INITIALIZED'|'TEST_INITIALIZATION_FAILED'|'TEST_FAILED'|'ACTIVE'|'SUSPENDED',
'PurchaseOrderRetrievalPreferenceStatusReason': 'string',
'Version': 123,
'CreateDate': datetime(2015, 1, 1),
'LastUpdateDate': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ProcurementPortalPreferences (list) --
The list of procurement portal preferences associated with the Amazon Web Services account.
(dict) --
Provides a summary of a procurement portal preference, including key identifiers and status information.
AwsAccountId (string) --
The Amazon Web Services account ID associated with this procurement portal preference summary.
ProcurementPortalPreferenceArn (string) --
The Amazon Resource Name (ARN) of the procurement portal preference.
ProcurementPortalName (string) --
The name of the procurement portal.
BuyerDomain (string) --
The domain identifier for the buyer in the procurement portal.
BuyerIdentifier (string) --
The unique identifier for the buyer in the procurement portal.
SupplierDomain (string) --
The domain identifier for the supplier in the procurement portal.
SupplierIdentifier (string) --
The supplier identifier in the procurement portal.
Selector (dict) --
Specifies criteria for selecting which invoices should be processed using a particular procurement portal preference.
InvoiceUnitArns (list) --
The Amazon Resource Name (ARN) of invoice unit identifiers to which this preference applies.
(string) --
SellerOfRecords (list) --
The list of seller of record IDs to which this preference applies.
(string) --
EinvoiceDeliveryEnabled (boolean) --
Indicates whether e-invoice delivery is enabled for this procurement portal preference.
PurchaseOrderRetrievalEnabled (boolean) --
Indicates whether purchase order retrieval is enabled for this procurement portal preference.
MarketplacePunchOutEnabled (boolean) --
Indicates whether Amazon Web Services Marketplace PunchOut is enabled for this procurement portal preference. Defaults to false.
EinvoiceDeliveryPreferenceStatus (string) --
The current status of the e-invoice delivery preference in this summary.
EinvoiceDeliveryPreferenceStatusReason (string) --
The reason for the current e-invoice delivery preference status in this summary.
PurchaseOrderRetrievalPreferenceStatus (string) --
The current status of the purchase order retrieval preference in this summary.
PurchaseOrderRetrievalPreferenceStatusReason (string) --
The reason for the current purchase order retrieval preference status in this summary.
Version (integer) --
The version number of the procurement portal preference configuration in this summary.
CreateDate (datetime) --
The date and time when the procurement portal preference was created.
LastUpdateDate (datetime) --
The date and time when the procurement portal preference was last updated.
NextToken (string) --
The token to use to retrieve the next set of results, or null if there are no more results.
{'ProcurementPortals': {'PortalName': {'ZIP'}}}
Returns the Amazon Web Services-supported procurement portals for e-invoice delivery and purchase order retrieval. Each entry includes the portal identifier, name, and default feature configurations, which define the supported document and attachment types. For faster, more reliable responses, use pagination.
See also: AWS API Documentation
Request Syntax
client.list_procurement_portals(
NextToken='string',
MaxResults=123
)
string
The token for the next set of results. You received this token from a previous call.
integer
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. Default is 100.
dict
Response Syntax
{
'ProcurementPortals': [
{
'PortalIdentifier': 'string',
'PortalName': 'SAP_BUSINESS_NETWORK'|'COUPA'|'ZIP',
'PortalDisplayName': 'string',
'DefaultFeatureConfigurations': {
'InvoiceConfiguration': {
'DocumentTypes': [
'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
],
'AttachmentTypes': [
'INVOICE_PDF'|'RFP_PDF',
]
}
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ProcurementPortals (list) --
The list of procurement portals available for configuration.
(dict) --
Contains metadata for a procurement portal, including the portal identifier, name, and default feature configurations.
PortalIdentifier (string) --
The unique identifier of the procurement portal.
PortalName (string) --
The name of the procurement portal.
PortalDisplayName (string) --
The display name of the procurement portal.
DefaultFeatureConfigurations (dict) --
The default feature configurations for the procurement portal.
InvoiceConfiguration (dict) --
The invoice configuration settings for the procurement portal.
DocumentTypes (list) --
The e-invoice document types supported by the procurement portal.
(string) --
AttachmentTypes (list) --
The attachment types supported by the procurement portal for e-invoice delivery.
(string) --
NextToken (string) --
The token to use to retrieve the next set of results, or null if there are no more results.
{'EinvoiceDeliveryPreference': {'Protocol': {'UBL'}},
'TestEnvPreference': {'EinvoiceDeliveryEmail': 'string'}}
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.
See also: AWS API Documentation
Request Syntax
client.put_procurement_portal_preference(
ProcurementPortalPreferenceArn='string',
Selector={
'InvoiceUnitArns': [
'string',
],
'SellerOfRecords': [
'string',
]
},
ProcurementPortalSharedSecret='string',
ProcurementPortalInstanceEndpoint='string',
TestEnvPreference={
'BuyerDomain': 'NetworkID',
'BuyerIdentifier': 'string',
'SupplierDomain': 'NetworkID',
'SupplierIdentifier': 'string',
'ProcurementPortalSharedSecret': 'string',
'ProcurementPortalInstanceEndpoint': 'string',
'EinvoiceDeliveryEmail': 'string'
},
EinvoiceDeliveryEnabled=True|False,
EinvoiceDeliveryPreference={
'EinvoiceDeliveryDocumentTypes': [
'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
],
'EinvoiceDeliveryAttachmentTypes': [
'INVOICE_PDF'|'RFP_PDF',
],
'Protocol': 'CXML'|'UBL',
'PurchaseOrderDataSources': [
{
'EinvoiceDeliveryDocumentType': 'AWS_CLOUD_INVOICE'|'AWS_CLOUD_CREDIT_MEMO'|'AWS_MARKETPLACE_INVOICE'|'AWS_MARKETPLACE_CREDIT_MEMO'|'AWS_REQUEST_FOR_PAYMENT',
'PurchaseOrderDataSourceType': 'ASSOCIATED_PURCHASE_ORDER_REQUIRED'|'PURCHASE_ORDER_NOT_REQUIRED'
},
],
'ConnectionTestingMethod': 'PROD_ENV_DOLLAR_TEST'|'TEST_ENV_REPLAY_TEST',
'EinvoiceDeliveryActivationDate': datetime(2015, 1, 1)
},
PurchaseOrderRetrievalEnabled=True|False,
MarketplacePunchOutEnabled=True|False,
MarketplacePunchOutPreference={
'ApprovalRequestRedirectUrl': 'string'
},
Contacts=[
{
'Name': 'string',
'Email': 'string'
},
],
ClientToken='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the procurement portal preference to update.
dict
Specifies criteria for selecting which invoices should be processed using a particular procurement portal preference.
InvoiceUnitArns (list) --
The Amazon Resource Name (ARN) of invoice unit identifiers to which this preference applies.
(string) --
SellerOfRecords (list) --
The list of seller of record IDs to which this preference applies.
(string) --
string
The updated shared secret or authentication credential for the procurement portal. This value must be encrypted at rest.
string
The updated endpoint URL where e-invoices will be delivered to the procurement portal. Must be a valid HTTPS URL.
dict
Updated configuration settings for the test environment of the procurement portal.
BuyerDomain (string) -- [REQUIRED]
The domain identifier to use for the buyer in the test environment.
BuyerIdentifier (string) -- [REQUIRED]
The unique identifier to use for the buyer in the test environment.
SupplierDomain (string) -- [REQUIRED]
The domain identifier to use for the supplier in the test environment.
SupplierIdentifier (string) -- [REQUIRED]
Specifies the supplier identifier in the test environment. The value depends on the portal:
For Coupa, specify a free-form value.
For all other portals, use the exact SupplierIdentifier that ListProcurementPortalSuppliers returns for the test environment.
ProcurementPortalSharedSecret (string) --
The shared secret or authentication credential to use for secure communication in the test environment.
ProcurementPortalInstanceEndpoint (string) --
The endpoint URL where e-invoices will be delivered in the test environment.
EinvoiceDeliveryEmail (string) --
The test environment email address that receives customer invoices for Zip.
boolean
[REQUIRED]
Updated flag indicating whether e-invoice delivery is enabled for this procurement portal preference.
dict
Updated e-invoice delivery configuration including document types, attachment types, and customization settings for the portal.
EinvoiceDeliveryDocumentTypes (list) -- [REQUIRED]
The types of e-invoice documents to be delivered.
(string) --
EinvoiceDeliveryAttachmentTypes (list) --
The types of attachments to include with the e-invoice delivery.
(string) --
Protocol (string) -- [REQUIRED]
The communication protocol to use for e-invoice delivery. The value depends on the portal:
For Zip, use Universal Business Language ( UBL).
For all other procurement portals, use commerce eXtensible Markup Language (cXML).
PurchaseOrderDataSources (list) -- [REQUIRED]
The sources of purchase order data to use for e-invoice generation and delivery.
(dict) --
Specifies the source configuration for retrieving purchase order data.
EinvoiceDeliveryDocumentType (string) --
The type of e-invoice document that requires purchase order data.
PurchaseOrderDataSourceType (string) --
The type of source for purchase order data.
ConnectionTestingMethod (string) -- [REQUIRED]
The method to use for testing the connection to the procurement portal.
EinvoiceDeliveryActivationDate (datetime) -- [REQUIRED]
The date when e-invoice delivery should be activated for this preference.
boolean
[REQUIRED]
Updated flag indicating whether purchase order retrieval is enabled for this procurement portal preference.
boolean
Specifies whether Amazon Web Services Marketplace PunchOut is enabled for this connection. The default value is false.
dict
The configuration for Amazon Web Services Marketplace PunchOut. This member is required for Coupa when MarketplacePunchOutEnabled is true.
ApprovalRequestRedirectUrl (string) --
The URL that buyers are redirected to for approval requests in the procurement portal. This is only supported for Coupa. When provided together with the procurement portal instance endpoint, its host must match the host of that endpoint.
list
[REQUIRED]
Updated list of contact information for portal administrators and technical contacts.
(dict) --
Represents contact information for a person or role associated with the procurement portal preference.
Name (string) --
The name of the contact person or role.
Email (string) --
The email address of the contact person or role.
string
A unique, case-sensitive identifier that you provide to ensure idempotency of the request.
This field is autopopulated if not provided.
dict
Response Syntax
{
'ProcurementPortalPreferenceArn': 'string'
}
Response Structure
(dict) --
ProcurementPortalPreferenceArn (string) --
The Amazon Resource Name (ARN) of the updated procurement portal preference.