Hi all,
What can be wrong if I am getting next response:
{"errors":{"messages":[{"code":"BAD_REQUEST","type":"Validation","text":"!sales.app.error.policy.save.failed!"}]}}
Request seems valid. Is there any test credit card numbers?
Thanks.
Request looks like this (test data)
{ "trip":{ "startDate":"2018-10-01", "endDate":"2018-10-31" }, "insuredPersons":[ { "inHomeProvince":true, "homeProvince":"QC", "birthDate":"1970-01-01", "insuredType":"CANADIAN", "insuredGroupType":"INDIVIDUAL", "selectedPlans":[ { "planCode":"PL-SMED-3" } ], "firstName":"Roger", "lastName":"Wilco", "phoneNumbers":[ { "number":"6041232413" } ], "addresses":[ { "type":"MAIL", "addressLine1":"1393 reu Egan", "city":"MONTREAL", "country":"CA", "province":"QC", "postalCode":"H4E 2J6" } ] } ], "policyInfo":{ "partnerCode":"MSA103" }, "payments":[ { "transactionType":"PURCHASE", "paymentType":"CREDITCARD", "paymentMethod":"SINGLE", "currencyCode":"CAD", "amount":"112.84", "creditCardType":"VISA", "creditCardNumber":"4012888888881881", "cardHolder":"Roger Wilco", "cardExpirationDate":"2018-10" } ] }
Message edited by zbak 3 years ago
Please sign in to add a post.
Hi all,
What can be wrong if I am getting next response:
{"errors":{"messages":[{"code":"BAD_REQUEST","type":"Validation","text":"!sales.app.error.policy.save.failed!"}]}}
Request seems valid. Is there any test credit card numbers?
Thanks.
Request looks like this (test data)
{ "trip":{ "startDate":"2018-10-01", "endDate":"2018-10-31" }, "insuredPersons":[ { "inHomeProvince":true, "homeProvince":"QC", "birthDate":"1970-01-01", "insuredType":"CANADIAN", "insuredGroupType":"INDIVIDUAL", "selectedPlans":[ { "planCode":"PL-SMED-3" } ], "firstName":"Roger", "lastName":"Wilco", "phoneNumbers":[ { "number":"6041232413" } ], "addresses":[ { "type":"MAIL", "addressLine1":"1393 reu Egan", "city":"MONTREAL", "country":"CA", "province":"QC", "postalCode":"H4E 2J6" } ] } ], "policyInfo":{ "partnerCode":"MSA103" }, "payments":[ { "transactionType":"PURCHASE", "paymentType":"CREDITCARD", "paymentMethod":"SINGLE", "currencyCode":"CAD", "amount":"112.84", "creditCardType":"VISA", "creditCardNumber":"4012888888881881", "cardHolder":"Roger Wilco", "cardExpirationDate":"2018-10" } ] }
Message edited by zbak 3 years ago
Tags