Invalid request structure
If the request does not match the structure of a valid GraphQL request.scenarioWhen Ben was checking out at CoolTechGear.com, a missing closing brace in
the code caused an error.
Request with Syntax Error
Response: Invalid Request
Response Code: 400
Invalid mutation/query identifier
If the mutation/query identifier doesn’t exist.Scenario
When processing Ben’s payment at CoolTechGear.com, sending
authorizeAndCaptureCards instead of authorizeAndCaptureCard caused an error.Request with Syntax Error
Response: Invalid Request
Response Code: 400
Invalid mutation/query input field
If the mutation/query identifier is correct, but one of the input fields does not match the schemaScenarioWhen processing Ben’s keyboard purchase at CoolTechGear.com, sending
transactionCurrencys instead of transactionCurrency caused an error.Request Variables with Syntax Error
Response: Invalid Request
Response Code: 400
Incorrect mutation/query input field type
If an input variable field type is incorrectScenarioWhen charging Ben’s card for his $150.10 mechanical keyboard at CoolTechGear.com, sending
"150.10" instead of 150.10 for a DecimalAmount field caused an error.Request Variables with Syntax Error
Response: Invalid Request
Response Code: 400