Hello.
Since I failed to get a meaninful response from support, maybe you can help me.
'send_request Dumper $VAR1 = {
\'URL\' => \'https://api.authorize.net/rest/v1/webhooks\',
\'method\' => \'POST\',
\'request\' => \'
{
"name": "AuthorizeNetXExternal",
"url": "https://zzzzzzzzzzzzzzz.com/xps_callbacks/authorizenetx_callback.html",
"eventTypes": [
"net.authorize.payment.authorization.created",
"net.authorize.payment.capture.created",
"net.authorize.payment.void.created",
"net.authorize.customer.paymentProfile.created",
"net.authorize.payment.fraud.held",
"net.authorize.payment.fraud.approved",
"net.authorize.payment.fraud.declined",
"net.authorize.payment.priorAuthCapture.created",
"net.authorize.payment.refund.created",
"net.authorize.payment.authcapture.created"
],
"status": "active"
}
\',
\'request_description\' => \'Create webhooks\',
\'type\' => \'rest\'
bless( {
\'_content\' => \'{
"status": 400,
"reason": "INVALID_DATA",
"message": "An error occurred while processing the request. Please note the correlation id for the request and contact Support for more details.",
"correlationId": "13f4e343-a643-40a3-858e-7593b4aba80b"
}\',
....
\'_msg\' => \'Bad Request\',
\'_protocol\' => \'HTTP/1.1\',
\'_rc\' => \'400\',
\'_request\' => bless( {
\'_content\' => \'
{
"name": "AuthorizeNetXExternal",
"url": "https://zzzzzzzzzzzzzzz.com/xps_callbacks/authorizenetx_callback.html",
"eventTypes": [
"net.authorize.payment.authorization.created",
"net.authorize.payment.capture.created",
"net.authorize.payment.void.created",
"net.authorize.customer.paymentProfile.created",
"net.authorize.payment.fraud.held",
"net.authorize.payment.fraud.approved",
"net.authorize.payment.fraud.declined",
"net.authorize.payment.priorAuthCapture.created",
"net.authorize.payment.refund.created",
"net.authorize.payment.authcapture.created"
],
"status": "active"
}
\',
\'_headers\' => bless( {
\'::std_case\' => {
\'if-ssl-cert-subject\' => \'If-SSL-Cert-Subject\'
},
\'accept\' => \'application/json\',
\'authorization\' => \'Basic zzzzzzzzzzzzzzz
\',
\'content-type\' => \'application/json\',
\'user-agent\' => \'libwww-perl/6.05\'
}, \'HTTP::Headers\' ),
\'_method\' => \'POST\',
\'_uri\' => bless( do{\\(my $o = \'https://api.authorize.net/rest/v1/webhooks\')}, \'URI::https\' ),
\'_uri_canonical\' => $VAR1->{\'_request\'}{\'_uri\'}
}, \'HTTP::Request\' )
}, \'HTTP::Response\' );
';I'm getting the same error by composing a CURL request.
Does this method work at all?
Thank you
09-17-2021 04:54 AM
up
09-23-2021 10:28 PM