status: 'BAD_REQUEST', code: 'NPPS012', message: 'Bad request'

kunalPrometteu
New Contributor

status: 'BAD_REQUEST', code: 'NPPS012', message: 'Bad request'

Getting this error for the https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pushfundstransactions API

Here are the details:
1. URL

2. headers

3 body (payload data, normal and encrypted attached both)

 

{
'x-client-transaction-id': '1612321873781263',
Accept: 'application/json',
'Content-Type': 'application/json',
payload: {
surcharge: '11.2',
senderAddress: '901 Metro Center Blvd',
pointOfServiceData: { panEntryMode: 90, posConditionCode: 0, motoECIIndicator: 1 },
recipientPrimaryAccountNumber: '4104920120500001',
colombiaNationalServiceData: {
addValueTaxReturn: 10,
taxAmountConsumption: 10,
nationalNetReimbursementFeeBaseAmount: 20,
addValueTaxAmount: 10,
nationalNetMiscAmount: 10,
countryCodeNationalService: 170,
nationalChargebackReason: 11,
emvTransactionIndicator: 1,
nationalNetMiscAmountType: 'A',
costTransactionIndicator: '0',
nationalReimbursementFee: 20
},
transactionIdentifier: 617020001849971,
serviceProcessingType: { requestType: '01' },
acquiringBin: 408999,
retrievalReferenceNumber: '412770451036',
systemsTraceAuditNumber: 451018,
senderName: 'Mohammed Qasim',
businessApplicationId: 'AA',
settlementServiceIndicator: 9,
transactionCurrencyCode: 'USD',
recipientName: 'rohan',
sourceAmount: 123.12,
senderCountryCode: '124',
senderAccountNumber: '4104920120500002',
amount: 124.05,
localTransactionDateTime: '2024-05-23T18:41:07.000Z',
purposeOfPayment: 'purpose',
cardAcceptor: {
address: [Object],
idCode: 'CA-IDCode-77765',
name: 'Visa Inc. USA-Foster City',
terminalId: 'TID-9999'
},
senderReference: '',
acquirerCountryCode: 840,
sourceCurrencyCode: '840',
senderCity: 'Foster City',
senderStateCode: 'CA',
merchantCategoryCode: 6012,
sourceOfFundsCode: '05'
}
}
{
httpsAgent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype] {
cert: <Buffer 2d 2d 2d 2d 2d 42 45 47 49 4e 20 43 45 52 54 49 46 49 43 41 54 45 2d 2d 2d 2d 2d 0a 4d 49 49 44 77 54 43 43 41 71 6d 67 41 77 49 42 41 67 49 49 47 58 ... 1312 more bytes>,
key: <Buffer 2d 2d 2d 2d 2d 42 45 47 49 4e 20 52 53 41 20 50 52 49 56 41 54 45 20 4b 45 59 2d 2d 2d 2d 2d 0a 4d 49 49 45 6f 77 49 42 41 41 4b 43 41 51 45 41 6a 34 ... 1625 more bytes>,
noDelay: true,
path: null
},
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 0,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Basic WTA3VkwxVTZKNDlHQ1BCREFFTU4yMTZSVFlkc1FiNDBGVWF5ajA3Nk9OZFFKQzJVdzpkZjU4Z2YwaHNGV2k3UExVVQ==',
keyId: 'b12faae9-c546-4651-b272-fdd424ac64eb'
},
url: 'https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pushfundstransactions',
method: 'POST',
data: {
encData: 'eyJpYXQiOjE3MjE3MzM2MjM5MDgsImVuYyI6IkExMjhHQ00iLCJhbGciOiJSU0EtT0FFUC0yNTYiLCJraWQiOiJiMTJmYWFlOS1jNTQ2LTQ2NTEtYjI3Mi1mZGQ0MjRhYzY0ZWIifQ.C4bGE0_R7WlaBSeG8DI1y7GJS0g1OKnNWmTnLm4DkxYzt8-8uRXObjX6ZmUkY1_tsjlO3VadfrTaOWrofprgRQw8A10adX2RSbCrFbqX8i1Vcj5YiICi_vFfx4AZYJ-pnUVh9gRzFUEjvpL6gkEbAJt_rdOfMhG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uIzIQ'
}
}

4 REPLIES 4
jenn_kh
Community Moderator

Re: status: 'BAD_REQUEST', code: 'NPPS012', message: 'Bad request'

Hi @kunalPrometteuThank you for reaching out. One of our agents will look into this and get back to you soon. In the meantime, if any community member knows a solution, feel free to reply to this thread.

API_Products
Visa Developer Support Specialist

Re: status: 'BAD_REQUEST', code: 'NPPS012', message: 'Bad request'

Hey @kunalPrometteu,

 

Are you still experiencing an error? If so please refer to the Error Codes page for cause/resolution. Let us know if the error persists.




Thanks,

Diana H.



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

javascript2018-
Regular Visitor

Re: status: 'BAD_REQUEST', code: 'NPPS012', message: 'Bad request'

if you have already solved this that is good and if not, contact me I can do it one time

Rubel Hossain
shindevishnu31
New Contributor

Re: status: 'BAD_REQUEST', code: 'NPPS012', message: 'Bad request'

I am also facing similar issue for {{baseUrl}}/connect/v1/cardServices/new api