Ah I see, well, I’m testing with a simple curl call from my terminal (bash, debian) so far I’ve been able to hit it and receive a 400 response.
I hit it with
curl --header "Content-Type: application/json" --request POST --data '{"notificationCode":"xyz","notificationType":"xyz"}' https://mydomain.app/api/1.1/wf/recebe_notif_ps
And I receive
{"statusCode":400,"message":"The service Pagseguro - Check received notification just returned an error. Please contact the plugin author directly for feedback.\n\nRaw error:<?xml version=\"1.0\" encoding=\"ISO-8859-1\" standalone=\"yes\"?><errors><error><code>13001</code><message>invalid notification code value: xyz</message></error></errors>","do_not_report":true,"plugin_error":true,"args":{"bubble_code":"15561406558
I try to tweak the payload and the code 400 remains, but the error response changes. I’ll try more tweaking.
The platform I’m trying to receive a notification from says it is hitting my path with (alongside the response they got):
{
"request": {
"url": "https://oldappname.bubbleapps.io/version-test/api/1.1/wf/recebe_notif_ps/initialize",
"parameters": {
"notificationType": "transaction",
"notificationCode": "7468A6B1CD1FCD1FEAF004C4CFBD79BD3A83"
},
"headers": {},
"method": "POST"
},
"response": {
"headers": {
"access-control-allow-origin": "*",
"date": "Wed, 24 Apr 2019 18:39:05 GMT",
"content-length": "102",
"x-bubble-perf": "{'total':760.3,'percents':{'top':{'bubble_cpu':0.7,'block':73.8,'capacity_rl':0,'other_pause':0,'pre_fiber':25.6},'sub':{'pp_userdb':0,'pp_wait_userdb':0,'http_request':0,'serverjson':35.1,'redis':12.6,'fiber_queue':21.3,'capacity_wait':0.1}},'counts':{'pp_userdb':0,'http_request':0,'serverjson':4,'redis':10,'fiber_queue':13,'blocks':12},'misc':{'userdb_results':0,'userdb_data':0,'spent_time':4992022,'_longest_running_block_time':22.8,'_longest_running_block_name':'ServerJSON<_index.api_wf_name_to_id>_hortec_test'}}",
"x-powered-by": "Express",
"content-type": "application/json",
"connection": "keep-alive",
"x-bubble-capacity-used": "0.136",
"x-bubble-capacity-limit": "0"
},
"body": "{\n 'status': 'SUCCESS',\n 'message': 'The endpoint recebe_notif_ps was sucessfully initialized'\n}",
"status-code": "200"
},
"created": "2019-04-24T15:39:05.483-0300"
}
Any conclusions or new suggestions?