---
sourceDocument: オーストラリア API リファレンス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/api-reference

 Release :

    - australia

ft:locale :

    - ja-JP

ft:publication_title :

    - オーストラリア API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# AP 請求書 API

# AP 請求書 API {#ariaid-title1}

* リリースバージョン: Australia
* 
* 更新日 2026年03月12日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：183分

ベンダーが使用する外部システムなどの外部システムが、構造化され自動化された方法で買掛金システムに請求書を安全に直接送信できるようにします。
この API には、`sn_spend_intg` 名前空間内で提供される買掛金請求書処理 (com.sn_ap_apm) ストアアプリケーションが必要です。詳細については、「[Accounts Payable Invoice Processing](https://www.servicenow.com/docs/access?context=acc-pay-invoice-processing&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。  
次のタスクのヘルプについては、「 [AP 請求書 API 開発者ガイド](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-dev-guide "この開発者ガイドでは、買掛金請求書処理 用の AP 請求書 API でデフォルトで提供されていないカスタム請求書フィールドを定義する方法について説明します。cXML をペイロードとして使用する場合に認証を設定する手順も説明されています。") 」を参照してください。

* 請求書、請求書明細行、請求書税明細行のカスタムフィールドを定義します。
* ソーステーブルとターゲットテーブルの間でカスタムフィールドをマッピングします。
* カスタムフィールドを特定の形式 (JSON、CXML、XML など) のペイロードエントリにマッピングします。
* cXML をペイロードとして使用する場合の認証用の認証情報の設定。
{#ap-invoice-api__ul_nns_lmr_tdc}

複数の ERP を含む請求書明細にフィルター条件を適用できます。詳細については、「[Integration errors](https://www.servicenow.com/docs/access?context=integration-errors-during-erp-posting&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。  
注:  
デフォルトのペイロードの最大サイズは 100 レコードです。この値は、 sn_spend_intg.ap.invoice.create.api.record_limit システムのプロパティで構成できます。

請求書添付ファイル
:   XML および JSON エンドポイントは、請求書、請求書明細行、および請求書ケースレベルで添付ファイルをサポートしています。cXML エンドポイントは添付ファイルをサポートしていません。
:   添付ファイルについては、次のガイドラインを使用してください。

    * 添付ファイル名に予約済みの「SD_」プレフィックスを使用しないでください。
    * すべての添付ファイルは Base64 形式でエンコードする必要があります。
    {#ap-invoice-api__ul_fwt_snx_bgc}

## AP 請求書 -- POST sn_spend_intg/ap_invoice/cxml {#ariaid-title2}

コマース XML (cXML) 形式の自動請求書を処理します。
請求書統合フィールドマッピング \[sn_spend_intg_invoice_intg_field_mapping\] テーブルを使用して、フィールドを cXML タグにマッピングする方法を決定します。

追加のcXMLリソースについては、[https://xml.cxml.org](https://xml.cxml.org/current/cXMLReferenceGuide.pdf) のcXMLリファレンスガイドを参照してください。

この API の認証情報はペイロードに含まれています。ソースシステム認証情報 \[sn_spend_intg_source_system_credential\] テーブルで認証情報を設定できます。手順については、「[cXML ペイロードでの認証用の認証情報の設定](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-setCxmlCreds "sn_spend_intg/ap_invoice/cxml エンドポイントは、ソースシステム認証情報 [sn_spend_intg_source_system_credential] テーブルに格納されている認証情報を使用してペイロードで認証されます。")」を参照してください。  
要求本文のカスタム請求書フィールドを定義できます。次のフローを使用して、カスタムフィールドを追加し、ターゲットテーブルにマッピングして、ペイロードで使用できるようにフォーマットします。

1. [請求書インポートのカスタムフィールドを追加](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-addColToTable "AP 請求書 API で使用する請求書、請求書明細行、および請求書税明細行のカスタムフィールドを追加するには、次の手順を使用します。")
2. [ソーステーブルとターゲットテーブルの間のカスタムフィールドのマッピング](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-mapFieldsTransform "AP 請求書 API のソーステーブルとターゲットテーブルの間でカスタムフィールドをマッピングするには、次の手順を使用します。")
3. [カスタムフィールドのペイロードソース形式へのマッピング](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-mapFieldsTSrcFormat "AP 請求書 API の JSON、cXML、または XML のペイロードエントリにカスタムフィールドをマップするには、次の手順を使用します。")
{#ap_invoice-POST-cxml__ul_kcx_5fx_sdc}

### URL 形式

バージョニングされた URL: /api/sn_spend_intg/v1/ap_invoice/cxml

デフォルト URL: /api/sn_spend_intg/ap_invoice/cxml

### サポートされている要求パラメーター

{#ap_invoice-POST-cxml__entry__2}{#ap_invoice-POST-cxml__version-not_optional-RESTAPI}

| 名前 | 説明 |
|-|-|
| api_version | オプション。アクセスするエンドポイントのバージョン。たとえば、 <kbd class="ph userinput">v1</kbd> や <kbd class="ph userinput">v2</kbd> などです。最新以外のエンドポイントバージョンを使用する場合にのみ、この値を指定してください。 データタイプ：文字列 |
[表 : 1. パスパラメーター]

{#ap_invoice-POST-cxml__entry__6}

| 名前 | 説明 |
|-|-|
| なし |   |
[表 : 2. クエリパラメーター]

{#ap_invoice-POST-cxml__entry__10}

| パス | 説明 |
|-|-|
| /cXML/header/from /credential\[@domain='VendorID'\]/identity | 顧客が注文できるリセラーまたはサプライヤーの識別子。 ターゲットフィールド:u_supplier 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader\[@invoiceDate\] | 顧客に請求された日付。 ターゲットフィールド:u_invoice_date 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] 形式：YYYY-MM-DD |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader\[@invoiceID\] | サードパーティアプリケーションから生成された請求書番号。 ターゲットフィールド:u_external_invoice_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader\[@invoiceOrigin\] | 請求書の受領元の外部ソースシステム。たとえば、サプライヤーです。 ターゲットフィールド:u_inbound_source 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader/InvoicePartner /contact\[@role='billTo'\]/PostalAddress/City | 請求書の送信先の市区町村。 ターゲットフィールド:u_bill_to_city 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader/InvoicePartner /contact\[@role='billTo'\]/PostalAddress/Country | 請求書の送信先の国 (ISO 3166 形式)。たとえば、 `US` です。 ターゲットフィールド:u_bill_to_country 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader/InvoicePartner /contact\[@role='billTo'\]/PostalAddress/State | 請求書の送信先の都道府県。 ターゲットフィールド:u_bill_to_state_or_province 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader/InvoicePartner /contact\[@role='billTo'\]/PostalAddress/Street | 請求書送信先の番地。 ターゲットフィールド:u_bill_to_street 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader/InvoicePartner /contact\[@role='billTo'\]/PostalAddress/PostalCode | 請求書の送信先の郵便番号。 ターゲットフィールド:u_bill_to_zip_or_postal_code |
| 連絡先\[@role="remitTo"\]/住所 /番地 | 支払先の番地。 ターゲットフィールド:u_remit_address |
| 連絡先\[@role="remitTo"\]/郵便番号/市区町村 | 支払先の市区町村。 ターゲットフィールド:u_remit_to_city |
| contact\[@role="remitTo"\]/PostalAddress /State | 支払先の都道府県。 ターゲットフィールド:u_remit_to_state_or_province |
| Contact\[@role="remitTo"\]/PostalAddress /PostalCode | 支払先の郵便番号。 ターゲットフィールド:u_remit_to_zip_or_postal_code |
| Contact\[@role="remitTo"\]/PostalAddress /Country | 支払先の国 (ISO 3166 形式)。たとえば、 `US` です。 ターゲットフィールド:u_remit_to_country |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailRequestHeader /InvoiceDetailShipping/Contact\[@role="shipFrom"\]/PostalAddress /Street | 発注書の品目の配送元の番地。 ターゲットフィールド:u_ship_from_street 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailRequestHeader /InvoiceDetailShipping/Contact\[@role="shipFrom"\]/PostalAddress /City | 発注書の品目の配送元の市区町村。 ターゲットフィールド:u_ship_from_city 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailRequestHeader /InvoiceDetailShipping/Contact\[@role="shipFrom"\]/PostalAddress /State | 発注書の品目の配送元の都道府県。 ターゲットフィールド:u_ship_from_state_or_province 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailRequestHeader /InvoiceDetailShipping/Contact\[@role="shipFrom"\]/PostalAddress /PostalCode | 発注書の品目の配送元の郵便番号。 ターゲットフィールド:u_ship_from_zip_or_postal_code 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailRequestHeader /InvoiceDetailShipping/Contact\[@role="shipFrom"\]/PostalAddress /Country | 発注書の品目の配送元の国。 ターゲットフィールド:u_ship_from_country 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailRequestHeader /InvoicePartner/Contact\[@role="billTo"\] \[@addressID\] | サプライヤーの法人の名前。法人 \[sn_fin_legal_entity\] テーブルにあります。 ターゲットフィールド:u_legal_entity 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| 連絡先\[@role="shipTo"\]/名前 | 発注書の品目の配送先の連絡先の名前。 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| 連絡先\[@role="shipTo"\]/住所 /番地 | 発注書の品目の配送先の番地。 ターゲットフィールド:u_ship_to_street 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| 連絡先\[@role="shipTo"\]/郵便番号/市区町村 | 発注書の品目の配送先の市区町村。 ターゲットフィールド:u_ship_to_city 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| Contact\[@role="shipTo"\]/PostalAddress /State | 発注書の品目の配送先の都道府県。 ターゲットフィールド:u_ship_to_state_or_province |
| Contact\[@role="shipTo"\]/PostalAddress /PostalCode | 発注書の品目の配送先の郵便番号。 ターゲットフィールド:u_ship_to_zip_or_postal_code 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| contact\[@role="shipTo"\]/PostalAddress /country | 発注書の品目の配送先の国。 ターゲットフィールド:u_ship_from_country 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest /InvoiceDetailRequestHeader/PaymentTerm | サプライヤーへの支払いが行われる、合意された時間と条件。たとえば、「 `Net 30`」などです。 ターゲットフィールド:u_payment_terms 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem\[@description\]/ | 請求書明細行の説明。 ターゲットフィールド:u_line_description |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem\[@quantity\]/ | 顧客に請求される商品またはサービスの数量。 ターゲットフィールド:u_line_quantity |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/Distribution/Accounting /AccountingSegment\[1\]/Name | 請求書が生成されるコストセンターのアカウント番号。コストセンター \[cmn_cost_center\] テーブルにリストされます。 ターゲットフィールド:u_cost_center |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/Distribution/Accounting /AccountingSegment\[2\]/Name | 請求書の生成に使用される総勘定元帳 (GL) のアカウント番号。 ターゲットフィールド:u_gl_account 関連項目： * [ERP source](https://www.servicenow.com/docs/access?context=erp-source&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US) * [Ledger account](https://www.servicenow.com/docs/access?context=ledger-account&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US) {#ap_invoice-POST-cxml__ul_u23_b3r_cdc} |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/SubtotalAmount/Money | 税金および配送料を除き、仕入先に支払う合計金額。 ターゲットフィールド:u_subtotal 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/NetAmount/Money | 特定の発注書明細について顧客に請求される総コスト (税金と配送料を除く)。 ターゲットフィールド:u_line_amount_invoiced 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailOrderInfo/OrderReference | この注文に対して顧客から提供された発注書番号。発注書 (PO) \[sn_shop_purchase_order\] テーブルにリストされます。 ターゲットフィールド:u_purchase_order 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/UnitPrice/UnitOfMeasure | 請求書のアイテムをカウントするために使用される基本測定単位 (UOM)。 ターゲットフィールド:u_uom 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/UnitPrice/Money | 請求書の項目の単価。 ターゲットフィールド:u_line_unit_price 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/UnitPrice/Money\[@currency\] | 品目の通貨。たとえば、 `USD` です。 ターゲットフィールド:u_currency 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem /InvoiceDetailItemReference\[@lineNumber\] | 参照されたサプライヤーの発注書明細行 ID。発注書明細 \[sn_shop_purchase_order_line\] テーブルにリストされます。 ターゲットフィールド:u_purchase_order_line 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/InvoiceDetailItemReference /ItemID/SupplierPartID | この請求書項目に対してサプライヤーによって生成された部品番号。 ターゲットフィールド:u_supplier_part_number 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| cXML/要求/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/InvoiceDetailItemReference /説明 | 請求書の発注書明細の説明。 ターゲットフィールド:u_po_line_description 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/Tax/Money | 購入に対して請求される税の合計額。 ターゲットフィールド:u_tax_amount 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| cXML/Request/InvoiceDetailRequest/InvoiceDetailOrder /InvoiceDetailItem/税/説明 | ERP ソースから生成された一意の税コード。 ターゲットフィールド:u_tax_code 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /cXML/Request/InvoiceDetailRequest/ InvoiceDetailSummary /SubtotalAmount/Money | 税金および配送料を除き、仕入先に支払う合計金額。 ターゲットフィールド:u_subtotal 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /税/お金 | 購入に対して請求される税の合計額。 ターゲットフィールド:u_tax_amount 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /tax/TaxDetail\[@category\] | 請求書に適用される税のタイプ。税タイプ \[sn_fin_tax_type\] テーブルにリストされます。 ターゲットフィールド:u_tax_type 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /tax/TaxDetail\[@percentageRate\] | サプライヤーが請求する税率。 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] ターゲットフィールド:u_supplier_tax_rate 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /SpecialHandlingAmount/Money | 請求書に関連するその他の追加料金。これは編集可能なフィールドです。 ターゲットフィールド:u_other_charges 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /ShippingAmount/Money | 購入全体の合計送料。 ターゲットフィールド:u_shipping_amount 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /GrossAmount/Money | 必須です。小計、税金、および送料の通貨。小計、税金、および配送料は同じ通貨である必要があります。 ターゲットフィールド:u_currency 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /InvoiceDetailDiscount/Money | 請求書に適用される割引。 ターゲットフィールド:u_discounts 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /cXML/Request/InvoiceDetailRequest/InvoiceDetailSummary /NetAmount/Money | 税金と配送料を含めて、サプライヤーに支払う合計金額。 ターゲットフィールド:u_amount_invoiced 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
[表 : 3. 要求本文要素 (cXML)]

### ヘッダー

次の要求ヘッダーと応答ヘッダーは、この HTTP アクションにのみ適用されるか、別の方法でこのアクションに適用されます。REST API で使用される一般的なヘッダーのリストについては、「 [サポートされている REST API ヘッダー」](https://servicenow-prod.fluidtopics.net/lLW_uT5I5_l1aD8yR4Jt9A "REST (REpresentational State Transfer) は、Web 上のコンピューター システム間の標準を提供するシンプルなステートレス アーキテクチャであり、コンピューター システム間の通信を容易にします。")を参照してください。
{#ap_invoice-POST-cxml__entry__114}

| ヘッダー | 説明 |
|-|-|
| Content-Type | 要求本文のデータ形式。application/xml のみをサポートします。 |
| ソースシステム | 要求の送信元のソースシステムを指定します。 使用可能なシステムは、ソースシステム認証情報 \[sn_spend_intg_source_system_credential\] テーブルにリストされています。 この設定は、提供された要求が請求書統合フィールドマッピング \[sn_spend_intg_invoice_intg_field_mapping\] テーブルの構造に従っているかどうかを判断するのに役立ちます。 この設定は、ソースシステム認証情報 \[sn_spend_intg_source_system_credential\] テーブルから認証情報をフェッチするためにも使用されます。 |
[表 : 4. 要求ヘッダー]

{#ap_invoice-POST-cxml__entry__120}

| ヘッダー | 説明 |
|-|-|
| なし |   |
[表 : 5. 応答ヘッダー]

### ステータスコード

この HTTP アクションには、次のステータスコードが適用されます。REST API で使用される可能性のあるステータスコードのリストについては、「 [REST API HTTP 応答コード](https://servicenow-prod.fluidtopics.net/lLW_uT5I5_l1aD8yR4Jt9A "REST (REpresentational State Transfer) は、Web 上のコンピューター システム間の標準を提供するシンプルなステートレス アーキテクチャであり、コンピューター システム間の通信を容易にします。")」を参照してください。
{#ap_invoice-POST-cxml__table_wqv_qxk_ddc__entry__2}{#ap_invoice-POST-cxml__entry-400-status-code}

| ステータスコード | 説明 |
|-|-|
| 202 | 要求が承認されました。要求が成功し、請求書の処理が進行中です。 |
| 400 | 要求が正しくありません。不適切な要求タイプまたは誤った要求が検出されました。 |
| 429 | 要求が多すぎます。要求レートが 1 時間あたりの最大要求 10 を超えました。 |
[表 : 6. ステータスコード]

{#ap_invoice-POST-cxml__table_wqv_qxk_ddc}

### 応答本文のパラメーター

{#ap_invoice-POST-cxml__entry__132}

| 名前 | 説明 |
|-|-|
| batch_id | バッチ要求の一意の識別子。この ID を使用して、要求のステータスを追跡できます。このレコードは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルに保存されます。 データタイプ：文字列 |
| エラー | 要求が失敗した場合のエラーメッセージと詳細が含まれます。 { "detail": String, "message": String } データタイプ: オブジェクト |
| error.detail | 要求エラーに関するその他の詳細。 考えられる結果: * API レベルの ACL 検証に失敗しました:ユーザーにはリソースへの読み取り/書き込みアクセス権がありません。 * AP 請求書の 1 時間あたり 13 要求のレート制限を超えました:バッチ内のレコード数が、設定されたバッチサイズを超えています。 * 認証情報の提供に必要です - パスワードまたはユーザー名が間違っています。 {#ap_invoice-POST-cxml__ul_ukg_sht_c2c} データタイプ：文字列 |
| error.message | 要求が失敗した理由を含むエラーメッセージ 考えられるエラー: * 無効なペイロード:無効なコンテンツタイプ。 * 無効なペイロード:エラー:無効なペイロード構造。 * 無効なペイロード:エラー:ペイロードがバッチで許可されている請求書制限を超えています。バッチ内のレコード数が、設定されたバッチサイズを超えています。デフォルトのペイロードの最大サイズは 100 レコードです。この値は、 sn_spend_intg.ap.invoice.create.api.record_limit システムのプロパティで構成できます。 * 無効なペイロード:エラー:請求書が空です。処理するデータがありません。バッチ内のレコード数がゼロです。 * APO 請求書取り込みのレート制限である 1 時間あたり 500 要求を超えました。 * ユーザーが認証されていません。パスワードまたはユーザー名が間違っています。 * API レベルの ACL 検証に失敗しました:ユーザーにはリソースへの読み取り/書き込みアクセス権がありません。 {#ap_invoice-POST-cxml__ul_knb_fhr_2dc} データタイプ：文字列 |
| メッセージ | 成功メッセージ (例: 要求が正常に受信され、処理されています)。 要求のステータスは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルで確認できます。 データタイプ：文字列 |
| status | 要求の結果を示します。 可能な値： * 成功 * 失敗 {#ap_invoice-POST-cxml__ul_zfp_shr_2dc} データタイプ：文字列 |
[ ]

### cURL 要求 {#ap_invoice-POST-cxml__example_mnp_3dm_ddc}

次の例は、cXML 形式で要求として提供された請求書を処理する方法を示しています。

    curl -X POST https://instance.servicenow.com/api/sn_spend_intg/v1/ap_invoice/cxml \
    -H "Source-System: Ariba" \
    -H "Content-Type: application/json" \
    -d '{
        "content": "------=_Part_1367_1859161670.1709186492411\r\nContent-Type: text/xml; charset=UTF-8\r\n
    Content-ID: 1709186492411.10815535@produs-c4-an-s2-z3-1.us2.gcpint.ariba.com\r\n<?xml version=\"1.0\" 
    encoding=\"UTF-8\"?>\r\n<!DOCTYPE cXML SYSTEM \"https://protect-us.mimecast.com/s/fgKrCERVqQU35PNzBuw39pz?domain=xml.cxml.org\">
    \r\n<cXML timestamp=\"2024-02-28T22:01:32-08:00\" payloadID=\"1709186492411-3401013259654180284@10.209.37.74\">
    \r\n    <Response>\r\n        <Status code=\"200\" text=\"OK\" />\r\n        <DataResponse>\r\n            <Attachment>
    \r\n                <URL>186492411.10815535@produs-c4-an-s2-z3-1.us2.gcpint.ariba.com.110</URL>\r\n            </Attachment>
    \r\n            <Attachment>\r\n                <URL>1709186492403.306612238@produs-c4-an-s2-z3-1.us2.gcpint.ariba.com.108</URL>
    \r\n            </Attachment>\r\n        </DataResponse>\r\n    </Response>\r\n</cXML>\r\n------=_Part_1367_1859161670.1709186492411
    \r\nContent-Type: text/xml; charset=UTF-8\r\nContent-ID: 1709186492403.306612238@produs-c4-an-s2-z3-1.us2.gcpint.ariba.com.108
    \r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n
    <!DOCTYPE cXML SYSTEM \"https://protect-us.mimecast.com/s/7QpfCG6VRKf15gQPwFpUTKe?domain=xml.cxml.org\">\r\n
    <cXML payloadID=\"1705930173863-1790846563502652473@10.209.37.98\" timestamp=\"2024-01-22T05:29:33-08:00\" version=\"1.2.060\">\r\n
        <Header>\r\n        <From>\r\n            <Credential domain=\"NetworkID\">\r\n                <Identity>AN01532216648-T</Identity>\r\n
                </Credential>\r\n            <Credential domain=\"VendorID\">\r\n                <Identity>3245545</Identity>\r\n
                </Credential>\r\n            <Credential domain=\"PrivateID\">\r\n                <Identity>0000099123</Identity>\r\n
                </Credential>\r\n        </From>\r\n        <To>\r\n            <Credential domain=\"NetworkID\">\r\n
                    <Identity>AN01404744424-T</Identity>\r\n            </Credential>\r\n            <Credential domain=\"SystemID\">\r\n
                    <Identity>ERP1</Identity>\r\n            </Credential>\r\n            <Credential domain=\"EndPointID\">\r\n
                    <Identity>CIG</Identity>\r\n            </Credential>\r\n        </To>\r\n        <Sender>\r\n
                <Credential domain=\"NetworkID\">\r\n                <Identity>AN01000000001</Identity>\r\n
                    <SharedSecret>Ariba@123</SharedSecret>\r\n            </Credential>\r\n            <UserAgent>Supplier</UserAgent>\r\n
            </Sender>\r\n    </Header>\r\n    <Request deploymentMode=\"test\">\r\n        <InvoiceDetailRequest>\r\n
                <InvoiceDetailRequestHeader invoiceDate=\"2024-01-22\" invoiceID=\"\" invoiceOrigin=\"supplier\" operation=\"new\ purpose=\"PO Invoice\">\r\n
                    <InvoiceDetailHeaderIndicator></InvoiceDetailHeaderIndicator>\r\n
                    <InvoiceDetailLineIndicator></InvoiceDetailLineIndicator>\r\n                <InvoicePartner>\r\n
                        <Contact addressID=\"Test123\" role=\"remitTo\">\r\n
                            <Name xml:lang=\"en-US\">Oil and Natural Gas Corporation Limited</Name>\r\n
                            <PostalAddress>\r\n                            <Street>Xyz street</Street>\r\n                            <City>USA</City>\r\n
                                <State isoStateCode=\"US-NY\">NY</State>\r\n                            <PostalCode>10001</PostalCode>\r\n
                                <Country isoCountryCode=\"US\">United States</Country>\r\n                        </PostalAddress>\r\n
                        </Contact>\r\n                </InvoicePartner>\r\n                <InvoicePartner>\r\n
                        <Contact addressID=\"9009\" role=\"billTo\">\r\n                        <Name xml:lang=\"EN\">Bristlecone Inc</Name>\r\n
                            <PostalAddress>\r\n                            <Street>10 Boulvard-10</Street>\r\n
                                <City>San Jose</City>\r\n                            <State>CA</State>\r\n
                                <PostalCode>94077</PostalCode>\r\n                            <Country isoCountryCode=\"US\"></Country>\r\n
                            </PostalAddress>\r\n                        <Phone>\r\n                            <TelephoneNumber>\r\n
                                    <CountryCode isoCountryCode=\"US\">1</CountryCode>\r\n                                <Number>7687687799</Number>\r\n
                                </TelephoneNumber>\r\n                        </Phone>\r\n                        <Fax>\r\n
                                <TelephoneNumber>\r\n                                <CountryCode isoCountryCode=\"US\">1</CountryCode>\r\n
                                    <Number>768-FAX-NUMBER</Number>\r\n                            </TelephoneNumber>\r\n                        </Fax>\r\n
                        </Contact>\r\n                </InvoicePartner>\r\n                <InvoicePartner>\r\n                    <Contact role=\"from\">\r\n
                            <Name xml:lang=\"en-US\">Oil and Natural Gas Corporation Limited</Name>\r\n                        <PostalAddress>\r\n
                                <Street>123 , street no 5</Street>\r\n                            <City>Dallas</City>\r\n
                                <State isoStateCode=\"US-AL\">AL</State>\r\n                            <PostalCode>36615</PostalCode>\r\n
                                <Country isoCountryCode=\"US\">United States</Country>\r\n                        </PostalAddress>\r\n
                        </Contact>\r\n                </InvoicePartner>\r\n                <InvoiceDetailShipping>\r\n
                        <Contact role=\"shipFrom\">\r\n                        <Name xml:lang=\"en-US\">Oil and Natural Gas Corporation Limited</Name>\r\n
                            <PostalAddress>\r\n                            <Street>Deendayal Urja Bhawan</Street>\r\n
                                <City>New Delhi</City>\r\n                            <State isoStateCode=\"IN-MH\">Maharashtra</State>\r\n
                                <PostalCode>110070</PostalCode>\r\n                            <Country isoCountryCode=\"IN\">India</Country>\r\n
                            </PostalAddress>\r\n                    </Contact>\r\n                    <Contact addressID=\"9999\" role=\"shipTo\">\r\n
                            <Name xml:lang=\"EN\">Buyer Plant Bristlecone</Name>\r\n                        <PostalAddress name=\"default\">\r\n
                                <Street>18 Hanoi Road</Street>\r\n                            <City>San Jose</City>\r\n
                                <State>CA</State>\r\n                            <PostalCode>77077</PostalCode>\r\n
                                <Country isoCountryCode=\"US\"></Country>\r\n                        </PostalAddress>\r\n
                            <Email name=\"default\" preferredLang=\"en\">test@test.com</Email>\r\n                    </Contact>\r\n
                    </InvoiceDetailShipping>\r\n            </InvoiceDetailRequestHeader>\r\n            <InvoiceDetailOrder>\r\n
                    <InvoiceDetailOrderInfo>\r\n                    <OrderReference orderID=\"\">\r\n
                            <DocumentReference payloadID=\"0AAF8EA1FA5F1EDE9FDC97460BCB03E1\"></DocumentReference>\r\n
                        </OrderReference>\r\n                </InvoiceDetailOrderInfo>\r\n
                    <InvoiceDetailItem invoiceLineNumber=\"2\" quantity=\"25\" description=\"Indian Oil\">\r\n
                        <UnitOfMeasure>EA</UnitOfMeasure>\r\n                    <UnitPrice>\r\n                        <Money currency=\"USD\">50</Money>\r\n
                        </UnitPrice>\r\n                    <SubtotalAmount>\r\n                        <Money currency=\"USD\">1250.00</Money>\r\n
                        </SubtotalAmount>\r\n                </InvoiceDetailItem>\r\n            </InvoiceDetailOrder>\r\n        </InvoiceDetailRequest>\r\n
        </Request>\r\n</cXML>\r\n------=_Part_1367_1859161670.1709186492411--"
    }'

次の結果は、要求が成功し、請求書データが処理されていることを示しています。要求のステータスは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルで確認できます。\[バッチ ID\] 列にリストされているバッチ ID を使用して請求書を検索します。

    {
        "batchId": "APIINV1729711710733280",
        "status": "Success",
        "message": "Your request has been successfully received and is being processed."
    }

## AP 請求書:POST sn_spend_intg/ap_invoice/json {#ariaid-title3}

JSON 形式で自動請求書を処理します。
必要なロール:sn_spend_intg.procurement_integrator

請求書統合フィールドマッピング \[sn_spend_intg_invoice_intg_field_mapping\] テーブルを使用して、フィールドを JSON プロパティにマッピングする方法を決定します。  
要求本文のカスタム請求書フィールドを定義できます。次のフローを使用して、カスタムフィールドを追加し、ターゲットテーブルにマッピングして、ペイロードで使用できるようにフォーマットします。

1. [請求書インポートのカスタムフィールドを追加](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-addColToTable "AP 請求書 API で使用する請求書、請求書明細行、および請求書税明細行のカスタムフィールドを追加するには、次の手順を使用します。")
2. [ソーステーブルとターゲットテーブルの間のカスタムフィールドのマッピング](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-mapFieldsTransform "AP 請求書 API のソーステーブルとターゲットテーブルの間でカスタムフィールドをマッピングするには、次の手順を使用します。")
3. [カスタムフィールドのペイロードソース形式へのマッピング](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-mapFieldsTSrcFormat "AP 請求書 API の JSON、cXML、または XML のペイロードエントリにカスタムフィールドをマップするには、次の手順を使用します。")
{#ap_invoice-POST-json__ul_kcx_5fx_sdc}

### URL 形式

バージョニングされた URL: /api/sn_spend_intg/v1/ap_invoice/json

デフォルト URL: /api/sn_spend_intg/ap_invoice/json

### サポートされている要求パラメーター

{#ap_invoice-POST-json__entry__2}{#ap_invoice-POST-json__version-not_optional-RESTAPI}

| 名前 | 説明 |
|-|-|
| api_version | オプション。アクセスするエンドポイントのバージョン。たとえば、 <kbd class="ph userinput">v1</kbd> や <kbd class="ph userinput">v2</kbd> などです。最新以外のエンドポイントバージョンを使用する場合にのみ、この値を指定してください。 データタイプ：文字列 |
[表 : 7. パスパラメーター]

{#ap_invoice-POST-json__entry__6}

| 名前 | 説明 |
|-|-|
| なし |   |
[表 : 8. クエリパラメーター]

{#ap_invoice-POST-json__entry__10}

| 名前 | 説明 |
|-|-|
| 請求書 | 処理する各請求書を含むリスト。 データタイプ:ネストされた請求書オブジェクトのオブジェクト。 "invoices": { { "amount_invoiced": "String", "bill_to_city": "String", "bill_to_country": "String", "bill_to_state_or_province": "String", "bill_to_street": "String", "bill_to_zip_or_postal_code": "String", "business_owner": "String", "currency": "String", "discounts": "String", "erp_number": "String", "external_invoice_number": "String", "invoice_copy_attachment": [Array], "invoice_date": "String", "invoice_line_count": "String", "invoice_lines": [Array], "invoice_type": "String", "legal_entity": "String", "original_invoice": "String", "other_charges": "String", "payment_terms": "String", "purchase_order": "String", "remit_address": "String", "remit_to_city": "String", "remit_to_country": "String", "remit_to_state_or_province": "String", "remit_to_zip_or_postal_code": "String", "ship_from_city": "String", "ship_from_country": "String", "ship_from_state_or_province": "String", "ship_from_street": "String", "ship_from_zip_or_postal_code": "String", "ship_to_city": "String", "ship_to_country": "String", "ship_to_state_or_province": "String", "ship_to_street": "String", "ship_to_zip_or_postal_code": "String", "shipping_amount": "String", "subtotal": "String", "supplier": "String", "supplier_invoice_number": "String", "supplier_tax_id": "String", "supporting_attachments": [Array] } } |
| invoices.amount_invoiced | 税金と配送料を含めて、サプライヤーに支払う合計金額。 ターゲットフィールド:u_amount_invoiced 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| bill_to_city | 請求書の送信先の市区町村。 ターゲットフィールド:u_bill_to_city 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| bill_to_country | 請求書の送信先の国 (ISO 3166 形式)。たとえば、 `US` です。 ターゲットフィールド:u_bill_to_country 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| bill_to_state_or_province | 請求書の送信先の都道府県。 ターゲットフィールド:u_bill_to_state_or_province 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| bill_to_street | 請求書送信先の番地。 ターゲットフィールド:u_bill_to_street 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| bill_to_zip_or_postal_code | 請求書の送信先の郵便番号。 ターゲットフィールド:u_bill_to_zip_or_postal_code |
| invoices.business_owner | ビジネス側からアプリケーションを所有するオーナーの名前。 ターゲットフィールド:u_business_owner 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.currency | 必須です。小計、税金、および送料の通貨。小計、税金、および配送料は同じ通貨である必要があります。 ターゲットフィールド:u_currency 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.discounts | 請求書に適用される割引。 ターゲットフィールド:u_discounts 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.erp_number | ERP (エンタープライズリソースプランニング) システム内で発注書に対して生成された一意の番号。詳細については、「[Purchase order integration](https://www.servicenow.com/docs/access?context=purchase-order-integration-2&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 ターゲットフィールド:u_erp_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| 請求書。external_invoice_number | 必須です。 サードパーティアプリケーションから生成された請求書番号。 ターゲットフィールド:u_external_invoice_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| 請求 書。invoice_copy_attachment | 請求書レベルで定義された添付ファイルのリスト。「[Accounts Payable Invoice Processing](https://www.servicenow.com/docs/access?context=acc-pay-invoice-processing&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 作成されると、関連する請求書ケースおよび請求書明細行とともに請求書レコードが生成されます。添付ファイルは、それぞれのレコードに適宜リンクされます。 データタイプ：オブジェクトのアレイ "invoice_copy_attachment": [ { "content": "String", "encoding": "String", "mime_code": "String", "name": "String" } ] |
| invoices.invoice_copy_attachment。コンテンツ | Base64 でエンコードされた添付ファイルのファイルコンテンツ。 データタイプ：文字列 |
| invoices.invoice_copy_attachment。エンコーディング | この値は常に <kbd class="ph userinput">base64</kbd> です。 データタイプ：文字列 |
| invoices.invoice_copy_attachment。mime_code | この値は常に <kbd class="ph userinput">base64</kbd> です。 データタイプ：文字列 |
| invoices.invoice_copy_attachment。名前 | 添付ファイルのファイル名。 注: 添付ファイル名に予約済みの「SD_」接頭辞を使用しないでください。 データタイプ：文字列 |
| invoices.invoice_date | 必須です。 顧客に請求された日付。 ターゲットフィールド:u_invoice_date 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 形式：YYYY-MM-DD |
| invoices.invoice_line_count | 請求書の明細行数。 ターゲットフィールド:u_invoice_line_count 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines | この注文内の購入に対して請求される明細を定義するオブジェクトのリスト。請求書明細行は、請求書明細行インポート受信 \[sn_spend_intg_imp_invoice_line\] テーブルにステージングされます。 データタイプ：オブジェクトのアレイ "invoice_lines": [ { "attachments": [Array], "cost_center": "String", "currency": "String", "external_invoice_number": "String", "gl_account": "String", "line_amount_invoiced": "String", "line_description": "String", "line_quantity": "String", "line_unit_price": "String", "po_line_description": "String", "purchase_order_line": "String", "ship_to_city": "String", "ship_to_country": "String", "ship_to_state_or_province": "String", "ship_to_street": "String", "ship_to_zip_or_postal_code": "String", "subtotal": "String", "supplier_part_number": "String", "tax_code": "String", "tax_details": [Array], "uom": "String" } ] |
| invoices.invoice_lines。添付 ファイル | 請求書明細レベルで定義された添付ファイルのリスト。「[Create New Invoice Line form](https://www.servicenow.com/docs/access?context=create-invoice-line-form&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 作成されると、関連する請求書ケースおよび請求書明細行とともに請求書レコードが生成されます。添付ファイルは、それぞれのレコードに適宜リンクされます。 データタイプ：オブジェクトのアレイ "attachments": [ { "content": "String", "encoding": "String", "mime_code": "String", "name": "String" } ] |
| invoices.invoice_lines。attachments.content | Base64 でエンコードされた添付ファイルのファイルコンテンツ。 データタイプ：文字列 |
| invoices.invoice_lines。attachments.encoding | この値は常に <kbd class="ph userinput">base64</kbd> です。 データタイプ：文字列 |
| invoices.invoice_lines。attachments.mime_code | この値は常に <kbd class="ph userinput">base64</kbd> です。 データタイプ：文字列 |
| invoices.invoice_lines。attachments.name | 添付ファイルのファイル名。 注: 添付ファイル名に予約済みの「SD_」接頭辞を使用しないでください。 データタイプ：文字列 |
| invoices.invoice_lines。cost_center | 請求書が生成されるコストセンターのアカウント番号。コストセンター \[cmn_cost_center\] テーブルにリストされます。 ターゲットフィールド:u_cost_center 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。通貨 | 品目の通貨。たとえば、 `USD` です。 ターゲットフィールド:u_currency 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。external_invoice_number | 必須です。 サードパーティアプリケーションから生成された請求書番号。 ターゲットフィールド:u_external_invoice_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。gl_account | 請求書の生成に使用される総勘定元帳 (GL) のアカウント番号。 ターゲットフィールド:u_gl_account 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 関連項目： * [ERP source](https://www.servicenow.com/docs/access?context=erp-source&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US) * [Ledger account](https://www.servicenow.com/docs/access?context=ledger-account&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US) {#ap_invoice-POST-json__ul_u23_b3r_cdc} |
| invoices.invoice_lines。line_amount_invoiced | 必須です。 特定の発注書明細について顧客に請求される総コスト (税金と配送料を除く)。 ターゲットフィールド:u_line_amount_invoiced 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。line_description | 必須です。 請求書明細行の説明。 ターゲットフィールド:u_line_description 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。line_quantity | 必須です。 顧客に請求される商品またはサービスの数量。 ターゲットフィールド:u_line_quantity 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。line_unit_price | 請求書の項目の単価。 ターゲットフィールド:u_line_unit_price 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。po_line_description | 請求書の発注書明細の説明。 ターゲットフィールド:u_po_line_description 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。purchase_order_line | 必須です。 参照されたサプライヤーの発注書明細行 ID。発注書明細 \[sn_shop_purchase_order_line\] テーブルにリストされます。 ターゲットフィールド:u_purchase_order_line 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。ship_to_city | 発注書の品目の配送先の市区町村。 ターゲットフィールド:u_ship_to_city 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。ship_to_country | 発注書の品目の配送先の国。 ターゲットフィールド:u_ship_to_country 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。ship_to_state_or_province | 発注書の品目の配送先の都道府県。 ターゲットフィールド:u_ship_to_state_or_province 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。ship_to_street | 発注書の品目の配送先の番地。 ターゲットフィールド:u_ship_to_street 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。ship_to_zip_or_postal_code | 発注書の品目の配送先の郵便番号。 ターゲットフィールド:u_ship_to_zip_or_postal_code 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。小計 | 必須です。 税金および配送料を除き、仕入先に支払う合計金額。 ターゲットフィールド:u_subtotal 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。supplier_part_number | 必須です。 この請求書項目に対してサプライヤーによって生成された部品番号。 ターゲットフィールド:u_supplier_part_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。tax_code | ERP ソースから生成された一意の税コード。 ターゲットフィールド:u_tax_code 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。tax_details | 請求書明細に関連付けられた購入の税明細行のリスト。 データタイプ：オブジェクトのアレイ "tax_details": [ { "tax_amount": "String", "tax_rate": "String", "tax_type": "String" } ] |
| invoices.invoice_lines。tax_details.tax_amount | 必須です。 購入に対して請求される税の合計額。 ターゲットフィールド:u_tax_amount 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] データタイプ：文字列 最大長：40 |
| invoices.invoice_lines。tax_details.tax_rate | サプライヤーが請求する税率。 ターゲットフィールド:u_supplier_tax_rate 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines。tax_details.tax_type | 請求書に適用される税のタイプ。税タイプ \[sn_fin_tax_type\] テーブルにリストされます。 ターゲットフィールド:u_tax_type 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] データタイプ：文字列 最大長:100 |
| invoices.invoice_lines.uom | 請求書のアイテムをカウントするために使用される基本測定単位 (UOM)。 ターゲットフィールド:u_uom 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.invoice_type | 処理する請求書のタイプ。 ターゲットフィールド:u_invoice_type 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.legal_entity | サプライヤーの法人の名前。法人 \[sn_fin_legal_entity\] テーブルにあります。 ターゲットフィールド:u_legal_entity 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.original_invoice | サプライヤーによって作成された一意の請求書番号。 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] ターゲットフィールド:u_original_invoice 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.other_charges | 請求書に関連するその他の追加料金。これは編集可能なフィールドです。 ターゲットフィールド:u_other_charges 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.payment_terms | サプライヤーへの支払いが行われる、合意された時間と条件。たとえば、「 `Net 30`」などです。 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.purchase_order | 必須です。 この注文に対して顧客から提供された発注書番号。発注書 (PO) \[sn_shop_purchase_order\] テーブルにリストされます。 ターゲットフィールド:u_purchase_order 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.remit_address | 必須です。 支払先の番地。 ターゲットフィールド:u_remit_address 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.remit_to_city | 必須です。 支払先の市区町村。 ターゲットフィールド:u_remit_to_city 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.remit_to_country | 必須です。 支払先の国 (ISO 3166 形式)。たとえば、 `US` です。 ターゲットフィールド:u_remit_to_country 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| 請求書。remit_to_state_or_province | 必須です。 支払先の都道府県。 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| 請求書。remit_to_zip_or_postal_code | 必須です。 支払先の郵便番号。 ターゲットフィールド:u_remit_to_state_or_province 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.ship_from_city | 発注書の品目の配送元の市区町村。 ターゲットフィールド:u_ship_from_city データタイプ：文字列 最大長:100 |
| invoices.ship_from_country | 発注書の品目の配送元の国。 ターゲットフィールド:u_ship_from_country データタイプ：文字列 最大長:100 |
| 請求書。ship_from_state_or_province | 発注書の品目の配送元の都道府県。 ターゲットフィールド:u_ship_from_state_or_province データタイプ：文字列 最大長:100 |
| invoices.ship_from_street | 発注書の品目の配送元の番地。 ターゲットフィールド:u_ship_from_street データタイプ：文字列 最大長:100 |
| 請求書。ship_from_zip_or_postal_code | 発注書の品目の配送元の郵便番号。 ターゲットフィールド:u_ship_from_zip_or_postal_code データタイプ：文字列 最大長:100 |
| invoices.ship_to_city | 発注書の品目の配送先の市区町村。 ターゲットフィールド:u_ship_to_city 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.ship_to_country | 発注書の品目の配送先の国。 ターゲットフィールド:u_ship_to_country 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| 請求書。ship_to_state_or_province | 発注書の品目の配送先の都道府県。 ターゲットフィールド:u_ship_to_state_or_province 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.ship_to_street | 発注書の品目の配送先の番地。 ターゲットフィールド:u_ship_to_street 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| 請求書。ship_to_zip_or_postal_code | 発注書の品目の配送先の郵便番号。 ターゲットフィールド:u_ship_to_zip_or_postal_code 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.shipping_amount | 必須です。 購入全体の合計送料。 ターゲットフィールド:u_shipping_amount 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.Subtotal | 必須です。 税金および配送料を除き、仕入先に支払う合計金額。 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長：40 |
| invoices.supplier | 必須です。 顧客が注文できるリセラーまたはサプライヤーの識別子。 ターゲットフィールド:u_supplier 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| 請求書。supplier_invoice_number | 必須です。 この請求書に対してサプライヤーによって生成された識別番号。 ターゲットフィールド:u_supplier_invoice_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.supplier_tax_id | サードパーティの再販業者に関連付けられている税識別子。これは編集可能なフィールドです。 ターゲットフィールド:u_supplier_tax_id 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] データタイプ：文字列 最大長:100 |
| invoices.target_erp | 請求書が転記される ERP レコード。ERP ソース \[sn_fin_erp_source\] テーブルにあります。「[ERP source](https://www.servicenow.com/docs/access?context=erp-source&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 データタイプ：文字列 |
| 請求 書。supporting_attachments | 買掛金スペシャリストにアサインされたケースの請求書処理ケースレベルで定義された添付ファイルのリスト。「[Invoice processing case form](https://www.servicenow.com/docs/access?context=invoice-processing-case-form&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 作成されると、関連する請求書ケースおよび請求書明細行とともに請求書レコードが生成されます。添付ファイルは、それぞれのレコードに適宜リンクされます。 データタイプ：オブジェクトのアレイ "supporting_attachments": [ { "content": "String", "encoding": "String", "mime_code": "String", "name": "String" } ] |
| 請求 書。supporting_attachments.content | Base64 でエンコードされた添付ファイルのファイルコンテンツ。 データタイプ：文字列 |
| 請求 書。supporting_attachments.encoding | この値は常に <kbd class="ph userinput">base64</kbd> です。 データタイプ：文字列 |
| 請求 書。supporting_attachments.mime_code | この値は常に <kbd class="ph userinput">base64</kbd> です。 データタイプ：文字列 |
| 請求 書。supporting_attachments.name | 添付ファイルのファイル名。 注: 添付ファイル名に予約済みの「SD_」接頭辞を使用しないでください。 データタイプ：文字列 |
[表 : 9. 要求本文のパラメーター]

### ヘッダー

次の要求ヘッダーと応答ヘッダーは、この HTTP アクションにのみ適用されるか、別の方法でこのアクションに適用されます。REST API で使用される一般的なヘッダーのリストについては、「 [サポートされている REST API ヘッダー」](https://servicenow-prod.fluidtopics.net/lLW_uT5I5_l1aD8yR4Jt9A "REST (REpresentational State Transfer) は、Web 上のコンピューター システム間の標準を提供するシンプルなステートレス アーキテクチャであり、コンピューター システム間の通信を容易にします。")を参照してください。
{#ap_invoice-POST-json__entry__172}

| ヘッダー | 説明 |
|-|-|
| Content-Type | 要求本文のデータ形式。application/json のみをサポートします。 |
| ソースシステム | 要求の送信元のソースシステムを指定します。 この設定は、提供された要求が請求書統合フィールドマッピング \[sn_spend_intg_invoice_intg_field_mapping\] テーブルの構造に従っているかどうかを判断するのに役立ちます。 |
[表 : 10. 要求ヘッダー]

{#ap_invoice-POST-json__entry__178}

| ヘッダー | 説明 |
|-|-|
| なし |   |
[表 : 11. 応答ヘッダー]

### ステータスコード

この HTTP アクションには、次のステータスコードが適用されます。REST API で使用される可能性のあるステータスコードのリストについては、「 [REST API HTTP 応答コード](https://servicenow-prod.fluidtopics.net/lLW_uT5I5_l1aD8yR4Jt9A "REST (REpresentational State Transfer) は、Web 上のコンピューター システム間の標準を提供するシンプルなステートレス アーキテクチャであり、コンピューター システム間の通信を容易にします。")」を参照してください。
{#ap_invoice-POST-json__table_wqv_qxk_ddc__entry__2}{#ap_invoice-POST-json__entry-400-status-code}

| ステータスコード | 説明 |
|-|-|
| 202 | 要求が承認されました。要求が成功し、請求書の処理が進行中です。 |
| 400 | 要求が正しくありません。不適切な要求タイプまたは誤った要求が検出されました。 |
| 429 | 要求が多すぎます。要求レートが 1 時間あたりの最大要求 10 を超えました。 |
[表 : 12. ステータスコード]

{#ap_invoice-POST-json__table_wqv_qxk_ddc}

### 応答本文のパラメーター {#ap_invoice-POST-json__section_hg4_h1l_ddc}

{#ap_invoice-POST-json__table_ig4_h1l_ddc__entry__2}

| 名前 | 説明 |
|-|-|
| batch_id | バッチ要求の一意の識別子。この ID を使用して、要求のステータスを追跡できます。このレコードは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルに保存されます。 データタイプ：文字列 |
| エラー | 要求が失敗した場合のエラーメッセージと詳細が含まれます。 { "detail": String, "message": String } データタイプ: オブジェクト |
| error.detail | 要求エラーに関するその他の詳細。 考えられる結果: * API レベルの ACL 検証に失敗しました:ユーザーにはリソースへの読み取り/書き込みアクセス権がありません。 * AP 請求書の 1 時間あたり 13 要求のレート制限を超えました:バッチ内のレコード数が、設定されたバッチサイズを超えています。 * 認証情報の提供に必要です - パスワードまたはユーザー名が間違っています。 {#ap_invoice-POST-json__ul_ukg_sht_c2c} データタイプ：文字列 |
| error.message | 要求が失敗した理由を含むエラーメッセージ 考えられるエラー: * 無効なペイロード:無効なコンテンツタイプ。 * 無効なペイロード:エラー:無効なペイロード構造。 * 無効なペイロード:エラー:ペイロードがバッチで許可されている請求書制限を超えています。バッチ内のレコード数が、設定されたバッチサイズを超えています。デフォルトのペイロードの最大サイズは 100 レコードです。この値は、 sn_spend_intg.ap.invoice.create.api.record_limit システムのプロパティで構成できます。 * 無効なペイロード:エラー:請求書が空です。処理するデータがありません。バッチ内のレコード数がゼロです。 * APO 請求書取り込みのレート制限である 1 時間あたり 500 要求を超えました。 * ユーザーが認証されていません。パスワードまたはユーザー名が間違っています。 * API レベルの ACL 検証に失敗しました:ユーザーにはリソースへの読み取り/書き込みアクセス権がありません。 {#ap_invoice-POST-json__ul_knb_fhr_2dc} データタイプ：文字列 |
| メッセージ | 成功メッセージ (例: 要求が正常に受信され、処理されています)。 要求のステータスは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルで確認できます。 データタイプ：文字列 |
| status | 要求の結果を示します。 可能な値： * 成功 * 失敗 {#ap_invoice-POST-json__ul_zfp_shr_2dc} データタイプ：文字列 |
[ ]

{#ap_invoice-POST-json__table_ig4_h1l_ddc}  

### cURL 要求

次の例は、JSON 形式の要求として提供された請求書を処理する方法を示しています。 Base64 エンコーディングのサイズはさまざまで、非常に大きくなる可能性があります。スペースを節約するためにコンテンツ値が切り捨てられました。情報は適切なペイロード構造を反映しています。

    curl "https://instance.servicenow.com/api/sn_spend_intg/v1/ap_invoice/json" \
    --request \
     POST \
    --header \
     "Source-System: Coupa" \
    --header \
     "Content-Type: application/json" \
    --user 'username' \
    :'password' \
    --data \
     '{
      "invoices": [
        {
          "invoice_type": "",
          "supplier_invoice_number": "2InvoiceAttach_A1",
          "external_invoice_number": "EXT-INV-erp-po-1_Attach1",
          "supplier": "",
          "business_owner": "lara.croft@example.com",
          "purchase_order": "",
          "date_format": "DD MMMM, YYYY",
          "invoice_date": "2nd June, 2021",
          "payment_terms": "Net 30",
          "legal_entity": "AUS",
          "subtotal": "(100.00)",
          "shipping_amount": "30.00",
          "other_charges": "20.00",
          "discounts": "00.00",
          "amount_invoiced": "200.00",
          "currency": "USD",
          "invoice_line_count": "10",
          "ship_to_city": "New York",
          "ship_to_country": "USA",
          "ship_to_state_or_province": "NY",
          "ship_to_street": "123 Main St",
          "ship_to_zip_or_postal_code": "10001",
          "ship_from_city": "Los Angeles",
          "ship_from_country": "USA",
          "ship_from_state_or_province": "CA",
          "ship_from_street": "456 Oak Ave",
          "ship_from_zip_or_postal_code": "90001",
          "remit_address": "789 Elm St, Suite 200",
          "remit_to_city": "Chicago",
          "remit_to_country": "USA",
          "remit_to_state_or_province": "IL",
          "remit_to_zip_or_postal_code": "60601",
          "supplier_tax_id": "123456789",
          "invoice_copy_attachment": [
            {
              "file_name": "InvoiceTestInv_Json_A1.pdf",
              "mime_code": "application/pdf",
              "encoding": "base64",
              "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmV/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "InvoiceTestINVIMG_Json_A1.jpg",
              "mime_code": "image/jpeg",
              "encoding": "base64",
              "content": "iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1B/Base64EncodingIntentionallyTruncated"
            }
          ],
          "tax_details": [
            {
              "tax_type": "CGST",
              "tax_amount": "10",
              "tax_rate": ""
            },
            {
              "tax_type": "Withholding tax",
              "tax_amount": "",
              "tax_rate": "25"
            },
            {
              "tax_type": "Sales tax",
              "tax_amount": "12",
              "tax_rate": "12"
            }
          ],
          "invoice_lines": [
            {
              "external_invoice_number": "EXT-INV-erp-po-1",
              "line_description": "2INV_Line_Attach_A1",
              "po_line_description": "",
              "purchase_order_line": "",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "200.00",
              "line_amount_invoiced": "118.00",
              "currency": "USD",
              "cost_center": "ACN00001",
              "gl_account": "100001",
              "tax_code": "A1 - Sales tax, reduced rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "attachments": [
                {
                  "file_name": "InvoiceTestLine.pdf",
                  "mime_code": "application/pdf",
                  "encoding": "base64",
                  "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQc/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "InvoiceTest1Line.jpg",
                  "mime_code": "image/jpeg",
                  "encoding": "base64",
                  "content": "iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ0MgUHJvZmW2GWCy8SpAszALlJ/Mv6HK54/f/3/XFv4ysU57JMAAAAASUVORK5CYII="
                }
              ]
            },
            {
              "external_invoice_number": "EXT-INV-erp-po-3",
              "line_description": "Testing",
              "po_line_description": "",
              "purchase_order_line": "",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "200.00",
              "line_amount_invoiced": "118.00",
              "currency": "USD",
              "cost_center": "ACN00005",
              "gl_account": "100002",
              "tax_code": "A1 - Sales tax, reduced rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours"
            }
          ]
        },
        {
          "invoice_type": "",
          "supplier_invoice_number": "10MultiInvoiceAttach_A2",
          "external_invoice_number": "EXT-INV-noerp-PO_Attach_A2",
          "purchase_order": "0004531004",
          "supplier": "880733",
          "date_format": "DD-MM-YYYY",
          "invoice_date": "02-05-2021",
          "payment_terms": "NET 30",
          "legal_entity": "XYZ Ltd.",
          "subtotal": "100",
          "shipping_amount": "30.00",
          "other_charges": "20.00",
          "discounts": "10.00",
          "amount_invoiced": "140.00",
          "currency": "USD",
          "invoice_line_count": "1",
          "ship_to_city": "New York",
          "ship_to_country": "USA",
          "ship_to_state_or_province": "NY",
          "ship_to_street": "123 Main St",
          "ship_to_zip_or_postal_code": "10001",
          "ship_from_city": "Los Angeles",
          "ship_from_country": "USA",
          "ship_from_state_or_province": "CA",
          "ship_from_street": "456 Oak Ave",
          "ship_from_zip_or_postal_code": "90001",
          "remit_address": "789 Elm St, Suite 200",
          "remit_to_city": "Chicago",
          "remit_to_country": "USA",
          "remit_to_state_or_province": "IL",
          "remit_to_zip_or_postal_code": "60601",
          "supplier_tax_id": "12340009",
          "supporting_attachments": [
            {
              "file_name": "10InvcCaseTstInv_Json_A2.pdf",
              "mime_code": "application/pdf",
              "encoding": "base64",
              "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZW50YXRpb24gOTY3MTUxMzkw/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTstPNGInv_Json_A2.png",
              "mime_code": "image/png",
              "encoding": "base64",
              "content": "iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ0MgUHJvZmlsZQAASImVVwdY/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTstInv2_Json_A2.pdf",
              "mime_code": "application/pdf",
              "encoding": "base64",
              "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZW50YXRpb24gOTY3MTQzNjgzKQovQXV0aG9yIChQYWdlcm8gQUIpCi9Td/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTstXMLINV_Json_A2.xml",
              "mime_code": "text/xml",
              "encoding": "base64",
              "content": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9I/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTtExcelINV_Json_A2.xlsx",
              "mime_code": "application/vnd.ms-excel",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQCpD2g4fwEAAAIFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAA/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTstCSVINV_Json_A2.csv",
              "mime_code": "text/csv",
              "encoding": "base64",
              "content": "Im51bWJlciIsInN1cHBsaWVyX2ludm9pY2VfbnVtYmVyIiwic3VwcGxpZXIiLCJzdGF0ZSIsInR5cGUiLCJkd/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTstJsonINV_Json_A2.json",
              "mime_code": "application/json",
              "encoding": "base64",
              "content": "eyJyZWNvcmRzIjpbeyJyZXF1aXJlc19hY2tub3dsZWRnZW1lbnQiOiJmYWxzZSIsInRheF9hbW91buYm91bmRfc291cmNlIjoiIn1dfQ==/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTstdocINV_Json_A2.docx",
              "mime_code": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQDnIQddcAEAANcFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAA/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceCasePPT_Json_A2.pptx",
              "mime_code": "application/vnd.ms-powerpoint",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiB="
            },
            {
              "file_name": "10InvoiceCaseRichText_Json_A2.rtf",
              "mime_code": "application/rtf",
              "encoding": "base64",
              "content": "e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2NvYXRleHRzY2FsaW5nMFxjb2NvYXBsYXRmb3JtM/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvcCaseTst_INVJPG_Json_A2.jpg",
              "mime_code": "image/jpeg",
              "encoding": "base64",
              "content": "/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPCggKDxINCgoNEhQQEBIQEB/Base64EncodingIntentionallyTruncated"
            }
          ],
          "invoice_copy_attachment": [
            {
              "file_name": "10InvoiceTestInv_Json_A2.pdf",
              "mime_code": "application/pdf",
              "encoding": "base64",
              "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZW50YXRpb24g/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceTestInv_Json_A2.jpg",
              "mime_code": "image/jpeg",
              "encoding": "base64",
              "content": "iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ0MgUHJvZmls/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvceTstInv2_Json_A2.pdf",
              "mime_code": "application/pdf",
              "encoding": "base64",
              "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZW50YXRpb24g=/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceTestXMLINV_Json_A2.xml",
              "mime_code": "text/xml",
              "encoding": "base64",
              "content": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vI/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceTestExcelINV_Json_A2.xlsx",
              "mime_code": "application/vnd.ms-excel",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQCpD2g4fwEAAAIFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAA=/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceTestCSVINV_Json_A2.csv",
              "mime_code": "text/csv",
              "encoding": "base64",
              "content": "Im51bWJlciIsInN1cHBsaWVyX2ludm9pY2VfbnVtYmVyIiwic3VwcGxpZXIiLCJzd/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceTestJsonINV_Json_A2.json",
              "mime_code": "application/json",
              "encoding": "base64",
              "content": "eyJyZWNvcmRzIjpbeyJyZXF1aXJlc19hY2tub3dsZWRnZW1lbnQiOiJmYWxzZSI/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceTestdocINV_Json_A2.docx",
              "mime_code": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQDnIQddcAEAANcFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnht/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoicePPT_Json_A2.pptx",
              "mime_code": "application/vnd.ms-powerpoint",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtb/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "10InvoiceRichText_Json_A2.rtf",
              "mime_code": "application/rtf",
              "encoding": "base64",
              "content": "e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2NvYXRleHRz/Base64EncodingIntentionallyTruncated"
            }
          ],
          "tax_details": [
            {
              "tax_type": "Value added tax",
              "tax_amount": "21",
              "tax_rate": ""
            },
            {
              "tax_type": "IGST",
              "tax_amount": "",
              "tax_rate": "22"
            },
            {
              "tax_type": "Withholding tax",
              "tax_amount": "23",
              "tax_rate": ""
            }
          ],
          "invoice_lines": [
            {
              "external_invoice_number": "EXT-INV-noerp-PO_Attach_A2",
              "purchase_order_line": "00045310041",
              "po_line_description": "Yeti microphone - black",
              "line_description": "10MultiInvoiceLineAttach_A2",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "200.00-",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00001",
              "gl_account": "141150",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "attachments": [
                {
                  "file_name": "10InvoiceTest_INVLine_Json_A2.pdf",
                  "mime_code": "application/pdf",
                  "encoding": "base64",
                  "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZW50/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10InvoiceTest_INVLine_Json_A2.jpg",
                  "mime_code": "image/jpeg",
                  "encoding": "base64",
                  "content": "iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ0Mg/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10InvceTst2_INVLine_Json_A2.pdf",
                  "mime_code": "application/pdf",
                  "encoding": "base64",
                  "content": "JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZW50Y/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10InvoiceTestXML_INVLine_Json_A2.xml",
                  "mime_code": "text/xml",
                  "encoding": "base64",
                  "content": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxv/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10InvoiceTestExcel_INVLine_Json_A2.xlsx",
                  "mime_code": "application/vnd.ms-excel",
                  "encoding": "base64",
                  "content": "UEsDBBQABgAIAAAAIQCpD2g4fwEAAAIFAAATAAgCW0NvbnRlbnRfVHlwZX/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10InvoiceTestdoc_INVLine_Json_A2.docx",
                  "mime_code": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                  "encoding": "base64",
                  "content": "UEsDBBQABgAIAAAAIQDnIQddcAEAANcFAAATAAgCW0NvbnRlbnRfVHlwZX/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10_InvoiceLinePPT_Json_A2.pptx",
                  "mime_code": "application/vnd.ms-powerpoint",
                  "encoding": "base64",
                  "content": "UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZX/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "10_InvoiceLineRichText_Json_A2.rtf",
                  "mime_code": "application/rtf",
                  "encoding": "base64",
                  "content": "e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2NvYX/Base64EncodingIntentionallyTruncated"
                }
              ],
              "tax_details": [
                {
                  "tax_type": "IGST",
                  "tax_amount": "",
                  "tax_rate": "3.4"
                },
                {
                  "tax_type": "GST",
                  "tax_amount": "3.9",
                  "tax_rate": ""
                },
                {
                  "tax_type": "VAT",
                  "tax_amount": "2",
                  "tax_rate": "4"
                }
              ]
            },
            {
              "external_invoice_number": "EXT-INV-noerp-PO",
              "purchase_order_line": "00045310041",
              "po_line_description": "Yeti microphone - black",
              "line_description": "Testing ERP POL",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "200.00-",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00001",
              "gl_account": "141150",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "tax_details": [
                {
                  "tax_type": "IGST",
                  "tax_amount": "",
                  "tax_rate": "3.4"
                },
                {
                  "tax_type": "GST",
                  "tax_amount": "3.9",
                  "tax_rate": ""
                },
                {
                  "tax_type": "VAT",
                  "tax_amount": "2",
                  "tax_rate": "4"
                }
              ]
            },
            {
              "external_invoice_number": "EXT-INV-noerp-PO_Attach3",
              "purchase_order_line": "00045310042",
              "po_line_description": "Pv-3310 photo tripod w/3-way pan",
              "line_description": "Date Formate Test",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "100.00",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00002",
              "gl_account": "100005",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "tax_details": [
                {
                  "tax_type": "IGST",
                  "tax_amount": "",
                  "tax_rate": "3.2"
                },
                {
                  "tax_type": "Withholding tax",
                  "tax_amount": "",
                  "tax_rate": "4"
                },
                {
                  "tax_type": "VAT",
                  "tax_amount": "",
                  "tax_rate": "3"
                }
              ],
              "attachments": [
                {
                  "file_name": "InvoiceLinePPT.pptx",
                  "mime_code": "application/vnd.ms-powerpoint",
                  "encoding": "base64",
                  "content": "UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZXN/Base64EncodingIntentionallyTruncated"
                },
                {
                  "file_name": "InvoiceLineRichText.rtf",
                  "mime_code": "application/rtf",
                  "encoding": "base64",
                  "content": "e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2NvYX/Base64EncodingIntentionallyTruncated"
                }
              ]
            },
            {
              "external_invoice_number": "EXT-INV-noerp-PO-01",
              "purchase_order_line": "00045310042",
              "po_line_description": "Yeti microphone - black",
              "line_description": "",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "100.00",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00005",
              "gl_account": "141101",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "tax_details": [
                {
                  "tax_type": "SGST",
                  "tax_amount": "",
                  "tax_rate": "3.1"
                },
                {
                  "tax_type": "GST",
                  "tax_amount": "3.8",
                  "tax_rate": ""
                },
                {
                  "tax_type": "CGST",
                  "tax_amount": "",
                  "tax_rate": "1.2"
                }
              ]
            }
          ]
        },
        {
          "invoice_type": "",
          "supplier_invoice_number": "LineLevelTax_Attach3",
          "external_invoice_number": "EXT-INV-noerp-PO-line_attach3",
          "purchase_order": "",
          "supplier": "880733",
          "date_format": "mm-dd-yyyy",
          "invoice_date": "09-05-2021",
          "payment_terms": "NET 30",
          "legal_entity": "1100.",
          "subtotal": "100",
          "shipping_amount": "30.00",
          "other_charges": "20.00",
          "discounts": "10.00-",
          "amount_invoiced": "140.00",
          "currency": "USD",
          "invoice_line_count": "1",
          "ship_to_city": "New York",
          "ship_to_country": "USA",
          "ship_to_state_or_province": "NY",
          "ship_to_street": "123 Main St",
          "ship_to_zip_or_postal_code": "10001",
          "ship_from_city": "Los Angeles",
          "ship_from_country": "USA",
          "ship_from_state_or_province": "CA",
          "ship_from_street": "456 Oak Ave",
          "ship_from_zip_or_postal_code": "90001",
          "remit_address": "789 Elm St, Suite 200",
          "remit_to_city": "Chicago",
          "remit_to_country": "USA",
          "remit_to_state_or_province": "IL",
          "remit_to_zip_or_postal_code": "60601",
          "supplier_tax_id": "12340009",
          "invoice_copy_attachment": [
            {
              "file_name": "InvoicePPT.pptx",
              "mime_code": "application/vnd.ms-powerpoint",
              "encoding": "base64",
              "content": "UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZXNdLnh/Base64EncodingIntentionallyTruncated"
            },
            {
              "file_name": "InvoiceRichText.rtf",
              "mime_code": "application/rtf",
              "encoding": "base64",
              "content": "e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2NvYXRleH/Base64EncodingIntentionallyTruncated"
            }
          ],
          "invoice_lines": [
            {
              "external_invoice_number": "EXT-INV-noerp-PO-3",
              "purchase_order_line": "00045310041",
              "po_line_description": "Yeti microphone - black",
              "line_description": "Testing ERP POL",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "200.00",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00005",
              "gl_account": "120040",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "tax_details": [
                {
                  "tax_type": "IGST",
                  "tax_amount": "",
                  "tax_rate": "6"
                },
                {
                  "tax_type": "GST",
                  "tax_amount": "7",
                  "tax_rate": ""
                },
                {
                  "tax_type": "Sales tax",
                  "tax_amount": "8",
                  "tax_rate": "8"
                }
              ]
            },
            {
              "external_invoice_number": "EXT-INV-noerp-PO-3",
              "purchase_order_line": "00045310042",
              "po_line_description": "Pv-3310 photo tripod w/3-way pan",
              "line_description": "Date Formate Test",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "200.00",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00001",
              "gl_account": "141250",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "tax_details": [
                {
                  "tax_type": "CGST",
                  "tax_amount": "",
                  "tax_rate": "4.1"
                },
                {
                  "tax_type": "SGST",
                  "tax_amount": "4.4",
                  "tax_rate": ""
                },
                {
                  "tax_type": "VAT",
                  "tax_amount": "",
                  "tax_rate": "4.3"
                }
              ]
            },
            {
              "external_invoice_number": "EXT-INV-noerp-PO-3",
              "purchase_order_line": "00045310042",
              "po_line_description": "Yeti microphone - black",
              "line_description": "",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "100.00",
              "line_amount_invoiced": "97.00",
              "currency": "USD",
              "cost_center": "ACN00007",
              "gl_account": "141300",
              "tax_code": "A0 - Sales tax, standard rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "uom": "Hours",
              "tax_details": [
                {
                  "tax_type": "IGST",
                  "tax_amount": "",
                  "tax_rate": "2.4"
                },
                {
                  "tax_type": "Withholding tax",
                  "tax_amount": "5.5",
                  "tax_rate": ""
                },
                {
                  "tax_type": "VAT",
                  "tax_amount": "2.6",
                  "tax_rate": ""
                }
              ]
            }
          ]
        },
        {
          "invoice_type": "credit_memo",
          "supplier_invoice_number": "EXT-INV-erp-po_AttachLine",
          "external_invoice_number": "EXT-INV-erp-po_AttachLine",
          "original_invoice": "INV0001013",
          "supplier": "",
          "business_owner": "lara.croft@example.com",
          "purchase_order": "0004889699",
          "invoice_date": "09/13/2024",
          "payment_terms": "Net 30",
          "legal_entity": "AUS",
          "subtotal": "150.00",
          "shipping_amount": "30.00",
          "other_charges": "20.00",
          "discounts": "00.00",
          "amount_invoiced": "200.00",
          "currency": "USD",
          "invoice_line_count": "10",
          "ship_to_city": "New York",
          "ship_to_country": "USA",
          "ship_to_state_or_province": "NY",
          "ship_to_street": "123 Main St",
          "ship_to_zip_or_postal_code": "10001",
          "ship_from_city": "Los Angeles",
          "ship_from_country": "USA",
          "ship_from_state_or_province": "CA",
          "ship_from_street": "456 Oak Ave",
          "ship_from_zip_or_postal_code": "90001",
          "remit_address": "789 Elm St, Suite 200",
          "remit_to_city": "Chicago",
          "remit_to_country": "USA",
          "remit_to_state_or_province": "IL",
          "remit_to_zip_or_postal_code": "60601",
          "supplier_tax_id": "123456789",
          "tax_details": [
            {
              "tax_type": "CGST",
              "tax_amount": "15",
              "tax_rate": ""
            },
            {
              "tax_type": "Sales tax",
              "tax_amount": "",
              "tax_rate": "10"
            },
            {
              "tax_type": "SGST",
              "tax_amount": "10",
              "tax_rate": ""
            }
          ],
          "invoice_lines": [
            {
              "external_invoice_number": "EXT-INV-erp-po_AttachLine",
              "line_description": "POL ERP number Attachment on line only",
              "po_line_description": "",
              "purchase_order_line": "00048896991",
              "line_quantity": "5",
              "line_unit_price": "20.00",
              "subtotal": "100.00",
              "line_amount_invoiced": "118.00",
              "currency": "USD",
              "cost_center": "ACN00004",
              "gl_account": "436000",
              "tax_code": "A1 - Sales tax, reduced rate",
              "ship_to_city": "New York",
              "ship_to_country": "USA",
              "ship_to_state_or_province": "NY",
              "ship_to_street": "123 Main St",
              "ship_to_zip_or_postal_code": "10001",
              "supplier_part_number": "SPN-001",
              "attachments": [
                {
                  "file_name": "InvoiceLinePPT.pptx",
                  "mime_code": "application/vnd.ms-powerpoint",
                  "encoding": "base64",
                  "content": "UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZXN/Base64EncodingIntentionallyTruncated""
                },
                {
                  "file_name": "InvoiceLineRichText.rtf",
                  "mime_code": "application/rtf",
                  "encoding": "base64",
                  "content": "e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2NvYXRl/Base64EncodingIntentionallyTruncated"
              ],
              "uom": "Hours"
            }
          ]
        }
      ],
      "target_erp": ""
    }'

次の結果は、要求が成功し、請求書データが処理されていることを示しています。要求のステータスは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルで確認できます。\[バッチ ID\] 列にリストされているバッチ ID を使用して請求書を検索します。

    {
        "batchId": "APIINV1729711710733280",
        "status": "Success",
        "message": "Your request has been successfully received and is being processed."
    }

## AP 請求書 -- POST sn_spend_intg/ap_invoice/xml {#ariaid-title4}

XML 形式で自動請求書を処理します。
請求書統合フィールドマッピング \[sn_spend_intg_invoice_intg_field_mapping\] テーブルを使用して、フィールドを XML タグにマッピングする方法を決定します。  
要求本文のカスタム請求書フィールドを定義できます。次のフローを使用して、カスタムフィールドを追加し、ターゲットテーブルにマッピングして、ペイロードで使用できるようにフォーマットします。

1. [請求書インポートのカスタムフィールドを追加](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-addColToTable "AP 請求書 API で使用する請求書、請求書明細行、および請求書税明細行のカスタムフィールドを追加するには、次の手順を使用します。")
2. [ソーステーブルとターゲットテーブルの間のカスタムフィールドのマッピング](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-mapFieldsTransform "AP 請求書 API のソーステーブルとターゲットテーブルの間でカスタムフィールドをマッピングするには、次の手順を使用します。")
3. [カスタムフィールドのペイロードソース形式へのマッピング](https://servicenow-prod.fluidtopics.net/Xy9A0RpEzfCHQL_2uzJqNA#apInvoice-mapFieldsTSrcFormat "AP 請求書 API の JSON、cXML、または XML のペイロードエントリにカスタムフィールドをマップするには、次の手順を使用します。")
{#ap_invoice-POST-xml__ul_kcx_5fx_sdc}

### URL 形式

バージョニングされた URL: /api/sn_spend_intg/v1/ap_invoice/xml

デフォルト URL: /api/sn_spend_intg/ap_invoice/xml

### サポートされている要求パラメーター

{#ap_invoice-POST-xml__entry__2}{#ap_invoice-POST-xml__version-not_optional-RESTAPI}

| 名前 | 説明 |
|-|-|
| api_version | オプション。アクセスするエンドポイントのバージョン。たとえば、 <kbd class="ph userinput">v1</kbd> や <kbd class="ph userinput">v2</kbd> などです。最新以外のエンドポイントバージョンを使用する場合にのみ、この値を指定してください。 データタイプ：文字列 |
[表 : 13. パスパラメーター]

{#ap_invoice-POST-xml__entry__6}

| 名前 | 説明 |
|-|-|
| なし |   |
[表 : 14. クエリパラメーター]

{#ap_invoice-POST-xml__entry__10}

| パス | 説明 |
|-|-|
| /Invoice/AmountInvoiced | 税金と配送料を含めて、サプライヤーに支払う合計金額。 ターゲットフィールド:u_amount_invoiced 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| 請求書/BillToCity | 請求書の送信先の市区町村。 ターゲットフィールド:u_bill_to_city 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/BillToCountry | 請求書の送信先の国 (ISO 3166 形式)。たとえば、 `US` です。 ターゲットフィールド:u_bill_to_country 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/BillToStateOrProvince | 請求書の送信先の都道府県。 ターゲットフィールド:u_bill_to_state_or_province 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/BillToStreet | 請求書送信先の番地。 ターゲットフィールド:u_bill_to_street 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/BillToZipOrPostalCode | 請求書の送信先の郵便番号。 ターゲットフィールド:u_bill_to_zip_or_postal_code |
| /請求書/通貨 | 必須です。小計、税金、および送料の通貨。小計、税金、および配送料は同じ通貨である必要があります。 ターゲットフィールド:u_currency 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/DateFormat | 請求書の日付形式をデフォルトの YYYY-MM-DD からサポートされている別の日付形式に設定します。日付値は InvoiceDate 要素に設定されます。 サポートされている日付形式: * DD うーん、YYYY * DD MMM、YY * DD MMM、YYYY * DD MMMM YYYY * DD MMMM、YY * DD MMMM, YYYY * DD-MM-YY * DD-MM-YYYY * DD-MMM-YY * DD-MMM-YYYY * DD.MM.YY * DD.MM.YYYY * DD/MM/YY * DD/MM/YYYY * dd/mmm/yyyy * MM-DD-YY * MM-DD-YYYY * MM.DD.YY * MM.DD.YYYY * MM/DD/YY * MM/DD/YYYY * MMM DD YYYY * MMM DD、YY * MMM DD、YYYY * MMMM DD YYYY * MMMM DD、YY * MMMM DD, YYYY * YY-MM-DD * YY。MM.DD * YY/MM/DD * YYYY-MM-DD (デフォルト) * YYYYです。MM.DD * YYYY/MM/DD {#ap_invoice-POST-xml__ul_d12_xkt_c2c} 注: MMM 形式のエントリは、最初の 3 文字で月を表します (例:Aug)。MMMM 形式のエントリは、完全な月の名前 (8 月など) を表します。 ターゲットフィールド:u_date_format 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] デフォルト形式:YYYY-MM-DD |
| /請求書/割引 | 請求書に適用される割引。 ターゲットフィールド:u_discounts 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/ExternalInvoiceNumber | サードパーティアプリケーションから生成された請求書番号。 ターゲットフィールド:u_external_invoice_number 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/InvoiceDate | 顧客に請求された日付。DateFormat要素を使用して、サポートされているデフォルト以外の形式で日付を追加します。 ターゲットフィールド:u_invoice_date 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] デフォルト形式:YYYY-MM-DD |
| /Invoice/LegalEntity | サプライヤーの法人の名前。法人 \[sn_fin_legal_entity\] テーブルにあります。 ターゲットフィールド:u_legal_entity 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/OtherCharges | 請求書に関連するその他の追加料金。これは編集可能なフィールドです。 ターゲットフィールド:u_other_charges 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/PaymentTerms | サプライヤーへの支払いが行われる、合意された時間と条件。たとえば、「 `Net 30`」などです。 ターゲットフィールド:u_payment_terms 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /請求書/送金住所 | 支払先の番地。 ターゲットフィールド:u_remit_address |
| 請求書/RemitToCity | 支払先の市区町村。 ターゲットフィールド:u_remit_to_city |
| /Invoice/RemitToCountry | 支払先の国 (ISO 3166 形式)。たとえば、 `US` です。 ターゲットフィールド:u_remit_to_country |
| /Invoice/RemitToStateOrProvince | 支払先の都道府県。 ターゲットフィールド:u_remit_to_state_or_province |
| /Invoice/RemitToZipOrPostalCode | 支払先の郵便番号。 ターゲットフィールド:u_remit_to_zip_or_postal_code |
| /Invoice/ShipFromCity | 発注書の品目の配送元の市区町村。 ターゲットフィールド:u_ship_from_city 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/ShipFromCountry | 発注書の品目の配送元の国。 ターゲットフィールド:u_ship_from_country 関連テーブル:請求書明細行 \[sn_spend_intg_imp_invoice\] |
| /Invoice/ShipFromStateOrProvince | 発注書の品目の配送元の都道府県。 ターゲットフィールド:u_ship_from_state_or_province 関連テーブル:請求書明細行 \[sn_spend_intg_imp_invoice\] |
| /請求書/ShipFromStreet | 発注書の品目の配送元の番地。 ターゲットフィールド:u_ship_from_street 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /Invoice/ShipFromZipOrPostalCode | 発注書の品目の配送元の郵便番号。 ターゲットフィールド:u_ship_from_zip_or_postal_code 関連テーブル:請求書明細行 \[sn_spend_intg_imp_invoice\] |
| /Invoice/ShippingAmount | 購入全体の合計送料。 ターゲットフィールド:u_shipping_amount 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /請求書/小計 | 税金および配送料を除き、仕入先に支払う合計金額。 ターゲットフィールド:u_subtotal 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /請求書/サプライヤー | 顧客が注文できるリセラーまたはサプライヤーの識別子。 ターゲットフィールド:u_supplier 関連テーブル:請求書のインポート \[sn_spend_intg_imp_invoice\] |
| /請求書/SupportingAttachments | 買掛金スペシャリストにアサインされたケースの請求書処理ケースレベルで定義された添付ファイルのリスト。「[Invoice processing case form](https://www.servicenow.com/docs/access?context=invoice-processing-case-form&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 作成されると、関連する請求書ケースおよび請求書明細行とともに請求書レコードが生成されます。添付ファイルは、それぞれのレコードに適宜リンクされます。 |
| /請求書/SupportingAttachments/添付ファイル/ | 1 つの添付ファイルの詳細が含まれます。 |
| /請求書/SupportingAttachments/添付ファイル/コンテンツ | Base64 でエンコードされた添付ファイルのファイルコンテンツ。 |
| /Invoice/SupportingAttachments/attachment/Encoding | この値は常に <kbd class="ph userinput">base64</kbd> です。 |
| /Invoice/SupportingAttachments/Attachment/FileName | 添付ファイルのファイル名。 注: 添付ファイル名に予約済みの「SD_」接頭辞を使用しないでください。 |
| /Invoice/SupportingAttachments/Attachment/MimeCode | この値は常に <kbd class="ph userinput">base64</kbd> です。 |
| /請求書/InvoiceCopyAttachment/ | 請求書レベルで定義された添付ファイルのリスト。「[Accounts Payable Invoice Processing](https://www.servicenow.com/docs/access?context=acc-pay-invoice-processing&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US)」を参照してください。 作成されると、関連する請求書ケースおよび請求書明細行とともに請求書レコードが生成されます。添付ファイルは、それぞれのレコードに適宜リンクされます。 |
| /請求書/InvoiceCopyAttachment/添付ファイル/ | 1 つの添付ファイルの詳細が含まれます。 |
| /請求書/InvoiceCopyAttachment/添付ファイル/コンテンツ | Base64 でエンコードされた添付ファイルのファイルコンテンツ。 |
| /Invoice/InvoiceCopyAttachment/添付ファイル/エンコーディング | この値は常に <kbd class="ph userinput">base64</kbd> です。 |
| /Invoice/InvoiceCopyAttachment/Attachment/FileName | 添付ファイルのファイル名。 注: 添付ファイル名に予約済みの「SD_」接頭辞を使用しないでください。 |
| /請求書/InvoiceCopyAttachment/Attachment/MimeCode | この値は常に <kbd class="ph userinput">base64</kbd> です。 |
| /請求書/InvoiceLines/ | このオーダー内の購入に対して請求される明細行を定義する InvoiceLine 要素のリスト。 |
| /請求書明細/ | 請求書項目の定義。請求書明細行は、請求書明細行インポート受信 \[sn_spend_intg_imp_invoice_line\] テーブルにステージングされます。 |
| /InvoiceLine/添付ファイル/ | 1 つの添付ファイルの詳細が含まれます。 |
| /InvoiceLine/添付ファイル/コンテンツ | Base64 でエンコードされた添付ファイルのファイルコンテンツ。 |
| /InvoiceLine/添付ファイル/エンコーディング | この値は常に <kbd class="ph userinput">base64</kbd> です。 |
| /InvoiceLine/添付ファイル/ファイル名 | 添付ファイルのファイル名。 注: 添付ファイル名に予約済みの「SD_」接頭辞を使用しないでください。 |
| /InvoiceLine/添付ファイル/MimeCode | この値は常に <kbd class="ph userinput">base64</kbd> です。 |
| /請求書明細/コストセンター | 請求書が生成されるコストセンターのアカウント番号。コストセンター \[cmn_cost_center\] テーブルにリストされます。 ターゲットフィールド:u_cost_center |
| /InvoiceLine/Currency | 品目の通貨。たとえば、 `USD` です。 ターゲットフィールド:u_currency 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/GLAccount | 請求書の生成に使用される総勘定元帳 (GL) のアカウント番号。 ターゲットフィールド:u_gl_account 関連項目： * [ERP source](https://www.servicenow.com/docs/access?context=erp-source&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US) * [Ledger account](https://www.servicenow.com/docs/access?context=ledger-account&version=australia&pubname=australia-source-to-pay-operations&ft:locale=en-US) {#ap_invoice-POST-xml__ul_u23_b3r_cdc} |
| /InvoiceLine/LineAmountInvoiced | 特定の発注書明細について顧客に請求される総コスト (税金と配送料を除く)。 ターゲットフィールド:u_line_amount_invoiced 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/LineDescription | 請求書明細行の説明。 ターゲットフィールド:u_line_description |
| /InvoiceLine/LineQuantity | 顧客に請求される商品またはサービスの数量。 ターゲットフィールド:u_line_quantity |
| /InvoiceLine/LineUnitPrice | 請求書の項目の単価。 ターゲットフィールド:u_line_unit_price 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/POLineDescription | 請求書の発注書明細の説明。 ターゲットフィールド:u_po_line_description 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/PurchaseOrderLine | この注文に対して顧客から提供された発注書番号。発注書 (PO) \[sn_shop_purchase_order\] テーブルにリストされます。 ターゲットフィールド:u_purchase_order 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/ShipToCity | 発注書の品目の配送先の市区町村。 ターゲットフィールド:u_ship_to_city 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/ShipToCountry | 発注書の品目の配送先の国。 ターゲットフィールド:u_ship_to_country 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/ShipToStateOrProvince | 発注書の品目の配送先の都道府県。 ターゲットフィールド:u_ship_to_state_or_province |
| /InvoiceLine/ShipToStreet | 発注書の品目の配送先の番地。 ターゲットフィールド:u_ship_to_street 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/ShipToZipOrPostalCode | 発注書の品目の配送先の郵便番号。 ターゲットフィールド:u_ship_to_zip_or_postal_code 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/Subtotal | 税金および配送料を除き、仕入先に支払う合計金額。 ターゲットフィールド:u_subtotal 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/SupplierPartNumber | この請求書項目に対してサプライヤーによって生成された部品番号。 ターゲットフィールド:u_supplier_part_number 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/TaxCode | ERP ソースから生成された一意の税コード。 ターゲットフィールド:u_tax_code 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /InvoiceLine/UOM | 請求書のアイテムをカウントするために使用される基本測定単位 (UOM)。 ターゲットフィールド:u_uom 関連テーブル:請求書項目インポート \[sn_spend_intg_imp_invoice_line\] |
| /TaxDetail/TaxType | 請求書に適用される税のタイプ。税タイプ \[sn_fin_tax_type\] テーブルにリストされます。 ターゲットフィールド:u_tax_type 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] |
| /TaxDetail/TaxRate | サプライヤーが請求する税率。 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] ターゲットフィールド:u_supplier_tax_rate 関連テーブル:請求書税項目インポート \[sn_spend_intg_imp_invoice_tax_line\] |
[表 : 15. 要求本文要素 (XML)]

### ヘッダー

次の要求ヘッダーと応答ヘッダーは、この HTTP アクションにのみ適用されるか、別の方法でこのアクションに適用されます。REST API で使用される一般的なヘッダーのリストについては、「 [サポートされている REST API ヘッダー」](https://servicenow-prod.fluidtopics.net/lLW_uT5I5_l1aD8yR4Jt9A "REST (REpresentational State Transfer) は、Web 上のコンピューター システム間の標準を提供するシンプルなステートレス アーキテクチャであり、コンピューター システム間の通信を容易にします。")を参照してください。
{#ap_invoice-POST-xml__entry__144}

| ヘッダー | 説明 |
|-|-|
| Content-Type | 要求本文のデータ形式。application/xml のみをサポートします。 |
| ソースシステム | 要求の送信元のソースシステムを指定します。 使用可能なシステムは、ソースシステム認証情報 \[sn_spend_intg_source_system_credential\] テーブルにリストされています。 この設定は、提供された要求が請求書統合フィールドマッピング \[sn_spend_intg_invoice_intg_field_mapping\] テーブルの構造に従っているかどうかを判断するのに役立ちます。 この設定は、ソースシステム認証情報 \[sn_spend_intg_source_system_credential\] テーブルから認証情報をフェッチするためにも使用されます。 |
[表 : 16. 要求ヘッダー]

{#ap_invoice-POST-xml__entry__150}

| ヘッダー | 説明 |
|-|-|
| なし |   |
[表 : 17. 応答ヘッダー]

### ステータスコード

この HTTP アクションには、次のステータスコードが適用されます。REST API で使用される可能性のあるステータスコードのリストについては、「 [REST API HTTP 応答コード](https://servicenow-prod.fluidtopics.net/lLW_uT5I5_l1aD8yR4Jt9A "REST (REpresentational State Transfer) は、Web 上のコンピューター システム間の標準を提供するシンプルなステートレス アーキテクチャであり、コンピューター システム間の通信を容易にします。")」を参照してください。
{#ap_invoice-POST-xml__table_wqv_qxk_ddc__entry__2}{#ap_invoice-POST-xml__entry-400-status-code}

| ステータスコード | 説明 |
|-|-|
| 202 | 要求が承認されました。要求が成功し、請求書の処理が進行中です。 |
| 400 | 要求が正しくありません。不適切な要求タイプまたは誤った要求が検出されました。 |
| 429 | 要求が多すぎます。要求レートが 1 時間あたりの最大要求 10 を超えました。 |
[表 : 18. ステータスコード]

{#ap_invoice-POST-xml__table_wqv_qxk_ddc}

### 応答本文のパラメーター

{#ap_invoice-POST-xml__entry__162}

| 名前 | 説明 |
|-|-|
| batch_id | バッチ要求の一意の識別子。この ID を使用して、要求のステータスを追跡できます。このレコードは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルに保存されます。 データタイプ：文字列 |
| エラー | 要求が失敗した場合のエラーメッセージと詳細が含まれます。 { "detail": String, "message": String } データタイプ: オブジェクト |
| error.detail | 要求エラーに関するその他の詳細。 考えられる結果: * API レベルの ACL 検証に失敗しました:ユーザーにはリソースへの読み取り/書き込みアクセス権がありません。 * AP 請求書の 1 時間あたり 13 要求のレート制限を超えました:バッチ内のレコード数が、設定されたバッチサイズを超えています。 * 認証情報の提供に必要です - パスワードまたはユーザー名が間違っています。 {#ap_invoice-POST-xml__ul_ukg_sht_c2c} データタイプ：文字列 |
| error.message | 要求が失敗した理由を含むエラーメッセージ 考えられるエラー: * 無効なペイロード:無効なコンテンツタイプ。 * 無効なペイロード:エラー:無効なペイロード構造。 * 無効なペイロード:エラー:ペイロードがバッチで許可されている請求書制限を超えています。バッチ内のレコード数が、設定されたバッチサイズを超えています。デフォルトのペイロードの最大サイズは 100 レコードです。この値は、 sn_spend_intg.ap.invoice.create.api.record_limit システムのプロパティで構成できます。 * 無効なペイロード:エラー:請求書が空です。処理するデータがありません。バッチ内のレコード数がゼロです。 * APO 請求書取り込みのレート制限である 1 時間あたり 500 要求を超えました。 * ユーザーが認証されていません。パスワードまたはユーザー名が間違っています。 * API レベルの ACL 検証に失敗しました:ユーザーにはリソースへの読み取り/書き込みアクセス権がありません。 {#ap_invoice-POST-xml__ul_knb_fhr_2dc} データタイプ：文字列 |
| メッセージ | 成功メッセージ (例: 要求が正常に受信され、処理されています)。 要求のステータスは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルで確認できます。 データタイプ：文字列 |
| status | 要求の結果を示します。 可能な値： * 成功 * 失敗 {#ap_invoice-POST-xml__ul_zfp_shr_2dc} データタイプ：文字列 |
[ ]

### cURL 要求 {#ap_invoice-POST-xml__example_mnp_3dm_ddc}

次の例は、要求として提供された請求書を XML 形式で処理する方法を示しています。 Base64 エンコーディングのサイズはさまざまで、非常に大きくなる可能性があります。スペースを節約するためにコンテンツ値が切り捨てられました。情報は適切なペイロード構造を反映しています。

    curl -X POST https://instance.servicenow.com/api/sn_spend_intg/v1/ap_invoice/xml \
    -H "Source-System: Ariba" \
    -H "Content-Type: application/json" \
    -d '<Invoices>
        <Invoice>
            <InvoiceType>po_invoice</InvoiceType>
            <SupplierInvoiceNumber>S-AttachmentInvoice-A1-SupportDoc1</SupplierInvoiceNumber>
            <ExternalInvoiceNumber>EXT-INV-#00A1</ExternalInvoiceNumber>
            <Supplier>3245545</Supplier>
            <PurchaseOrder>###0004889698</PurchaseOrder>
            <BusinessOwner>paula.smith@example.com</BusinessOwner>
            <DateFormat>DD-MMM-YY</DateFormat>
            <InvoiceDate>16-DEC-24</InvoiceDate>
            <PaymentTerms>Net 60</PaymentTerms>
            <LegalEntity>US</LegalEntity>
            <Subtotal>100.00</Subtotal>
            <ShippingAmount>20.00</ShippingAmount>
            <OtherCharges>20</OtherCharges>
            <Discounts>10</Discounts>
            <AmountInvoiced>150.00</AmountInvoiced>
            <Currency>USD</Currency>
            <InvoiceLineCount>1</InvoiceLineCount>
            <ShipToCity>Los Angeles</ShipToCity>
            <ShipToCountry>USA</ShipToCountry>
            <ShipToStateOrProvince>CA</ShipToStateOrProvince>
            <ShipToStreet>456 Oak Ave</ShipToStreet>
            <ShipToZipOrPostalCode>90001</ShipToZipOrPostalCode>
            <ShipFromCity>Addison</ShipFromCity>
            <ShipFromCountry>USA</ShipFromCountry>
            <ShipFromStateOrProvince>TX</ShipFromStateOrProvince>
            <ShipFromStreet>15725 Dallas P</ShipFromStreet>
            <ShipFromZipOrPostalCode>55555</ShipFromZipOrPostalCode>
            <RemitAddress>47 W 11th St</RemitAddress>
            <RemitToCity>New York</RemitToCity>
            <RemitToCountry>USA</RemitToCountry>
            <RemitToStateOrProvince>NY</RemitToStateOrProvince>
            <RemitToZipOrPostalCode>99999</RemitToZipOrPostalCode>
            <BillToStreet>4810 Eastgate Mall</BillToStreet>
            <BillToCity>San Diego</BillToCity>
            <BillToCountry>USA</BillToCountry>
            <BillToStateOrProvince>CA</BillToStateOrProvince>
            <BillToZipOrPostalCode>92121</BillToZipOrPostalCode>
            <SupplierTaxID>7894328742</SupplierTaxID>
            <TaxDetails>
                <TaxDetail>
                    <TaxType>Sales tax</TaxType>
                    <TaxAmount>10</TaxAmount>
                    <TaxRate></TaxRate>
                </TaxDetail>
                <TaxDetail>
                    <TaxType>CGST</TaxType>
                    <TaxAmount></TaxAmount>
                    <TaxRate>11</TaxRate>
                </TaxDetail>
                <TaxDetail>
                    <TaxType>IGST</TaxType>
                    <TaxAmount>12</TaxAmount>
                    <TaxRate>12</TaxRate>
                </TaxDetail>
                <TaxDetail>
                    <TaxType>Withholding tax</TaxType>
                    <TaxAmount>13</TaxAmount>
                    <TaxRate></TaxRate>
                </TaxDetail>
            </TaxDetails>
            <SupportingAttachments>
                <Attachment>
                    <FileName>InvoiceCaseSupportingDoc.png</FileName>
                    <MimeCode>image/png</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>InvoiceImageA1.jpg</FileName>
                    <MimeCode>image/jpeg</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPCggKDxINC/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
            </SupportingAttachments>
            <InvoiceCopyAttachment>
                <Attachment>
                    <FileName>InvoiceA1.pdf</FileName>
                    <MimeCode>application/pdf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>InvoiceImageA1.jpg</FileName>
                    <MimeCode>image/jpeg</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPCggKDxINC/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
            </InvoiceCopyAttachment>
            <InvoiceLines>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-#00A1</ExternalInvoiceNumber>
                    <LineDescription>Invoice_Line_Attach_A1</LineDescription>
                    <PurchaseOrderLine>POL11232</PurchaseOrderLine>
                    <POLineDescription>NowX Charger</POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>10.00</LineUnitPrice>
                    <Subtotal>200.00</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00001</CostCenter>
                    <GLAccount>100005</GLAccount>
                    <TaxCode>A1 - Sales tax, reduced rate</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <Attachments>
                        <Attachment>
                            <FileName>InvoiceLineA1.png</FileName>
                            <MimeCode>image/png</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMT/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                    </Attachments>
                </InvoiceLine>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-#00A</ExternalInvoiceNumber>
                    <LineDescription>InvoiceLine_PDF_Attach_A1</LineDescription>
                    <PurchaseOrderLine>00048896981</PurchaseOrderLine>
                    <POLineDescription></POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>10.00</LineUnitPrice>
                    <Subtotal>200.00</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00005</CostCenter>
                    <GLAccount>120050</GLAccount>
                    <TaxCode>A1 - Sales tax, reduced rate</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <Attachments>
                        <Attachment>
                            <FileName>Invoice_line_A1.pdf</FileName>
                            <MimeCode>application/pdf</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBER/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>InvoiceImageA1.jpg</FileName>
                            <MimeCode>image/jpeg</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPC/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                    </Attachments>
                </InvoiceLine>
            </InvoiceLines>
        </Invoice>
        <Invoice>
            <InvoiceType>non_po_invoice</InvoiceType>
            <SupplierInvoiceNumber>10MultiAttach_Inv_invline_A2-MultiSupp</SupplierInvoiceNumber>
            <ExternalInvoiceNumber>EXT-INV-#00A2</ExternalInvoiceNumber>
            <Supplier>3245545</Supplier>
            <BusinessOwner>paula.smith@example.com</BusinessOwner>
            <DateFormat>DD-MMM-YYYY</DateFormat>
            <InvoiceDate>10-Nov-2024</InvoiceDate>
            <PaymentTerms>Net 60</PaymentTerms>
            <LegalEntity>1100</LegalEntity>
            <Subtotal>120.00</Subtotal>
            <ShippingAmount>10.00</ShippingAmount>
            <OtherCharges>10</OtherCharges>
            <Discounts>10</Discounts>
            <AmountInvoiced>150.00</AmountInvoiced>
            <Currency>USD</Currency>
            <InvoiceLineCount>1</InvoiceLineCount>
            <ShipToCity>Los Angeles</ShipToCity>
            <ShipToCountry>USA</ShipToCountry>
            <ShipToStateOrProvince>CA</ShipToStateOrProvince>
            <ShipToStreet>456 Oak Ave</ShipToStreet>
            <ShipToZipOrPostalCode>90001</ShipToZipOrPostalCode>
            <ShipFromCity>Addison</ShipFromCity>
            <ShipFromCountry>USA</ShipFromCountry>
            <ShipFromStateOrProvince>TX</ShipFromStateOrProvince>
            <ShipFromStreet>15725 Dallas P</ShipFromStreet>
            <ShipFromZipOrPostalCode>55555</ShipFromZipOrPostalCode>
            <RemitAddress>47 W 11th St</RemitAddress>
            <RemitToCity>New York</RemitToCity>
            <RemitToCountry>USA</RemitToCountry>
            <RemitToStateOrProvince>NY</RemitToStateOrProvince>
            <RemitToZipOrPostalCode>99999</RemitToZipOrPostalCode>
            <BillToStreet>4810 Eastgate Mall</BillToStreet>
            <BillToCity>San Diego</BillToCity>
            <BillToCountry>USA</BillToCountry>
            <BillToStateOrProvince>CA</BillToStateOrProvince>
            <BillToZipOrPostalCode>92121</BillToZipOrPostalCode>
            <SupplierTaxID>7894328742</SupplierTaxID>
            <TaxDetails>
                <TaxDetail>
                    <TaxType>Value added tax</TaxType>
                    <TaxAmount>8</TaxAmount>
                    <TaxRate></TaxRate>
                </TaxDetail>
                <TaxDetail>
                    <TaxType>Withholding tax</TaxType>
                    <TaxAmount></TaxAmount>
                    <TaxRate>7</TaxRate>
                </TaxDetail>
            </TaxDetails>
            <SupportingAttachments>
                <Attachment>
                    <FileName>10InvoiceCaseTestInv_Xml_A2.pdf</FileName>
                    <MimeCode>application/pdf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCasePNGInv_Xml_A2.png</FileName>
                    <MimeCode>image/png</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvceCaseTst2Inv_Xml_A2.pdf</FileName>
                    <MimeCode>application/pdf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCaseTestXMLINV_Xml_A2.xml</FileName>
                    <MimeCode>text/xml</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kY/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCaseTestExcelINV_Xml_A2.xlsx</FileName>
                    <MimeCode>application/vnd.ms-excel</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>UEsDBBQABgAIAAAAIQCpD2g4fwEAAAIFAAATAAgCW0NvbnRlbnRfVHlwZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCaseTestdocINV_Xml_A2.docx</FileName>
                    <MimeCode>application/vnd.openxmlformats-officedocument.wordprocessingml.document</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>UEsDBBQABgAIAAAAIQDnIQddcAEAANcFAAATAAgCW0NvbnRlbnRfVHlwZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCasePPT_Xml_A2.pptx</FileName>
                    <MimeCode>application/vnd.ms-powerpoint</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCaseRichText_Xml_A2.rtf</FileName>
                    <MimeCode>application/rtf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2Nv/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceCaseImageJpeg_XML_A2.jpg</FileName>
                    <MimeCode>image/jpeg</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPCggKDxINC/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
            </SupportingAttachments>
            <InvoiceCopyAttachment>
                <Attachment>
                    <FileName>10InvoiceTestInv_Xml_A2.pdf</FileName>
                    <MimeCode>application/pdf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoicePNGInv_Xml_A2.png</FileName>
                    <MimeCode>image/png</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMTmlDQ1BJQ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvceTst2Inv_Xml_A2.pdf</FileName>
                    <MimeCode>application/pdf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBERiBQcmVzZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceTestXMLINV_Xml_A2.xml</FileName>
                    <MimeCode>text/xml</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kY/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceTestExcelINV_Xml_A2.xlsx</FileName>
                    <MimeCode>application/vnd.ms-excel</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>UEsDBBQABgAIAAAAIQCpD2g4fwEAAAIFAAATAAgCW0NvbnRlbnRfVHlwZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceTestCSVINV_Xml_A2.csv</FileName>
                    <MimeCode>text/csv</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>Im51bWJlciIsInN1cHBsaWVyX2ludm9pY2VfbnVtYmVyIiwic3VwcGxp/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceTestJsonINV_Xml_A2.json</FileName>
                    <MimeCode>application/json</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>eyJyZWNvcmRzIjpbeyJyZXF1aXJlc19hY2tub3dsZWRnZW1lbnQiOiJmY/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceTestdocINV_Xml_A2.docx</FileName>
                    <MimeCode>application/vnd.openxmlformats-officedocument.wordprocessingml.document</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>UEsDBBQABgAIAAAAIQDnIQddcAEAANcFAAATAAgCW0NvbnRlbnRfVHlwZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoicePPT_Xml_A2.pptx</FileName>
                    <MimeCode>application/vnd.ms-powerpoint</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlbnRfVHlwZ/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceRichText_Xml_A2.rtf</FileName>
                    <MimeCode>application/rtf</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyClxjb2Nv/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
                <Attachment>
                    <FileName>10InvoiceImageJpeg_XML_A2.jpg</FileName>
                    <MimeCode>image/jpeg</MimeCode>
                    <Encoding>base64</Encoding>
                    <Content>/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPCggKDxINC/Base64EncodingIntentionallyTruncated=</Content>
                </Attachment>
            </InvoiceCopyAttachment>
            <InvoiceLines>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-#00A2</ExternalInvoiceNumber>
                    <LineDescription>Apple_MultiAttach_A2</LineDescription>
                    <PurchaseOrderLine>48896981</PurchaseOrderLine>
                    <POLineDescription>Keyboards</POLineDescription>
                    <LineQuantity>12</LineQuantity>
                    <LineUnitPrice>10.00</LineUnitPrice>
                    <Subtotal>(200.00)</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00005</CostCenter>
                    <GLAccount>141100</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <TaxDetails>
                        <TaxDetail>
                            <TaxType>SGST</TaxType>
                            <TaxAmount>2</TaxAmount>
                            <TaxRate></TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>IGST</TaxType>
                            <TaxAmount></TaxAmount>
                            <TaxRate>3</TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>IGST</TaxType>
                            <TaxAmount>5</TaxAmount>
                            <TaxRate>4</TaxRate>
                        </TaxDetail>
                    </TaxDetails>
                    <Attachments>
                        <Attachment>
                            <FileName>10InvoiceTestInvLine_Xml_A2.pdf</FileName>
                            <MimeCode>application/pdf</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBER/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvcPNGInvLine_Xml_A2.png</FileName>
                            <MimeCode>image/png</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>iVBORw0KGgoAAAANSUhEUgAAA0YAAALUCAYAAAAv/SLkAAAMT/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvTst2InvLine_Xml_A2.pdf</FileName>
                            <MimeCode>application/pdf</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>JVBERi0xLjQKJaqrrK0KMSAwIG9iago8PAovVGl0bGUgKFBER/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceTestXMLINVLine_Xml_A2.xml</FileName>
                            <MimeCode>text/xml</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIH/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceTestExcelINVLine_Xml_A2.xlsx</FileName>
                            <MimeCode>application/vnd.ms-excel</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>UEsDBBQABgAIAAAAIQCpD2g4fwEAAAIFAAATAAgCW0NvbnRlbn/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceTestCSVINVLine_Xml_A2.csv</FileName>
                            <MimeCode>text/csv</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>Im51bWJlciIsInN1cHBsaWVyX2ludm9pY2VfbnVtYmVyIiwic/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceTestJsonINVLine_Xml_A2.json</FileName>
                            <MimeCode>application/json</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>eyJyZWNvcmRzIjpbeyJyZXF1aXJlc19hY2tub3dsZWRnZW1lb/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceTestdocINVLine_Xml_A2.docx</FileName>
                            <MimeCode>application/vnd.openxmlformats-officedocument.wordprocessingml.document</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>UEsDBBQABgAIAAAAIQDnIQddcAEAANcFAAATAAgCW0NvbnRlb/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceLinePPT_Xml_A2.pptx</FileName>
                            <MimeCode>application/vnd.ms-powerpoint</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>UEsDBBQABgAIAAAAIQAPBpW0tQEAAHgMAAATAAgCW0NvbnRlb/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvoiceLineRichText_Xml_A2.rtf</FileName>
                            <MimeCode>application/rtf</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYyODIyC/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                        <Attachment>
                            <FileName>10InvcImageJPG_InvcLine_Xml_A2.jpg</FileName>
                            <MimeCode>image/jpeg</MimeCode>
                            <Encoding>base64</Encoding>
                            <Content>/9j/4AAQSkZJRgABAQEA8ADwAAD/2wCEAAoHBwcIBwoICAoPC/Base64EncodingIntentionallyTruncated=</Content>
                        </Attachment>
                    </Attachments>
                </InvoiceLine>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-#002</ExternalInvoiceNumber>
                    <LineDescription>Negative Tax</LineDescription>
                    <PurchaseOrderLine>48896981</PurchaseOrderLine>
                    <POLineDescription>Keyboards</POLineDescription>
                    <LineQuantity>12</LineQuantity>
                    <LineUnitPrice>10.00</LineUnitPrice>
                    <Subtotal>200.00</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00001</CostCenter>
                    <GLAccount>100001</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <TaxDetails>
                        <TaxDetail>
                            <TaxType>Value added tax</TaxType>
                            <TaxAmount></TaxAmount>
                            <TaxRate>6</TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>Withholding tax</TaxType>
                            <TaxAmount>16</TaxAmount>
                            <TaxRate></TaxRate>
                        </TaxDetail>
                    </TaxDetails>
                </InvoiceLine>
            </InvoiceLines>
        </Invoice>
        <Invoice>
            <InvoiceType></InvoiceType>
            <SupplierInvoiceNumber>Both taxes</SupplierInvoiceNumber>
            <ExternalInvoiceNumber>EXT-INV-#008</ExternalInvoiceNumber>
            <Supplier>3245545</Supplier>
            <OriginalInvoice></OriginalInvoice>
            <PurchaseOrder>###0004889698</PurchaseOrder>
            <BusinessOwner>paula.smith@example.com</BusinessOwner>
            <DateFormat>DD MMMM, YY</DateFormat>
            <InvoiceDate>5 June, 24</InvoiceDate>
            <PaymentTerms>Net 60</PaymentTerms>
            <LegalEntity>1100</LegalEntity>
            <Subtotal>100.00</Subtotal>
            <ShippingAmount>10.00</ShippingAmount>
            <OtherCharges>10-</OtherCharges>
            <Discounts>10</Discounts>
            <AmountInvoiced>130.00</AmountInvoiced>
            <Currency>USD</Currency>
            <InvoiceLineCount>1</InvoiceLineCount>
            <ShipToCity>Los Angeles</ShipToCity>
            <ShipToCountry>USA</ShipToCountry>
            <ShipToStateOrProvince>CA</ShipToStateOrProvince>
            <ShipToStreet>456 Oak Ave</ShipToStreet>
            <ShipToZipOrPostalCode>90001</ShipToZipOrPostalCode>
            <ShipFromCity>Addison</ShipFromCity>
            <ShipFromCountry>USA</ShipFromCountry>
            <ShipFromStateOrProvince>TX</ShipFromStateOrProvince>
            <ShipFromStreet>15725 Dallas P</ShipFromStreet>
            <ShipFromZipOrPostalCode>55555</ShipFromZipOrPostalCode>
            <RemitAddress>47 W 11th St</RemitAddress>
            <RemitToCity>New York</RemitToCity>
            <RemitToCountry>USA</RemitToCountry>
            <RemitToStateOrProvince>NY</RemitToStateOrProvince>
            <RemitToZipOrPostalCode>99999</RemitToZipOrPostalCode>
            <BillToStreet>4810 Eastgate Mall</BillToStreet>
            <BillToCity>San Diego</BillToCity>
            <BillToCountry>USA</BillToCountry>
            <BillToStateOrProvince>CA</BillToStateOrProvince>
            <BillToZipOrPostalCode>92121</BillToZipOrPostalCode>
            <SupplierTaxID>7894328742</SupplierTaxID>
            <TaxDetails>
                <TaxDetail>
                    <TaxType>SGST</TaxType>
                    <TaxAmount>21</TaxAmount>
                    <TaxRate></TaxRate>
                </TaxDetail>
                <TaxDetail>
                    <TaxType>IGST</TaxType>
                    <TaxAmount></TaxAmount>
                    <TaxRate>23</TaxRate>
                </TaxDetail>
            </TaxDetails>
            <InvoiceLines>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-008</ExternalInvoiceNumber>
                    <LineDescription>Apple macbook 15 Pro</LineDescription>
                    <PurchaseOrderLine>#ABC00048896981</PurchaseOrderLine>
                    <POLineDescription>NowX Laptop</POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>10.00</LineUnitPrice>
                    <Subtotal>-200.00</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00005</CostCenter>
                    <GLAccount>100001</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <TaxDetails>
                        <TaxDetail>
                            <TaxType>SGST</TaxType>
                            <TaxAmount>12</TaxAmount>
                            <TaxRate></TaxRate>
                        </TaxDetail>
                    </TaxDetails>
                </InvoiceLine>
            </InvoiceLines>
        </Invoice>
        <Invoice>
            <InvoiceType>credit_memo</InvoiceType>
            <SupplierInvoiceNumber>no taxes</SupplierInvoiceNumber>
            <ExternalInvoiceNumber>EXT-INV-#009</ExternalInvoiceNumber>
            <Supplier>3245545</Supplier>
            <OriginalInvoice>Both taxes</OriginalInvoice>
            <PurchaseOrder></PurchaseOrder>
            <BusinessOwner>Paula Smith</BusinessOwner>
            <DateFormat></DateFormat>
            <InvoiceDate>2024-06-03</InvoiceDate>
            <PaymentTerms>Net 60</PaymentTerms>
            <LegalEntity>US</LegalEntity>
            <Subtotal>100.00</Subtotal>
            <ShippingAmount>10.00</ShippingAmount>
            <OtherCharges>10</OtherCharges>
            <Discounts>10</Discounts>
            <AmountInvoiced>130.00</AmountInvoiced>
            <Currency>USD</Currency>
            <InvoiceLineCount>1</InvoiceLineCount>
            <ShipToCity>Los Angeles</ShipToCity>
            <ShipToCountry>USA</ShipToCountry>
            <ShipToStateOrProvince>CA</ShipToStateOrProvince>
            <ShipToStreet>456 Oak Ave</ShipToStreet>
            <ShipToZipOrPostalCode>90001</ShipToZipOrPostalCode>
            <ShipFromCity>Addison</ShipFromCity>
            <ShipFromCountry>USA</ShipFromCountry>
            <ShipFromStateOrProvince>TX</ShipFromStateOrProvince>
            <ShipFromStreet>15725 Dallas P</ShipFromStreet>
            <ShipFromZipOrPostalCode>55555</ShipFromZipOrPostalCode>
            <RemitAddress>47 W 11th St</RemitAddress>
            <RemitToCity>New York</RemitToCity>
            <RemitToCountry>USA</RemitToCountry>
            <RemitToStateOrProvince>NY</RemitToStateOrProvince>
            <RemitToZipOrPostalCode>99999</RemitToZipOrPostalCode>
            <BillToStreet>4810 Eastgate Mall</BillToStreet>
            <BillToCity>San Diego</BillToCity>
            <BillToCountry>USA</BillToCountry>
            <BillToStateOrProvince>CA</BillToStateOrProvince>
            <BillToZipOrPostalCode>92121</BillToZipOrPostalCode>
            <SupplierTaxID>7894328742</SupplierTaxID>
            <InvoiceLines>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-008</ExternalInvoiceNumber>
                    <LineDescription>Apple macbook 15 Pro</LineDescription>
                    <PurchaseOrderLine>#ABC00048896981</PurchaseOrderLine>
                    <POLineDescription>NowX Laptop</POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>10.00-</LineUnitPrice>
                    <Subtotal>100.00</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00005</CostCenter>
                    <GLAccount>141200</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                </InvoiceLine>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-008</ExternalInvoiceNumber>
                    <LineDescription>Apple macbook 15 Pro</LineDescription>
                    <PurchaseOrderLine>#ABC00048896981</PurchaseOrderLine>
                    <POLineDescription>NowX Laptop</POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>10.00</LineUnitPrice>
                    <Subtotal>100.00</Subtotal>
                    <LineAmountInvoiced>100</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00001</CostCenter>
                    <GLAccount>100002</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                </InvoiceLine>
            </InvoiceLines>
        </Invoice>
        <Invoice>
            <InvoiceType></InvoiceType>
            <SupplierInvoiceNumber>LineLevelTaxes</SupplierInvoiceNumber>
            <ExternalInvoiceNumber>EXT-INV-#0010</ExternalInvoiceNumber>
            <Supplier>3245545</Supplier>
            <PurchaseOrder></PurchaseOrder>
            <BusinessOwner>Paula Smith</BusinessOwner>
            <DateFormat>MMM DD, YYYY</DateFormat>
            <InvoiceDate>Aug 3, 2024</InvoiceDate>
            <PaymentTerms>Net 60</PaymentTerms>
            <LegalEntity>US</LegalEntity>
            <Subtotal>100</Subtotal>
            <ShippingAmount>10</ShippingAmount>
            <OtherCharges>10</OtherCharges>
            <Discounts>10</Discounts>
            <AmountInvoiced>10</AmountInvoiced>
            <Currency>USD</Currency>
            <InvoiceLineCount>1</InvoiceLineCount>
            <ShipToCity>Los Angeles</ShipToCity>
            <ShipToCountry>USA</ShipToCountry>
            <ShipToStateOrProvince>CA</ShipToStateOrProvince>
            <ShipToStreet>456 Oak Ave</ShipToStreet>
            <ShipToZipOrPostalCode>90001</ShipToZipOrPostalCode>
            <ShipFromCity>Addison</ShipFromCity>
            <ShipFromCountry>USA</ShipFromCountry>
            <ShipFromStateOrProvince>TX</ShipFromStateOrProvince>
            <ShipFromStreet>15725 Dallas P</ShipFromStreet>
            <ShipFromZipOrPostalCode>55555</ShipFromZipOrPostalCode>
            <RemitAddress>47 W 11th St</RemitAddress>
            <RemitToCity>New York</RemitToCity>
            <RemitToCountry>USA</RemitToCountry>
            <RemitToStateOrProvince>NY</RemitToStateOrProvince>
            <RemitToZipOrPostalCode>99999</RemitToZipOrPostalCode>
            <BillToStreet>4810 Eastgate Mall</BillToStreet>
            <BillToCity>San Diego</BillToCity>
            <BillToCountry>USA</BillToCountry>
            <BillToStateOrProvince>CA</BillToStateOrProvince>
            <BillToZipOrPostalCode>92121$%ad</BillToZipOrPostalCode>
            <SupplierTaxID>7894328742</SupplierTaxID>
            <InvoiceLines>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-008</ExternalInvoiceNumber>
                    <LineDescription>Apple macbook 15 Pro</LineDescription>
                    <PurchaseOrderLine></PurchaseOrderLine>
                    <POLineDescription>NowX Laptop</POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>20</LineUnitPrice>
                    <Subtotal>-200¥</Subtotal>
                    <LineAmountInvoiced>200$</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00005</CostCenter>
                    <GLAccount>141300</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001ACD@</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <TaxDetails>
                        <TaxDetail>
                            <TaxType>SGST</TaxType>
                            <TaxAmount>12</TaxAmount>
                            <TaxRate></TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>CGST</TaxType>
                            <TaxAmount></TaxAmount>
                            <TaxRate>15</TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>Withholding tax</TaxType>
                            <TaxAmount>13</TaxAmount>
                            <TaxRate>13</TaxRate>
                        </TaxDetail>
                    </TaxDetails>
                </InvoiceLine>
            </InvoiceLines>
        </Invoice>
        <Invoice>
            <InvoiceType></InvoiceType>
            <SupplierInvoiceNumber>LineLevelTaxes</SupplierInvoiceNumber>
            <ExternalInvoiceNumber>EXT-INV-#0010</ExternalInvoiceNumber>
            <Supplier>3245545</Supplier>
            <PurchaseOrder></PurchaseOrder>
            <BusinessOwner>Paula Smith</BusinessOwner>
            <DateFormat>MMMM DD, YYYY</DateFormat>
            <InvoiceDate>september 1st, 2024</InvoiceDate>
            <PaymentTerms>Net 60</PaymentTerms>
            <LegalEntity>US</LegalEntity>
            <Subtotal>100</Subtotal>
            <ShippingAmount>10</ShippingAmount>
            <OtherCharges>10</OtherCharges>
            <Discounts>10</Discounts>
            <AmountInvoiced>10</AmountInvoiced>
            <Currency>USD</Currency>
            <InvoiceLineCount>1</InvoiceLineCount>
            <ShipToCity>Los Angeles</ShipToCity>
            <ShipToCountry>USA</ShipToCountry>
            <ShipToStateOrProvince>CA</ShipToStateOrProvince>
            <ShipToStreet>456 Oak Ave</ShipToStreet>
            <ShipToZipOrPostalCode>90001</ShipToZipOrPostalCode>
            <ShipFromCity>Addison</ShipFromCity>
            <ShipFromCountry>USA</ShipFromCountry>
            <ShipFromStateOrProvince>TX</ShipFromStateOrProvince>
            <ShipFromStreet>15725 Dallas P</ShipFromStreet>
            <ShipFromZipOrPostalCode>55555</ShipFromZipOrPostalCode>
            <RemitAddress>47 W 11th St</RemitAddress>
            <RemitToCity>New York</RemitToCity>
            <RemitToCountry>USA</RemitToCountry>
            <RemitToStateOrProvince>NY</RemitToStateOrProvince>
            <RemitToZipOrPostalCode>99999</RemitToZipOrPostalCode>
            <BillToStreet>4810 Eastgate Mall</BillToStreet>
            <BillToCity>San Diego</BillToCity>
            <BillToCountry>USA</BillToCountry>
            <BillToStateOrProvince>CA</BillToStateOrProvince>
            <BillToZipOrPostalCode>92121$%ad</BillToZipOrPostalCode>
            <SupplierTaxID>7894328742</SupplierTaxID>
            <InvoiceLines>
                <InvoiceLine>
                    <ExternalInvoiceNumber>EXT-INV-008</ExternalInvoiceNumber>
                    <LineDescription>Apple macbook 15 Pro</LineDescription>
                    <PurchaseOrderLine></PurchaseOrderLine>
                    <POLineDescription>NowX Laptop</POLineDescription>
                    <LineQuantity>10</LineQuantity>
                    <LineUnitPrice>20</LineUnitPrice>
                    <Subtotal>-200¥</Subtotal>
                    <LineAmountInvoiced>200$</LineAmountInvoiced>
                    <Currency>USD</Currency>
                    <CostCenter>ACN00005</CostCenter>
                    <GLAccount>141300</GLAccount>
                    <TaxCode>A0 Sales Tax</TaxCode>
                    <ShipToCity>New York</ShipToCity>
                    <ShipToCountry>USA</ShipToCountry>
                    <ShipToStateOrProvince>New York</ShipToStateOrProvince>
                    <ShipToStreet>PA112</ShipToStreet>
                    <ShipToZipOrPostalCode>1001ACD@</ShipToZipOrPostalCode>
                    <SupplierPartNumber>SPN1211</SupplierPartNumber>
                    <UOM>Individual Unit</UOM>
                    <TaxDetails>
                        <TaxDetail>
                            <TaxType>SGST</TaxType>
                            <TaxAmount>12</TaxAmount>
                            <TaxRate></TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>CGST</TaxType>
                            <TaxAmount></TaxAmount>
                            <TaxRate>15</TaxRate>
                        </TaxDetail>
                        <TaxDetail>
                            <TaxType>Withholding tax</TaxType>
                            <TaxAmount>13</TaxAmount>
                            <TaxRate>13</TaxRate>
                        </TaxDetail>
                    </TaxDetails>
                </InvoiceLine>
            </InvoiceLines>
        </Invoice>
        <TargetERP>ERP1</TargetERP>
    </Invoices>'

次の結果は、要求が成功し、請求書データが処理されていることを示しています。要求のステータスは、請求書統合ログ \[sn_spend_intg_invoice_integration_log\] テーブルで確認できます。\[バッチ ID\] 列にリストされているバッチ ID を使用して請求書を検索します。

    {
        "batchId": "APIINV1736249646168148",
        "status": "Success",
        "message": "Your request has been successfully received and is being processed."
    }


