Skip to content

Order Element Blows Up #106

@MavenLance

Description

@MavenLance

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions