cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Trying to create a CIM record with an auth and capture

Here is the JSON I post to try an auth and capture while creating a CIM record as well:

{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "MY_MERCHANT_NAME",
            "transactionKey": "MY_TRANSACTION_KEY"
        },
        "refId": "123456",
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": "5",
            "payment": {
                "creditCard": {
                    "cardNumber": "4111111111111111",
                    "expirationDate": "1220",
                    "cardCode": "999"
                }
            },
              "profile" : {
                "createProfile":"true"
              },
            "order": {
                "invoiceNumber" : "1010"
            },
            "billTo": {
                "firstName": "DJ_Praetzel",
                "lastName": "Johnson",
                "company": "Souveniropolis",
                "address": "14 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            }
        }
    }
}

But I get the response:

{
    "transactionResponse": {
        "responseCode": "1",
        "authCode": "A6NJYQ",
        "avsResultCode": "Y",
        "cvvResultCode": "P",
        "cavvResultCode": "2",
        "transId": "2258470210",
        "refTransID": "",
        "transHash": "E3FF4745A64EDBA7424EAB360ED21F01",
        "testRequest": "0",
        "accountNumber": "XXXX1111",
        "entryMode": "Keyed",
        "accountType": "Visa",
        "messages": [
            {
                "code": "1",
                "description": "This transaction has been approved."
            }
        ]
    },
    "profileResponse": {
        "messages": {
            "resultCode": "Error",
            "message": [
                {
                    "code": "E00102",
                    "text": "Customer Info is missing."
                }
            ]
        }
    },
    "refId": "123456",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}

What customer info am I missing in the request to successfully create a profile?

8Ball
Contributor
3 REPLIES 3

Hello @8Ball

 

You'll also need to specify a merchantCustomerId created by your system.

 

http://developer.authorize.net/api/reference/#payment-transactions

 

 

Richard

 

 

RichardH
Administrator Administrator
Administrator

when I add that I get this response:

{
    "messages": {
        "resultCode": "Error",
        "message": [
            {
                "code": "E00003",
                "text": "The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'merchantCustomerId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'customerProfileId, paymentProfile, shippingProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."
            }
        ]
    }
}

not in the profile but in customer

also is just id

look at the ref

http://developer.authorize.net/api/reference/#payment-transactions