cancel
Showing results for 
Search instead for 
Did you mean: 

Authroizet.Net Create Customer Profile API

Hi 

I am using Authroize.Net as a Payment Gateway and integrating with ECommerce storefront (salesforce).

Issue: when I call Create Customer Profile API , with Validation Mode: = "liveMode", I get below response.
API Documentation does not describes what is missing. Whereas the same payload works with "testMode"

Error:

            {
                "code""E00027",
                "text""There is one or more missing or invalid required fields."
            }
 

Request Payload:

{
    "createCustomerProfileRequest": {
    "merchantAuthentication" : {
      "name" : "***",
      "transactionKey" : "****"
    },
    "refId" : "SIMON",
        "profile": {
            "merchantCustomerId""Test1234CustomerID",
            "description""Customer Profile description here",
            "email""customer@test.com",
            "paymentProfiles": {
                "customerType""individual",
                "payment": {
                    "creditCard": {
                        "cardNumber""4111111111111111",
                        "expirationDate""2029-12"
                    }
                }
            }
        },
        "validationMode""liveMode"
    }
}

 

Response Payload:

 

{
    "customerPaymentProfileIdList": [],
    "customerShippingAddressIdList": [],
    "validationDirectResponseList": [
        "3,1,290,There is one or more missing or invalid required fields.,,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,0.00,CC,auth_only,Test1234CustomerID,,,,,,,,,,,customer@test.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,,,,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,,"
    ],
    "refId""SIMON",
    "messages": {
        "resultCode""Error",
        "message": [
            {
                "code""E00027",
                "text""There is one or more missing or invalid required fields."
            }
        ]
    }
}
 

 

rajeshkanike
Member
1 REPLY 1

From your post I'm guessing that you already did this, but in case you did not, I recommend reading the entire documentation on the definition of both the Request and Response fields for the call you are making...

https://developer.authorize.net/api/reference/index.html#customer-profiles 

marine2026
Trusted Contributor