Hi elitenel, Thank you for reaching out! An agent will get back to you as soon. Until then, if any community member knows a solution, feel free to reply in this thread.
Hey @elitenel,
The "Method Not Allowed" error (HTTP status code 405) indicates that the HTTP method used in your request is not allowed for the specified endpoint. In your case, it appears that you are using the GET method, which is not supported by the Visa Direct Push Funds Transactions API endpoint. The correct method for this endpoint is POST.
Here is how you can modify your cURL request to use the POST method:
1. Ensure you have the correct API endpoint.
2. Use the POST method instead of GET.
3. Include the necessary data in the request body as per the API documentation.
Below is an example of how to correctly format your cURL request using the POST method:
```sh
curl -v --cert /home/ubuntu/visa-api-server/certs/your_certificate.crt \
--key /home/ubuntu/visa-api-server/certs/your_private_key.key \
--cacert /home/ubuntu/visa-api-server/certs/DigiCertGlobalRootCA.pem \
--url "https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pushfundstransactions" \
--header "Content-Type: application/json" \
--request POST \
--data '{
"acquirerCountryCode": "840",
"acquiringBin": "408999",
"amount": "124.05",
"businessApplicationId": "AA",
"cardAcceptor": {
"address": {
"country": "USA",
"county": "San Mateo",
"state": "CA",
"zipCode": "94404"
},
"idCode": "CA-IDCode-77765",
"name": "Visa Inc. USA-Foster City",
"terminalId": "TID-9999"
},
"localTransactionDateTime": "2020-04-20T22:46:51",
"merchantCategoryCode": "6012",
"recipientPrimaryAccountNumber": "4957030420210496",
"retrievalReferenceNumber": "330000550000",
"senderAccountNumber": "4653459515756154",
"senderName": "John Doe",
"senderReference": "",
"systemsTraceAuditNumber": "451001",
"transactionCurrencyCode": "USD",
"transactionIdentifier": "381228649430015"
}'
```
In this example:
- Replace `/home/ubuntu/visa-api-server/certs/your_certificate.crt` with the path to your certificate.
- Replace `/home/ubuntu/visa-api-server/certs/your_private_key.key` with the path to your private key.
- Replace `/home/ubuntu/visa-api-server/certs/DigiCertGlobalRootCA.pem` with the path to your CA certificate.
- Adjust the JSON data in the `--data` parameter to match your actual transaction details.
This should resolve the "Method Not Allowed" error by using the correct HTTP method and including the required data as specified by the Visa Direct Push Funds Transactions API documentation.