Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST request not working for payout apis #48

Closed
IKafle opened this issue Jul 10, 2021 · 1 comment
Closed

POST request not working for payout apis #48

IKafle opened this issue Jul 10, 2021 · 1 comment

Comments

@IKafle
Copy link

IKafle commented Jul 10, 2021

The test server is responding back an error response during Payouts api POST request.

request payload :
{ "clientReferenceInformation": { "code": "33557799" }, "orderInformation": { "amountDetails": { "totalAmount": "100.00", "currency": "USD" } }, "merchantInformation": { "merchantDescriptor": { "name": "Sending Company Name", "locality": "FC", "country": "US", "administrativeArea": "CA", "postalCode": "94440" } }, "recipientInformation": { "firstName": "John", "lastName": "Doe", "address1": "Paseo Padre Boulevard", "locality": "Foster City", "administrativeArea": "CA", "country": "US", "postalCode": "94400", "phoneNumber": "6504320556" }, "senderInformation": { "referenceNumber": "1234567890", "account": { "fundsSource": "05" }, "name": "Company Name", "address1": "900 Metro Center Blvd.900", "locality": "Foster City", "administrativeArea": "CA", "countryCode": "US" }, "processingInformation": { "businessApplicationId": "CP", "networkRoutingOrder": "V8", "commerceIndicator": "internet" }, "paymentInformation": { "card": { "type": "001", "number": "4111111111111111", "expirationMonth": "12", "expirationYear": "2025" } } }

Error Respnse :

{ "id": "6259213754156096103003", "submitTimeUtc": "2021-07-10T12:49:35Z", "status": "INVALID_REQUEST", "reason": "INVALID_DATA", "message": "Declined - One or more fields in the request contains invalid data", "details": [ { "field": "business_application_id", "reason": "INVALID_DATA" } ] }

I tried different values to field business_application_id such as : CP, FD, AA, PP, GD etc but no of the value seems to be working. I tried this in the default sandbox environment provided by the cybersource developer page itself, it's not working there as well. Is there something i might be missing in the request payload?

@IKafle IKafle closed this as completed Jul 14, 2021
@IKafle
Copy link
Author

IKafle commented Jul 14, 2021

assigning : PP to the business_application_id field worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant