Import Purchase Order Responses to Amazon Vendor Central (Legacy)
Warning
A newer Amazon Vendor Central (Legacy) connector is now available within Zynk. We recommend using the new connector when building any new integrations with Amazon Vendor Central (Legacy).
This task will convert an input XML file containing purchase order response messages (ORDRSP) to EDIFACT D96A format, and import them to Amazon Vendor Central (Legacy).
Settings
Connection
Required
The Amazon Vendor Central (Legacy) Connection to use. See the Amazon Vendor Central (Legacy) Connection article if you require more information on how to create/manage connections.
Test Mode
Required
Set to true to save the generated EDI files to the workflow's data directory instead of import them to the SFTP. This can be useful for testing purposes, as it allows you to take a look at the converted EDI file.
Fail File
Required
The XML file to output any purchase order responses which failed to import to Amazon. The data is stored in the same format as the input file.
Input File
Required
The XML file containing the purchase order responses to import to Amazon. See below for an example.
Success File
Required
The XML file to output purchase order responses which successfully to import to Amazon. The data is stored in the same format as the input file.
Zynk Settings
Examples
A sample input file is shown below. Refer to the documentation provided by Amazon for an explanation of the segment and element tags. Note that in the XML, the segment tags are prefixed with S_
, segment groups are prefixed with G_
, composite element tags are prefixed with C_
and value element tags are prefixed with D_
.
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfInterchange>
<INTERCHANGE xmlns="www.edifabric.com/edifact">
<S_UNB>
<C_S001>
<D_0001_1>UNOA</D_0001_1>
<D_0002_2>2</D_0002_2>
</C_S001>
<C_S002>
<D_0004_1>0123456789012</D_0004_1>
<D_0007_2>14</D_0007_2>
</C_S002>
<C_S003>
<D_0010_1>5450534000000</D_0010_1>
<D_0007_2>14</D_0007_2>
</C_S003>
<C_S004>
<D_0017_1>150128</D_0017_1>
<D_0019_2>1104</D_0019_2>
</C_S004>
<D_0020_5>OR150128110457</D_0020_5>
<D_0032_10>EANCOM</D_0032_10>
</S_UNB>
<GROUPS>
<GROUP>
<MESSAGES>
<MESSAGE>
<Item>
<M_ORDRSP>
<S_UNH>
<D_0062_1>1</D_0062_1>
<C_S009>
<D_0065_1>ORDRSP</D_0065_1>
<D_0052_2>D</D_0052_2>
<D_0054_3>96A</D_0054_3>
<D_0051_4>UN</D_0051_4>
<D_0057_5>EAN005</D_0057_5>
</C_S009>
</S_UNH>
<S_BGM>
<C_C002>
<D_1001_1>231</D_1001_1>
</C_C002>
<D_1004_2>T0000001</D_1004_2>
<D_1225_3>29</D_1225_3>
</S_BGM>
<S_DTM>
<C_C507>
<D_2005_1>137</D_2005_1>
<D_2380_2>20150128</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507>
</S_DTM>
<G_RFF>
<S_RFF>
<C_C506>
<D_1153_1>ON</D_1153_1>
<D_1154_2>T0000001</D_1154_2>
</C_C506>
</S_RFF>
</G_RFF>
<G_NAD>
<S_NAD>
<D_3035_1>SU</D_3035_1>
<C_C082>
<D_3039_1>0123456789012</D_3039_1>
<D_3055_3>9</D_3055_3>
</C_C082>
</S_NAD>
</G_NAD>
<G_NAD>
<S_NAD>
<D_3035_1>DP</D_3035_1>
<C_C082>
<D_3039_1>5450534000116</D_3039_1>
<D_3055_3>9</D_3055_3>
</C_C082>
<D_3207_9>GB</D_3207_9>
</S_NAD>
</G_NAD>
<G_CUX>
<S_CUX>
<C_C504>
<D_6347_1>2</D_6347_1>
<D_6345_2>GBP</D_6345_2>
<D_6343_3>9</D_6343_3>
</C_C504>
</S_CUX>
</G_CUX>
<G_LIN>
<S_LIN>
<D_1082_1>1</D_1082_1>
<D_1229_2>5</D_1229_2>
</S_LIN>
<S_PIA>
<D_4347_1>5</D_4347_1>
<C_C212_2>
<D_7140_1>101-021</D_7140_1>
<D_7143_2>SA</D_7143_2>
</C_C212_2>
</S_PIA>
<S_QTY_3>
<C_C186_3>
<D_6063_1>12</D_6063_1>
<D_6060_2>3</D_6060_2>
</C_C186_3>
</S_QTY_3>
<S_DTM_13>
<C_C507_13>
<D_2005_1>11</D_2005_1>
<D_2380_2>20150130</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507_13>
</S_DTM_13>
<G_PRI>
<S_PRI>
<C_C509>
<D_5125_1>AAA</D_5125_1>
<D_5118_2>7</D_5118_2>
<D_5375_3>CT</D_5375_3>
<D_5387_4>NTP</D_5387_4>
</C_C509>
</S_PRI>
</G_PRI>
<G_PRI>
<S_PRI>
<C_C509>
<D_5125_1>AAE</D_5125_1>
<D_5118_2>8.4</D_5118_2>
<D_5375_3>CT</D_5375_3>
<D_5387_4>RTP</D_5387_4>
</C_C509>
</S_PRI>
</G_PRI>
<G_TAX_3>
<S_TAX_3>
<D_5283_1>7</D_5283_1>
<C_C241_3>
<D_5153_1>VAT</D_5153_1>
</C_C241_3>
<C_C243_3>
<D_5278_4>20</D_5278_4>
</C_C243_3>
</S_TAX_3>
</G_TAX_3>
</G_LIN>
<G_LIN>
<S_LIN>
<D_1082_1>2</D_1082_1>
<D_1229_2>5</D_1229_2>
</S_LIN>
<S_PIA>
<D_4347_1>5</D_4347_1>
<C_C212_2>
<D_7140_1>030-5442R</D_7140_1>
<D_7143_2>SA</D_7143_2>
</C_C212_2>
</S_PIA>
<S_QTY_3>
<C_C186_3>
<D_6063_1>12</D_6063_1>
<D_6060_2>3</D_6060_2>
</C_C186_3>
</S_QTY_3>
<S_DTM_13>
<C_C507_13>
<D_2005_1>11</D_2005_1>
<D_2380_2>20150130</D_2380_2>
<D_2379_3>102</D_2379_3>
</C_C507_13>
</S_DTM_13>
<G_PRI>
<S_PRI>
<C_C509>
<D_5125_1>AAA</D_5125_1>
<D_5118_2>10</D_5118_2>
<D_5375_3>CT</D_5375_3>
<D_5387_4>NTP</D_5387_4>
</C_C509>
</S_PRI>
</G_PRI>
<G_PRI>
<S_PRI>
<C_C509>
<D_5125_1>AAE</D_5125_1>
<D_5118_2>12</D_5118_2>
<D_5375_3>CT</D_5375_3>
<D_5387_4>RTP</D_5387_4>
</C_C509>
</S_PRI>
</G_PRI>
<G_TAX_3>
<S_TAX_3>
<D_5283_1>7</D_5283_1>
<C_C241_3>
<D_5153_1>VAT</D_5153_1>
</C_C241_3>
<C_C243_3>
<D_5278_4>20</D_5278_4>
</C_C243_3>
</S_TAX_3>
</G_TAX_3>
</G_LIN>
<G_LIN>
<S_LIN>
<D_1082_1>3</D_1082_1>
<D_1229_2>3</D_1229_2>
</S_LIN>
<S_PIA>
<D_4347_1>5</D_4347_1>
<C_C212_2>
<D_7140_1>INVALID-SKU</D_7140_1>
<D_7143_2>SA</D_7143_2>
</C_C212_2>
</S_PIA>
<S_QTY_3>
<C_C186_3>
<D_6063_1>182</D_6063_1>
<D_6060_2>3</D_6060_2>
</C_C186_3>
</S_QTY_3>
</G_LIN>
<G_LIN>
<S_LIN>
<D_1082_1>4</D_1082_1>
<D_1229_2>3</D_1229_2>
</S_LIN>
<S_PIA>
<D_4347_1>5</D_4347_1>
<C_C212_2>
<D_7140_1>INVALID-SKU-2</D_7140_1>
<D_7143_2>SA</D_7143_2>
</C_C212_2>
</S_PIA>
<S_QTY_3>
<C_C186_3>
<D_6063_1>182</D_6063_1>
<D_6060_2>3</D_6060_2>
</C_C186_3>
</S_QTY_3>
</G_LIN>
<G_LIN>
<S_LIN>
<D_1082_1>5</D_1082_1>
<D_1229_2>3</D_1229_2>
</S_LIN>
<S_PIA>
<D_4347_1>5</D_4347_1>
<C_C212_2>
<D_7140_1>12006</D_7140_1>
<D_7143_2>SA</D_7143_2>
</C_C212_2>
</S_PIA>
<S_QTY_3>
<C_C186_3>
<D_6063_1>182</D_6063_1>
<D_6060_2>3</D_6060_2>
</C_C186_3>
</S_QTY_3>
</G_LIN>
<S_UNS>
<D_0081_1>S</D_0081_1>
</S_UNS>
<S_CNT>
<C_C270>
<D_6069_1>2</D_6069_1>
<D_6066_2>5</D_6066_2>
</C_C270>
</S_CNT>
<S_UNT>
<D_0074_1>9</D_0074_1>
<D_0062_2>1</D_0062_2>
</S_UNT>
</M_ORDRSP>
</Item>
</MESSAGE>
</MESSAGES>
</GROUP>
</GROUPS>
<S_UNZ>
<D_0036_1>1</D_0036_1>
<D_0020_2>OR150128110457</D_0020_2>
</S_UNZ>
</INTERCHANGE>
</ArrayOfInterchange>