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>
07-14-2021 03:56 PM - edited 07-14-2021 04:09 PM
Figured it out . . . like the specs say, the order of the JSON properties matters :( So id has to come before email . . .
07-14-2021 04:17 PM
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!
07-16-2021 01:35 AM
@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.
07-17-2021 06:05 AM
@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.
08-08-2021 07:36 AM
It looks like a great thread with lots of information. Thank you so much!
08-22-2021 06:46 PM
Great thread so far. Keep continue the good work.
08-29-2021 06:40 PM