<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error specifying line items in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-specifying-line-items/m-p/68577#M41755</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm trying to specify lineItems in a call to getHostedPaymentPageRequest but get an error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Access Denied&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You don't have permission to access "&lt;A href="http://apitest.authorize.net/xml/v1/request.api" target="_blank" rel="noopener"&gt;http://apitest.authorize.net/xml/v1/request.api" on this server.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Reference #18.adc33d17.1564389835.49128e40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...for everything I've tried. But if I try the same JSON in a test here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...it works and I do get a token returned. If I take the lineItems element out then the test works on both the auth.net test page and on my test site. Has anybody got an idea what the probelm might be? I'll post the test JSON below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beans&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ "getHostedPaymentPageRequest": { "merchantAuthentication": { "name": "xxxxxxxx", "transactionKey": "xxxxxxxx" }, "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "20.00", "profile": { "customerProfileId": "123456789" }, "lineItems":[{"lineItem":{"itemId":"test1","name":"Test Product","quantity":"1","unitPrice":"2"}}], "customer": { "email": "ellen@mail.com" }, "billTo": { "firstName": "Ellen", "lastName": "Johnson", "company": "Souveniropolis", "address": "14 Main Street", "city": "Pecan Springs", "state": "TX", "zip": "44628", "country": "USA" } }, "hostedPaymentSettings": { "setting": [{ "settingName": "hostedPaymentOrderOptions", "settingValue": "{\"show\": true, \"merchantName\": \"G and S Questions Inc.\"}" }] } } }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 08:56:34 GMT</pubDate>
    <dc:creator>ectdeveloper</dc:creator>
    <dc:date>2019-07-29T08:56:34Z</dc:date>
    <item>
      <title>Error specifying line items</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-specifying-line-items/m-p/68577#M41755</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm trying to specify lineItems in a call to getHostedPaymentPageRequest but get an error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Access Denied&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You don't have permission to access "&lt;A href="http://apitest.authorize.net/xml/v1/request.api" target="_blank" rel="noopener"&gt;http://apitest.authorize.net/xml/v1/request.api" on this server.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Reference #18.adc33d17.1564389835.49128e40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...for everything I've tried. But if I try the same JSON in a test here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...it works and I do get a token returned. If I take the lineItems element out then the test works on both the auth.net test page and on my test site. Has anybody got an idea what the probelm might be? I'll post the test JSON below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beans&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ "getHostedPaymentPageRequest": { "merchantAuthentication": { "name": "xxxxxxxx", "transactionKey": "xxxxxxxx" }, "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "20.00", "profile": { "customerProfileId": "123456789" }, "lineItems":[{"lineItem":{"itemId":"test1","name":"Test Product","quantity":"1","unitPrice":"2"}}], "customer": { "email": "ellen@mail.com" }, "billTo": { "firstName": "Ellen", "lastName": "Johnson", "company": "Souveniropolis", "address": "14 Main Street", "city": "Pecan Springs", "state": "TX", "zip": "44628", "country": "USA" } }, "hostedPaymentSettings": { "setting": [{ "settingName": "hostedPaymentOrderOptions", "settingValue": "{\"show\": true, \"merchantName\": \"G and S Questions Inc.\"}" }] } } }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 08:56:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-specifying-line-items/m-p/68577#M41755</guid>
      <dc:creator>ectdeveloper</dc:creator>
      <dc:date>2019-07-29T08:56:34Z</dc:date>
    </item>
  </channel>
</rss>

