sample-code-csharp icon indicating copy to clipboard operation
sample-code-csharp copied to clipboard

Order Element Blows Up

Open MavenLance opened this issue 4 years ago • 1 comments

Request:

{
  "createTransactionRequest": {
    "merchantAuthentication": {
      "name": "NameNameName",
      "transactionKey": "KeyKeyKey"
    },
    "refId": "123",
    "transactionRequest": {
      "transactionType": "authCaptureTransaction",
      "amount": "7.77",
      "payment": {
        "creditCard": {
          "cardNumber": "4111111111111111",
          "expirationDate": "2022-03",
          "cardCode": "123"
        }
      },
      "billTo": {
        "zip": "85308"
      },
      "order": {
        "invoiceNumber": "1231",
        "description": "Some desc"
      }
    }
  }
}

Response

{
    "messages": {
        "resultCode": "Error",
        "message": [
            {
                "code": "E00003",
                "text": "The element 'transactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'order' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'shipTo, customerIP, cardholderAuthentication, retail, employeeId, transactionSettings, userFields, surcharge, merchantDescriptor, subMerchant, tip, processingOptions, subsequentAuthInformation, otherTax, shipFrom, authorizationIndicatorType' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."
            }
        ]
    }
}

image

MavenLance avatar Mar 03 '21 07:03 MavenLance

I can confirm this issue. I cannot get the sample code to work at all unless I eliminate the order element.

black-orchid avatar Sep 16 '24 13:09 black-orchid