#victorconnexion

1 messages · Page 1 of 1 (latest)

ornate barnBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

keen kiln
ebon notch
#

does this work ? this is the body in the local listener , but it didn't appear in the test webhook

{
id: 'fee_1O8HRHEDHsfYjXUPnQRgLzlM',
object: 'application_fee',
account: 'acct_1NYl90EDHsfYjXUP',
amount: 100,
amount_refunded: 100,
application: 'ca_NthLdcdTcRwrDTkvQJX6GumHTSPYZh3V',
balance_transaction: 'txn_1O8HRKCVHi5xuVp5dsYZ3YA9',
charge: 'ch_3O8HQJEDHsfYjXUP1c1OiMV6',
created: 1698995107,
currency: 'usd',
livemode: false,
originating_transaction: null,
refunded: true,
refunds: {
object: 'list',
data: [ [Object] ],
has_more: false,
total_count: 1,
url: '/v1/application_fees/fee_1O8HRHEDHsfYjXUPnQRgLzlM/refunds'
}
}

#

req_Zj4rnzf9vxnt6U

keen kiln
#

Thannks for sharing! How about the event ID (evt_xxx) you received in the local listener?

ebon notch
#

I saw the in local listener but not the webhook (test env)

application_fee.refunded

#

evt_xxx ? where can I get the id ?

#

{
"id": "evt_3O8HAPEDHsfYjXUP1wWMVPDn",
"object": "event",
"account": "acct_1NYl90EDHsfYjXUP",
"api_version": "2022-11-15",
"created": 1698994285,
"data": {
"object": {

the above is the one that I saw in web hook

#

but in the webhook it doesn't have application_fee.refunded event

keen kiln
ebon notch
#

req_Zj4rnzf9vxnt6U

#

{
"refund_application_fee": "true",
"reason": "requested_by_customer"
}

keen kiln
#

Checking it now

ebon notch
#

thanks

keen kiln
#

application_fee.* related event will be sent to the Webhook with Account type, i.e. platform account itself. Your webhook endpoint is set to subscribed to event in Connect type, i.e. the events on the connected account.

#

In order to subscribe to application_fee.* events, i'd recommend creating a new Webhook endpoint with Account type, i.e. Listen to the events on your account