Why am I getting this errorMessage. What exactly am i missing
Message has failed validation: cvc-complex-type.2.4.b: The content of element 'ns2:OctV2V2Request' is not complete. One of '{senderDateOfBirth, cardAcceptor, retrievalReferenceNumber, accountType, senderCountryCode, senderAddress, senderCity, senderStateCode, senderPostalCode, senderFirstName, senderMiddleInitial, senderLastName, recipientState, recipientFirstName, recipientMiddleInitial, recipientLastName, recipientCardExpiryDate, transactionFeeAmt, surcharge, merchantCategoryCode, transactionIdentifier, sourceOfFundsCode, feeProgramIndicator, magneticStripeData, pointOfServiceData, pointOfServiceCapability, pinData, integratedCircuitCardData, chipConditionCode, secondaryId, merchantPseudoAbaNumber, merchantVerificationValue, sharingGroupCode, optionalResponseParameters, settlementServiceIndicator}' is expected.
I am trying to call the https://sandbox.api.visa.com/visadirect/mvisa/v1/merchantpushpayments. My body looks thus:
{ "acquirerCountryCode" : "356", "acquiringBin" : "408972", "amount" : 1, "businessApplicationId" : "MP", "localTransactionDateTime" : "2017-05-11T08:46:22", "purchaseIdentifier" : { "referenceNumber" : "Garri", "type" : "0" }, "recipientName" : "Jasper", "recipientPrimaryAccountNumber" : "4123640062698797", "senderAccountNumber" : "4027290077881587", "senderName" : "Jasper", "senderReference" : "1232132BankID", "systemsTraceAuditNumber" : "1231", "transactionCurrencyCode" : "INR" }
Solved! Go to Solution
Hey there,
You are getting invalid payload due to mising mandatory fields.
API Explorer has the valid Payload - update and let us know:
Thanks,
Ricardo
Thanks!...i was missing the acceptor parameters.
Another problem tho, i am getting ....API Validation Error: 3001. Mandatory field 'RetrievalReferenceNumber' is missing or has invalid content.
See my request body, i have passed the retrievalReferenceNumber as 171417193810 this matches the format (numeric string, length 12). What is wrong at this point?
RequestBody: {
"acquirerCountryCode" : "566",
"acquiringBin" : "408972",
"amount" : 1,
"businessApplicationId" : "MP",
"cardAcceptor" : {
"idCode" : "IND",
"name" : "CA-IDCode-77765",
"address" : {
"city" : "NGN",
"country" : "KOLKATA"
}
},
"feeProgramIndicator" : "123",
"localTransactionDateTime" : "2017-05-19T15:40:52",
"purchaseIdentifier" : {
"referenceNumber" : "Garri",
"type" : "0"
},
"recipientName" : "Jasper",
"recipientPrimaryAccountNumber" : "4123640062698797",
"retrievalReferenceNumber" : "171417193810",
"secondaryId" : "G001",
"senderAccountNumber" : "4027290077881587",
"senderName" : "Jasper",
"senderReference" : "1232132BankID",
"systemsTraceAuditNumber" : "1231",
"transactionCurrencyCode" : "NGN",
"transactionIdentifier" : "1231"
}