BigCommerce outgoing webhook when an order is placed - bigcommerce

I am creating a custom app on the BigCommerce platform. I am wondering if it is possible to send a webhook request going from BigCommerce when an order has been placed. Currently I can only see that it is sending an email notification, but I would like to send a webhook request to a url instead.
For example, so that a post request is sent from BigCommerce to a certain URL everytime an order has been placed.

Use the Webhooks API to create a new webhook that fires on a new order:
https://developer.bigcommerce.com/api-reference/store-management/webhooks/webhooks/createwebhooks
That includes an endpoint you can specify to listen to events - that payload contains the order id of the new order.
More info here: https://developer.bigcommerce.com/api-docs/store-management/webhooks/overview
And all events here:
https://developer.bigcommerce.com/api-docs/store-management/webhooks/events

Related

General question regarding customer/data_request webhooks

I have designed a app. I have questions regarding customer/data_request webhooks
In what format does Shopify expect app developers to respond to these webhooks?
Should our response be sent back to the merchant's email (even though the customer requested this data)?
As mentioned in the Shopify documentation when a customer requests their data from a store owner, Shopify sends a payload on the customers/data_request topic to the apps installed on that store. If your app has been granted access to customers or orders, then you receive a data request webhook with the resource IDs of the data that you need to provide to the store owner. It's your responsibility to provide this data to the store owner directly.
This means you need to send the data to the merchant/store owner which the merchant needs to process and send the details to the customer. Alternatively, you can create a template and send the details directly to the customer on behalf of the Merchant.
You need to respond back to this webhook with a 200 success response.
Documentation: Link

How to filter the data sent to a Shopify webhook?

While creating a webhook for Shopify 'Order creation' event, how can I filter the data that is sent in the POST request JSON? It tends to send all the data by default, which includes lots of customer information which I don't want to share with the webhook. I couldn't find any option in the Admin dashboard.
Shopify just sends the whole order. If you want to limit that you could write your own webhook receiver and then filter and re-post the filtered data.
Some really low cost infrastructure for that would be an AWS Lambda function.
Rewind has a nice post showing the AWS setup needed for that which posts the webhooks to a queue to serialize downstream processing and handle spikes. You should be able to leverage their example to filter and there are tons of examples of how to post the filtered data on the internet.
Shopify webhooks are HTTPS. That means the payload is encrypted from prying eyes. Secondly, the webhook endpoint you create can inspect that security as Shopify includes authentication tokens.
So whether a webhook contains data you want or do not want, there is no sharing of that information with anyone. It is up to you to not share once you receive it. But that has zero to do with Shopify or the webhooks.

Podio WebHooks RequestBin Testing

I want to test Podio Web Hooks (item.update) through RequestBin. I have created WebHook and it shows in my account. When I created i got one request for Verify on RequestBin URL. But in Podio it is showing as Inactive.
Kindly let me know how can I test further.
You have to validate the hook using the code received from the verify call. The hook will become active only after on successful validation.
Refer Podio documentation on how to Validate hook here, Validate Podio hook verification
So the webhook content is pretty bare bones, it just has request parameters for a variable or two in addition to any URL parameters you are passing based on your webhook URI. There is a whole description of what the parameters provided are here: https://developers.podio.com/doc/hookshttps://developers.podio.com/doc/hooks
Basically whatever is catching your webhook will need to be able to connect to the Podio API and fetch the item with the ID passed in the webhook.

shopify webhook - identify a different client

I would like to integrate my backend API with several shopify clients by using webhook created by shopify.
I read that webhook is a push notification triggered by shopify. If I give my server endpoint (receiving order/creating a new customer) to my several shopify clients, how will I identify a different notification?
Will there be a unique identifier(per client) in the notification sent by shopify? It's because if I receive an order notification, I need to identify this order notification with one of my clients in my db.
Please advise me about this use case.
Thanks.
Per the Shopify Webhook Documentation, each webhook from Shopify contains a JSON payload and HTTP headers that provide context.
The X-Shopify-Shop-Domain HTTP header includes the domain of the shop, e.g., johns-apparel.myshopify.com. You can use this to identify the shop.
Every Webhook comes to you from Shopify with security information that allows you to determine if the incoming Webhook is even valid and every Webhook also tells you the shop the Webhook is coming from.
So you can use the shop information to figure things out. Straightforward!

Podio - customize webhook request data

When a Podio webhook is triggered by its subscribed event, the hook will send a request to an external url with information about that event. Is it possible to customize the information contained in the request?
For example, I am planning to create a webhook that will be triggered when an app field is updated. The default webhook settings will include
body: { item_id: '12345',
item_revision_id: '2',
type: 'item.update',
hook_id: 54321' }
in the request. However, this means that I have to chain this to another GET request back to Podio if I want to get more information about the updated item (these are 'user' items, so I want things like 'first_name', 'last_name', etc.).
When I create a hook via the API (https://developers.podio.com/doc/hooks/create-hook-215056), is there a way that I can customize it so that the entire updated item record is included in the requests when the hook is called? In the Ruby and PHP client examples, there's an attributes parameter - can you set the request data via attributes and, if so, how should that be formatted?
It is not possible to customize Podio webhook request. Each and every Podio webhook has same structure, and if you need more information about item being updated/created you will need to fire another GET request.