cancel
Showing results for 
Search instead for 
Did you mean: 

Accept Hosted Payment Page E00003 The element 'customer' has invalid child element 'id'

I am trying to send a JSON request to the test endpoint (https://apitest.authorize.net/xml/v1/request.api) for Accept Hosted Payment Page request.  I am getting an error:

 

{"code":"E00003","text":"The element 'customer' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'id' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'driversLicense, taxId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."}

 

Not only do the docs have this field, but also the Schema.XSD does too!  What is going on?  Here's my model:

 

{
    "getHostedPaymentPageRequest": {
        "merchantAuthentication": {
            "name": "XXXX",
            "transactionKey": "YYYY"
         },
        "transactionRequest": {
            "transactionType": "authOnlyTransaction",
            "amount": 48.00,
            "profile": {
                "customerProfileId": "ZZZZZZ"
            },
            "customer": {
                "email": "yourmom@yourmom.com",
                "id": "a4712a5e"
            },
            "billTo": {
                "firstName": "Your",
                "lastName": "Mom"
            },
            "order": {
                "invoiceNumber": "aninvoicenumber"
            }
        },
    [. . .]
}

 

Here's the XML spec that clearly has customer.id:

 

<xs:complexType name="customerDataType">
    <xs:sequence>
        <xs:element name="type" type="anet:customerTypeEnum" minOccurs="0"/>
        <xs:element name="id" minOccurs="0">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:maxLength value="20"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
        <xs:element name="email" minOccurs="0">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:maxLength value="255"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
        <xs:element name="driversLicense" type="anet:driversLicenseType" minOccurs="0"/>
        <xs:element name="taxId" minOccurs="0">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:minLength value="8"/>
                    <xs:maxLength value="9"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
    </xs:sequence>
</xs:complexType>
jwellstcc
Member
6 REPLIES 6

Figured it out . . . like the specs say, the order of the JSON properties matters :(  So id has to come before email . . .

jwellstcc
Member

I even didn't face this kind of issue yet. But I would like to educate myself with new updates. Don't hesitate to share more updates if possible. I'm a student and I need to prepare my research paper. Most of the time I remain busy so I need a second hand who can help me regularly. Even I am ready to buy a research paper from another source https://studyclerk.com/buying-research-paper If you have any suggestion please don't hesitate to share. Thank you so much!


@TomWinchester wrote:

I even didn't face this kind of issue yet. But I would like to educate myself with new updates. Don't hesitate to share more updates if possible. I'm a student and I need to prepare my research paper. Most of the time I remain busy so I need a second hand who can help me regularly. Even I am ready to buy a research paper from another source If you have any suggestion please don't hesitate to share. Thank you so much!


 

thanks for the awesome information.


@TomWinchester wrote:

I even didn't face this kind of issue yet. But I would like to educate myself with new updates. Don't hesitate to share more updates if possible. I'm a student and I need to prepare my research paper. Most of the time I remain busy so I need a second hand who can help me regularly. Even I am ready to buy a research paper from another source https://breakfasthoursofficial.com/whataburger-breakfast
https://breakfasthoursofficial.com/chick-fil-a-breakfast-hours
https://breakfasthoursofficial.com/panera-breakfast-hours If you have any suggestion please don't hesitate to share. Thank you so much!


thanks for the information.

It looks like a great thread with lots of information. Thank you so much!

Great thread so far. Keep continue the good work.