<?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 Re: E00003:The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:id' element is invalid - .NET SDK in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55337#M30249</link>
    <description>&lt;P&gt;I have been reading through all of the stuff on GitHub, I guess I should be looking through that sub as well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the heads up!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 13:27:34 GMT</pubDate>
    <dc:creator>joe_coolish</dc:creator>
    <dc:date>2016-08-03T13:27:34Z</dc:date>
    <item>
      <title>E00003:The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:id' element is invalid - .NET SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55334#M30246</link>
      <description>&lt;P&gt;I'm trying to create a subscription, but my Customer ID is apparently too long.&amp;nbsp; I'm using a Base64 encoded string of the user's account&amp;nbsp;GUID, which is 24 chars long.&amp;nbsp; I've read that the max length is 50, so IDK why I would be getting this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;E00003:The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:id' element is invalid - The value 'XkqdN7wJ5kyo7nq/ygDQ7A==' is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I'm using is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var bytes = Guid.Parse(user.Id).ToByteArray();
var encoded = Convert.ToBase64String(bytes);

_customer = new customerType()
{
    type = customerTypeEnum.individual,
    id = encoded,
    email = user.Email
};

...

ARBSubscriptionType subscriptionType = new ARBSubscriptionType()
{
    name = "Test Base",
    amount = amount,
    trialAmount = 0.00m,
    paymentSchedule = schedule,
    billTo = _addressInfo,
    customer = _customer,
    payment = cc
};

var request = new ARBCreateSubscriptionRequest { subscription = subscriptionType };

var controller = new ARBCreateSubscriptionController(request);
controller.Execute(); // This has the error&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the max length for an ID, and is there any way to stuff a GUID in there?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 03:19:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55334#M30246</guid>
      <dc:creator>joe_coolish</dc:creator>
      <dc:date>2016-08-03T03:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: E00003:The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:id' element is invalid - .NET SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55335#M30247</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20404"&gt;@joe_coolish﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checkin the &lt;A href="https://developer.authorize.net/api/reference/#customer-profiles-create-customer-profile" target="_self"&gt;API Reference&lt;/A&gt;, the maximum length for merchantCustomerId is 20 characters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table table-condensed"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="oneBullet"&gt;merchantCustomerId&lt;/TD&gt;
&lt;TD&gt;Merchant assigned ID for the customer. &lt;BR /&gt;Required only when no values for description and email are submitted.&lt;/TD&gt;
&lt;TD&gt;
&lt;DIV&gt;Up to 20 characters.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 04:28:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55335#M30247</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-08-03T04:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: E00003:The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:id' element is invalid - .NET SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55337#M30249</link>
      <description>&lt;P&gt;I have been reading through all of the stuff on GitHub, I guess I should be looking through that sub as well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the heads up!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:27:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-id-element-is/m-p/55337#M30249</guid>
      <dc:creator>joe_coolish</dc:creator>
      <dc:date>2016-08-03T13:27:34Z</dc:date>
    </item>
  </channel>
</rss>

