-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transactionRequest errors on array of lineItems #332
Comments
I was hopeful, but I'm still having issues. This is a valid request according to the docs. I've run this with my data, and it's created a 2-lined order
The problem is, is that it's not valid JSON, if you try to validate it you get a validated JSON would have the lineitems like this:
|
I agree that this is not valid JSON, depending on the validator you used. We have taken certain liberties with the JSON validation to ensure that this works in our context. |
Something should reflect this somewhere, though, no? Or at least the JSON example should show more than 1 lineitem since it doesn't match with the schema. |
Thank you for the suggestion. I'll relay that information to the relevant team to have it documented in some way so that developers are not inconvenienced. |
I didn't know where else to ask this.
The schema says that
transactionRequestType
takes<xs:element name="lineItems" type="anet:ArrayOfLineItem" minOccurs="0"/>
an array of lineItem.
The example on the documention site only shows 1 item being passed in.
Wouldn't an array of lineitems be like this:
This throws back an error saying that
lineItems
is an invalid element.I'm creating my lineItems like this:
and using them in my request like this:
The text was updated successfully, but these errors were encountered: