---
schema_version: "1"
id: 216904579a3645d74c5c4e81948509b8ac5246423e078124c2b04ddb21000844
title: Zuora Connector 6.0 の例
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/zuora-connector/latest/zuora-connector-examples.md
canonical_url: https://docs.mulesoft.com/jp/zuora-connector/latest/zuora-connector-examples
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1b8491b28949376b579443d76f679c37d66bb78c3e1e397f6d122e58d7d77b56
description: MuleSoft Documentation Site
release: "6.0"
latest: true
---
# Zuora Connector 6.0 の例

## [](#例-アカウントの詳細の取得)例: アカウントの詳細の取得

この例では、指定されたアカウント ID のアカウント詳細を取得して JSON 形式で返します。

## [](#studio-のフロー)Studio のフロー

- Listener (HTTP) (リスナー (HTTP)) - HTTP 要求のデータを受け入れる。
- Zuora API コネクタ - Zuora と接続し、クエリを実行して指定されたアカウント ID のアカウント詳細を取得します。
- 変換メッセージ - ​`Get account`​ 操作の結果を JSON 形式で出力します。
    
    ![Listener、Get account、Transform Message を含む Studio フロー](/mulesoft/current/ja-jp/zuora-connector/latest/_images/zuora-5-studio-use-case.png)

## [](#xml-フロー)XML フロー

次の XML コードを Anypoint Studio に貼り付けて、前のセクションで説明したフローを試してください。

```xml
<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:mule-zuora-connector="http://www.mulesoft.org/schema/mule/mule-zuora-connector"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/mule-zuora-connector http://www.mulesoft.org/schema/mule/mule-zuora-connector/current/mule-mule-zuora-connector.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">
<mule-zuora-connector:config name="Zuora_Connector___Mule_4_Config" doc:name="Zuora Connector - Mule 4 Config" doc:id="ab77ca79-6f70-4c6f-98f6-be22cfc8eecc" >
<mule-zuora-connector:basic-auth-connection
        username="${zuora.username}"
        password="${zuora.password}"
        baseUri="${zuora.baseUri}" />
</mule-zuora-connector:config>
<http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="dc0c431a-8608-446d-9a43-cb8515a36a90" >
<http:listener-connection host="localhost" port="8081" />
</http:listener-config>
<flow name="zuora-demo-testFlow" doc:id="83fb740f-9c7b-4c98-8b32-ae8c84c3c1e4" >
<http:listener doc:name="Listener" doc:id="e623ac5d-cab7-4bf2-a6e0-27a78462ab1a" config-ref="HTTP_Listener_config" path="/getAccount"/>
<mule-zuora-connector:get-v1-accounts-by-account-key doc:name="Get account" doc:id="eedfd82c-b8d3-4b83-88b3-50e284aa217b" config-ref="Zuora_Connector___Mule_4_Config" accountKey="#[payload]"/>
<ee:transform doc:name="Transform Message" doc:id="d4607f1d-7d2e-4d84-a079-c436050767f0" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
payload
]]></ee:set-payload>
</ee:message>
</ee:transform>
</flow>
</mule>
```

## [](#関連情報)関連情報

[MuleSoft ヘルプセンター](https://help.mulesoft.com)