{
    "componentChunkName": "component---src-templates-post-js",
    "path": "/en/v1/physical-product/pp-webhook-create/",
    "result": {"data":{"markdownRemark":{"htmlAst":{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"h2","properties":{"id":"creating-a-webhook","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#creating-a-webhook","ariaLabel":"creating a webhook permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Creating a Webhook"}]},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"text","value":"With this endpoint, the authorized business partner will be able to create webhooks that trigger product-related events."}]},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"text","value":"The business partner chooses these events from a pre-determined list to meet their needs."}]},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Available Events:"}]}]},{"type":"element","tagName":"div","properties":{"className":["list","bullet"]},"children":[{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_REFUNDED"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_COMPLETE"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_BILLET_PRINTED"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_DELAYED"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_CANCELED"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_CHARGEBACK"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_PROTEST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_EXPIRED"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"PURCHASE_APPROVED"}]},{"type":"text","value":"\n"}]}]},{"type":"element","tagName":"h3","properties":{"id":"request-parameters","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#request-parameters","ariaLabel":"request parameters permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Request parameters"}]},{"type":"element","tagName":"row","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"h4","properties":{"id":"body","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#body","ariaLabel":"body permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Body"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"event","type":"array","isrequired":"true"},"children":[]},{"type":"text","value":"\nThis field must contain a list of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"strings"}]},{"type":"text","value":" with the events chosen from the list of events provided above (minimum of 1 event)."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"product_ucode","type":"string"},"children":[]},{"type":"text","value":"\nThis field must be filled with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ucode"}]},{"type":"text","value":" of the product for which the webhook is being created. The value must be the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ucode"}]},{"type":"text","value":" of the product returned by the export endpoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"url","type":"string","isrequired":"true"},"children":[]},{"type":"text","value":"\nURL to where the webhook events will be sent."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"partner","type":"object"},"children":[]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"collapse","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"parameter","properties":{"title":"identifier","type":"string","isrequired":"true"},"children":[]},{"type":"text","value":"\nBusiness partner identifier provided by Hotmart."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]}]},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"sample-code-loader","properties":{"src":"pp-webhook-create-request"},"children":[]}]}]},{"type":"element","tagName":"hr","properties":{},"children":[]},{"type":"element","tagName":"h3","properties":{"id":"return","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#return","ariaLabel":"return permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Return"}]},{"type":"element","tagName":"row","properties":{},"children":[{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"id","type":"string"},"children":[]},{"type":"text","value":"\nIdentifier of the webhook created within Hotmart."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"product","type":"object"},"children":[]},{"type":"text","value":"\nInformations about the product linked to the webhook."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"collapse","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"ucode","type":"string"},"children":[]},{"type":"text","value":"\nThis field returns the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ucode"}]},{"type":"text","value":" of the product for which the webhook was created. The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ucode"}]},{"type":"text","value":" is the unique identifier of the product within Hotmart."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"name","type":"string"},"children":[]},{"type":"text","value":"\nThis field returns the name of the product associated with the webhook. The name is provided at the time of product registration in the platform."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"event","type":"array"},"children":[]},{"type":"text","value":"\nEvents chosen by the business partner (the same indicated in the request)."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"parameter","properties":{"title":"url","type":"string"},"children":[]},{"type":"text","value":"\nURL in the webhook's configuration."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"element","tagName":"sample-code-loader","properties":{"src":"pp-webhook-create-response"},"children":[]}]}]},{"type":"element","tagName":"sandbox","properties":{},"children":[{"type":"element","tagName":"p","properties":{"className":["half-width-content"]},"children":[{"type":"text","value":"To test this endpoint in the Sandbox, you need to change the base URL to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"https://sandbox.hotmart.com"}]},{"type":"text","value":" and use the Sandbox environment credential."}]}]}]},"frontmatter":{"description":"The Registration API is a tool that allows the business partner to export products and manage them through webhooks.","title":"Creating a Webhook","tags":["Registration API","Webhook","Export Product","Physical Product"],"category":"Registration API","categoryDescription":"The Registration API is a tool that allows the business partner to export products and manage them through webhooks.","api":null,"buttonLink":null,"buttonText":null,"buttonIcon":null},"fields":{"langKey":"en","verKey":["/v1"],"slug":"/en/v1/physical-product/pp-webhook-create/"}},"allMarkdownRemark":{"distinct":["en","es","pt-BR"]}},"pageContext":{"category":"","slug":"/en/v1/physical-product/pp-webhook-create/","pathNoLang":"/v1/physical-product/pp-webhook-create/"}},
    "staticQueryHashes": ["1180253839","1927663127","2095688679","3367957584","3579948671","3996864857","4162568218","4285555676"]}