Push Payment to Merchant Error

SOLVED
Highlighted
Regular Visitor

Push Payment to Merchant Error

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"
}
4 REPLIES 4
Highlighted
Community Manager

Re: Push Payment to Merchant Error

Looking into this.

Thanks,
Ricardo



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Highlighted
Community Manager

Re: Push Payment to Merchant Error

Hey there, 

 

You are getting invalid payload due to mising mandatory fields.

 

API Explorer has the valid Payload  - update and let us know:

 

https://developer.visa.com/products/visa_direct/reference#visa_direct__mvisa__v1__merchant_push_paym...

 

Thanks,

Ricardo 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Highlighted
Regular Visitor

Re: Push Payment to Merchant Error

Thanks!...i was missing the acceptor parameters.

Highlighted
Regular Visitor

Re: Push Payment to Merchant Error

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"
}