Create webhook subscription
Changed onCreate webhook subscription
Required scopes: application/webhooks:read, application/webhooks:write
Request
- Base URLhttps://api.yoco.com
- AuthHTTP bearer
Request body
Example request
{
"event_types": [
"payment.created"
],
"name": "Example Webhook Subscription",
"notification_url": "https://webhook.site/1d9d0c3c-c0f9-4def-8cf1-99efb5931eca"
}Response
Successful Response
Example response
{
"created_at": "2024-11-19T15:27:02+00:00",
"enabled": true,
"event_types": [
"payment.created"
],
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"name": "Example Webhook Subscription",
"notification_url": "https://webhook.site/1d9d0c3c-c0f9-4def-8cf1-99efb5931eca",
"secret": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD",
"updated_at": "2024-11-19T15:27:02+00:00"
}Changes
- warning
added the new
content_too_largeenum value to theresponse property for the response status - warning
added the new
content_too_largeenum value to theresponse property for the response status - warning
added the new
content_too_largeenum value to theresponse property for the response status - warning
added the new
content_too_largeenum value to theresponse property for the response status - warning
added the new
content_too_largeenum value to the///response property for the response status - warning
added the new
content_too_largeenum value to the///response property for the response status - warning
added the new
content_too_largeenum value to the///response property for the response status - warning
added the new
content_too_largeenum value to the///response property for the response status - warning
added the new
unsupported_media_typeenum value to theresponse property for the response status - warning
added the new
unsupported_media_typeenum value to theresponse property for the response status - warning
added the new
unsupported_media_typeenum value to theresponse property for the response status - warning
added the new
unsupported_media_typeenum value to theresponse property for the response status - warning
added the new
unsupported_media_typeenum value to the///response property for the response status - warning
added the new
unsupported_media_typeenum value to the///response property for the response status - warning
added the new
unsupported_media_typeenum value to the///response property for the response status - warning
added the new
unsupported_media_typeenum value to the///response property for the response status
- warning
- warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to the///response property for the response status - warning
added the new
conflictenum value to the///response property for the response status - warning
added the new
conflictenum value to the///response property for the response status - warning
added the new
conflictenum value to the///response property for the response status
- warning