Monitor for webhooks
Last updated: Oct 18th, 5:08am
After creating a merchant account, PayPal sends the CUSTOMER.MANAGED-ACCOUNT.ACCOUNT-CREATED
webhook. Any changes to the merchant account trigger the CUSTOMER.MANAGED-ACCOUNT.ACCOUNT-UPDATED
webhook, which confirms that the verification process has begun on your merchant account.
For more information on the verification process, see Verify merchant accounts.
Sample code
1{2 "description": "Account creation webhook.",3 "title": "Create Account",4 "runnable": true,5 "operationId": "webhook.account_created",6 "request": {7 "path": "v1/notifications/webhooks-events/WH-3AE50806EM5305732-8C457463XB353952R",8 "method": "GET",9 "headers": {10 "Authorization": "Bearer ACCESS-TOKEN"11 }12 },13 "response": {14 "status": "200 OK",15 "headers": {},16 "body": {17 "id": "WH-3AE50806EM5305732-8C457463XB353952R",18 "event_version": "1.0",19 "create_time": "2019-01-25T07:18:28.264Z",20 "resource_type": "managed-accounts",21 "event_type": "CUSTOMER.MANAGED-ACCOUNT.ACCOUNT-CREATED",22 "summary": "A managed account was created.",23 "resource": {24 "account_id": "7G4EPEEPEF74L",25 "external_id": "external_id_353535335",26 "links": [27 {28 "rel": "self",29 "href": "https://api-m.paypal.com/v3/customer/managed-accounts/7G4EPEEPEF74L",30 "method": "GET"31 }32 ]33 },34 "application_context": {35 "event_context": "INFO"36 },37 "links": [38 {39 "href": "https://api-m.paypal.com/v1/notfications/webhooks-events/WH-3AE50806EM5305732-8C457463XB353952R",40 "rel": "self",41 "method": "GET"42 },43 {44 "href": "https://api-m.paypal.com/v1/notfications/webhooks-events/WH-3AE50806EM5305732-8C457463XB353952R/resend",45 "rel": "resend",46 "method": "POST"47 }48 ]49 }50 }51}