ffl_integrations.gunbroker.webhooks¶
Source: apps/ffl_integrations/ffl_integrations/gunbroker/webhooks.py · 5 endpoint(s)
Generated by
make api-docs— do not edit by hand.
fixed_price_listing_failed¶
POST /api/method/ffl_integrations.gunbroker.webhooks.fixed_price_listing_failed
Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).
GunBroker FixedPriceListingFailed webhook: a listing failed, so record why and re-check the gun.
Payload: GunBroker's {ItemTitle, ItemID, SKU, Quantity, "Error Message"} JSON. The item number, SKU and error text are read; the text is stored as plain text on the gun's (or item's) GunBroker sync error.
Returns: 200 {ok: true} once accepted, including when no gun matches. 401 on bad credentials, identical to the other GunBroker webhook endpoints.
apps/ffl_integrations/ffl_integrations/gunbroker/webhooks.py:446
items_sold¶
POST /api/method/ffl_integrations.gunbroker.webhooks.items_sold
Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).
GunBroker ItemsSold webhook: an item sold, so pull the order now.
Payload: GunBroker's Order JSON. Only the order number is read; the order is then fetched from the GunBroker API by the order sync. The buyer details in the body are not stored or logged.
Returns: 200 {ok: true} once accepted, including when nothing could be matched. 401 when the HTTP Basic credentials are missing or wrong, word for word the same as when GunBroker is switched off or the webhook credentials are not set on this site.
apps/ffl_integrations/ffl_integrations/gunbroker/webhooks.py:382
items_unsold_not_relisted¶
POST /api/method/ffl_integrations.gunbroker.webhooks.items_unsold_not_relisted
Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).
GunBroker ItemsUnsoldNotRelisted webhook: a listing ended with no sale, so re-check the gun.
Payload: GunBroker's Item JSON. Only the item number and SKU are read.
Returns: 200 {ok: true} once accepted, including when no gun matches. 401 on bad credentials, identical to the other GunBroker webhook endpoints.
apps/ffl_integrations/ffl_integrations/gunbroker/webhooks.py:432
order_status_update¶
POST /api/method/ffl_integrations.gunbroker.webhooks.order_status_update
Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).
GunBroker OrderStatusUpdate webhook: an order changed, so pull it now.
Payload: GunBroker's order-status JSON (OrderID and the milestone dates). Only the order number is read.
Returns: 200 {ok: true} once accepted. 401 on bad credentials, identical to the other GunBroker webhook endpoints.
apps/ffl_integrations/ffl_integrations/gunbroker/webhooks.py:400
winning_bid_received¶
POST /api/method/ffl_integrations.gunbroker.webhooks.winning_bid_received
Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).
GunBroker WinningBidReceived webhook: an auction took a bid, so lock the gun now.
Payload: GunBroker's {item, currentBid} JSON. The item number, SKU, bid count, current bid and ending time are read; the gun is found by SKU, then item number.
Returns: 200 {ok: true} once accepted; a gun that cannot be matched falls back to a full auction watch. 401 on bad credentials, identical to the other GunBroker webhook endpoints.
apps/ffl_integrations/ffl_integrations/gunbroker/webhooks.py:415