Method Not Allowed 405 - 9004

Solved! Go to solution
LSTORME
Dabbler

Method Not Allowed 405 - 9004

endpoint: /visadirect/fundstransfer/v1/pushfundstransactions

send: b'PUT /visadirect/fundstransfer/v1/pushfundstransactions HTTP/1.1\r\nUser-Agent: python-requests/2.26.0\r\nAccept-Encoding: gzip, deflate\r\nAccept: application/json\r\nConnection: keep-alive\r\nHost: sandbox.api.visa.com\r\nContent-Type: application/json\r\nContent-Length: 1425\r\nAuthorization: Basic SUs4RENTOUNaOFZDTjJBNEZWSU8yMUlVN3Zvdmh0RWZ0M01mcW40emNqQ1lqN0dtNDp0MlVwMWxEZmlDc253ODNmMTRtNG0zUms=\r\n\r\n'
send: b'{"amount": "124.05", "senderAddress": "901 Metro Center Blvd", "localTransactionDateTime": "2016-11-17T00:39:13", "pointOfServiceData": {"panEntryMode": "90", "posConditionCode": "00", "motoECIIndicator": "0"}, "recipientPrimaryAccountNumber": "4957030420210496", "colombiaNationalServiceData": {"addValueTaxReturn": "10.00", "taxAmountConsumption": "10.00", "nationalNetReimbursementFeeBaseAmount": "20.00", "addValueTaxAmount": "10.00", "nationalNetMiscAmount": "10.00", "countryCodeNationalService": "170", "nationalChargebackReason": "11", "emvTransactionIndicator": "1", "nationalNetMiscAmountType": "A", "costTransactionIndicator": "0", "nationalReimbursementFee": "20.00"}, "cardAcceptor": {"address": {"country": "USA", "zipCode": "94404", "county": "San Mateo", "state": "CA"}, "idCode": "CA-IDCode-77765", "name": "Visa Inc. USA-Foster City", "terminalId": "TID-9999"}, "senderReference": "", "transactionIdentifier": "381228649430015", "acquirerCountryCode": "840", "acquiringBin": "408999", "retrievalReferenceNumber": "412770451018", "senderCity": "Foster City", "senderStateCode": "CA", "systemsTraceAuditNumber": "451018", "senderName": "Mohammed Qasim", "businessApplicationId": "AA", "settlementServiceIndicator": "9", "merchantCategoryCode": "6012", "transactionCurrencyCode": "USD", "recipientName": "rohan", "senderCountryCode": "124", "sourceOfFundsCode": "05", "senderAccountNumber": "4653459515756154"}'

 

response:

reply: 'HTTP/1.1 405 \r\n'
header: Server: nginx
header: Date: Thu, 10 Nov 2022 15:30:42 GMT
header: Content-Type: application/json
header: Content-Length: 107
header: Connection: keep-alive
header: X-SERVED-BY: -756b6656
header: X-CORRELATION-ID: 1668094242_649_1923319325_-756b6656_VDP_WS
header: X-ERROR-ORIGIN: 9100
header: X-APP-STATUS: 405
DEBUG:urllib3.connectionpool:https://sandbox.api.visa.com:443 "PUT /visadirect/fundstransfer/v1/pushfundstransactions HTTP/1.1" 405 107
<Response [405]>
b'{"responseStatus":{"status":405,"code":"9004","severity":"ERROR","message":"Method Not Allowed","info":""}}'

 

what is wrong with my request (I'm using the sample payload for the endpoint) ?

3 REPLIES 3
I_Doroteo3
Visa Developer Support Specialist

Re: Method Not Allowed 405 - 9004

Hi @LSTORME

 

The 405 error you're receiving is because the project is trying to hit an URI/http method combination that does not exist. 

 

Please double check to ensure you're using this endpoint to create push funds transfer: https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pushfundstransactions

 

Visa Direct API  Reference page: https://developer.visa.com/capabilities/visa_direct/reference#tag/Funds-Transfer-API/operation/creat...

 

Thanks, 

Illana

LSTORME
Dabbler

Re: Method Not Allowed 405 - 9004

thank you !

tomferrisxd
Occasional Visitor

Re: Method Not Allowed 405 - 9004

Thank you, it helps a lot.