Documentation You are here: start » v » 2.0 » webhooks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v:2.0:webhooks [2024/12/11 15:54] – [Subscribed resources] marijav:2.0:webhooks [2025/06/27 16:46] (current) – [Example Payload] adam
Line 106: Line 106:
 The event that triggered the webhook still completed successfully. If it was a transaction webhook, the customer was charged and you'll receive payment for the transaction as your chosen payment gateway processes it. The event that triggered the webhook still completed successfully. If it was a transaction webhook, the customer was charged and you'll receive payment for the transaction as your chosen payment gateway processes it.
  
 +==== Automatic deactivation of failing webhooks ====
 +
 +If a single webhook endpoint continues to fail 12 times in a row (whether that is all from one single trigger, or from multiple triggers for the resource happening at the same time), then to prevent unnecessary attempts, the webhook will be deactivated, and the store will be notified by email. An inactive webhook will no longer send any payloads to the endpoint, giving the store time to correct the error that is happening before reactivating the webhook.
 +
 +An inactive webhook can be reactivated by editing it in the administration. When reactivating an inactive webhook, any resources that would have triggered the webhook while it was inactive are not automatically sent. These will need to be manually resent to your webhook endpoint as detailed below.
 ==== Troubleshooting Webhook Errors ==== ==== Troubleshooting Webhook Errors ====
  
Line 155: Line 160:
 === Subscriptions === === Subscriptions ===
  
-Triggered whenever a subscription resource is created or updated. Subscriptions are created when first purchased as part of a transaction, and an update could include a change to it's next or end date, or the past due amount. If a change is made to a customer who has an associated subscription and you have the subscription webhook enabled, you will receive 2 webhooks, one for the customer and another for the subscription.+Triggered whenever a subscription resource is created or updated. Subscriptions are created when first purchased as part of a transaction, and an update could include a change to it's next or end date, or the past due amount. If a change is made to a customer who has an associated subscription and you have the subscription webhook enabled, we will send two webhooks, one for the customer and another for the subscription.
  
-Events: ''subscription/created'', ''subscription/modified''+Events: ''subscription/created'', ''subscription/modified'', ''subscription/cancelled'', ''subscription/refeed'' 
 + 
 +Note that the ''cancelled'' event is triggered when the subscription //actually ends//, on the subscription end date, not when a customer uses a subtoken to set their subscription to cancel (this would be a ''modified'' event instead).
  
 === Customers === === Customers ===
  
-Triggered whenever a customer resource is created or updated. If a change is made to a customer who has an associated subscription and you have the subscription webhook enabled, you will receive 2 webhooks, one for the customer and another for the subscription.+Triggered whenever a customer resource is created or updated. If a change is made to a customer who has an associated subscription and you have the subscription webhook enabled, we will send two webhooks, one for the customer and another for the subscription.
  
-Events: ''customer/created'', ''customer/modified''+Events: ''customer/created'', ''customer/modified'', ''customer/refeed'' 
 + 
 +=== Transaction Log === 
 + 
 +Triggered whenever a transaction resource is updated in some way, causing an additional log to be added to the transaction log. This can include a transaction or transaction item being edited, captured, refunded, or a transaction being added, moved or removed from a transaction folder. 
 + 
 +Events: ''transaction_log/created'', ''transaction_log/refeed''
  
 <WRAP center round important 95%> <WRAP center round important 95%>
Line 196: Line 209:
  
   * Provide all data related to the customer (default)\\ <code>zoom=default_billing_address,default_shipping_address,default_payment_method,customer_addresses</code>   * Provide all data related to the customer (default)\\ <code>zoom=default_billing_address,default_shipping_address,default_payment_method,customer_addresses</code>
 +
 +=== Transaction Logs ===
 +
 +  * Provide all data related to the log (default)\\ <code>zoom=transaction_log_details,transactions</code>
  
 ==== Saving The Webhook ==== ==== Saving The Webhook ====
Line 896: Line 913:
 }</code> }</code>
  
 +=== Transaction Log === 
 +<code javascript> 
 +
 +    "_links":
 +         
 +    }, 
 +    "_embedded":
 +        "fx:transaction_log_details":
 +            { 
 +                "_links":
 +                     
 +                }, 
 +                "request_type": "transaction_folder_added", 
 +                "reference": "2296720403", 
 +                "log": "{\"rel\":\"transaction\",\"id\":2296720403,\"old_values\":{\"folder_id\":null},\"new_values\":{\"folder_id\":6}}" 
 +            } 
 +        ], 
 +        "fx:transactions":
 +            "_links":
 +                 
 +            }, 
 +            "folder_uri": "https://api.foxycart.com/store_transaction_folders/6", 
 +            "id": 2296720403, 
 +            "display_id": "foo12345", 
 +            "is_test": true, 
 +            "hide_transaction": false, 
 +            "data_is_fed": true, 
 +            "type": "transaction", 
 +            "source": "", 
 +            "transaction_date": "2025-01-01T01:01:01-0700", 
 +            "locale_code": "en_US", 
 +            "customer_first_name": "John", 
 +            "customer_last_name": "Person", 
 +            "customer_tax_id": "", 
 +            "customer_email": "john@example.com", 
 +            "customer_ip": "11.22.123.456", 
 +            "ip_country": "United States", 
 +            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15", 
 +            "total_item_price": 20, 
 +            "total_tax": 0, 
 +            "total_shipping": 7, 
 +            "total_future_shipping": 0, 
 +            "total_order": 27, 
 +            "status": "approved", 
 +            "folder_id": 6, 
 +            "date_created": "2025-01-01T01:01:01-0700", 
 +            "date_modified": "2025-01-01T01:01:01-0700", 
 +            "currency_code": "USD", 
 +            "currency_symbol": "$" 
 +        } 
 +    }, 
 +    "snapshot": "{\"_links\":{ },\"_embedded\":{\"fx:customer\":{\"_links\":{ },\"_embedded\":{\"fx:attributes\":[{\"_links\":{ },\"name\":\"Loyalty Points\",\"value\":\"100\",\"visibility\":\"private\",\"date_created\":\"2020-09-18T08:39:22-0700\",\"date_modified\":\"2020-09-18T08:39:22-0700\"},{\"_links\":{ },\"name\":\"Level\",\"value\":\"Bronze\",\"visibility\":\"public\",\"date_created\":\"2020-09-18T08:40:53-0700\",\"date_modified\":\"2020-09-18T08:40:53-0700\"}]},\"id\":12345678,\"last_login_date\":\"2025-06-25T06:48:10-0700\",\"first_name\":\"John\",\"last_name\":\"Person\",\"email\":\"john@example.com\",\"tax_id\":\"\",\"password_salt\":\"\",\"password_hash\":\"$P$Bfo4kbFOqal4gqR9RcE/xg2lK75zK1\",\"password_hash_type\":\"phpass\",\"password_hash_config\":\"8\",\"forgot_password\":\"\",\"forgot_password_timestamp\":null,\"is_anonymous\":false,\"date_created\":null,\"date_modified\":\"2025-06-25T06:48:10-0700\"},\"fx:payments\":[{\"_links\":{ },\"type\":\"plastic\",\"gateway_type\":\"authorize\",\"processor_response\":\"Authorize.net Transaction ID:123456789\",\"processor_response_details\":\"\",\"purchase_order\":\"\",\"cc_number_masked\":\"xxxxxxxxx4242\",\"cc_type\":\"Visa\",\"cc_exp_month\":\"01\",\"cc_exp_year\":\"2023\",\"fraud_protection_score\":0,\"paypal_payer_id\":\"\",\"third_party_id\":\"\",\"amount\":27,\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\"}],\"fx:items\":[{\"_links\":{ },\"item_category_uri\":\"https:\\/\\/api.foxycart.com\\/item_categories\\/60511\",\"name\":\"Test\",\"price\":20,\"quantity\":1,\"quantity_min\":0,\"quantity_max\":0,\"weight\":0,\"code\":\"\",\"parent_code\":\"\",\"discount_name\":\"\",\"discount_type\":\"\",\"discount_details\":\"\",\"subscription_frequency\":\"\",\"subscription_start_date\":null,\"subscription_next_transaction_date\":null,\"subscription_end_date\":null,\"is_future_line_item\":false,\"shipto\":\"\",\"url\":\"\",\"image\":\"\",\"length\":0,\"width\":0,\"height\":0,\"expires\":0,\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\"}],\"fx:custom_fields\":[{\"_links\":{ },\"name\":\"tos_agreement\",\"value\":\"true\",\"is_hidden\":false,\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\"},{\"_links\":{ },\"name\":\"newsletter_subscribe\",\"value\":\"0\",\"is_hidden\":false,\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\"}],\"fx:billing_addresses\":[{\"_links\":{ },\"address_name\":\"Default Billing Address\",\"first_name\":\"John\",\"last_name\":\"Person\",\"company\":\"\",\"address1\":\"123 Testing Street\",\"address2\":\"\",\"city\":\"LOS ANGELES\",\"region\":\"CA\",\"customer_postal_code\":\"90028\",\"customer_country\":\"US\",\"customer_phone\":\"\",\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\"}],\"fx:shipments\":[{\"_links\":{},\"address_name\":\"Me\",\"first_name\":\"John\",\"last_name\":\"Person\",\"company\":\"\",\"address1\":\"123 Testing Street\",\"address2\":\"\",\"city\":\"LOS ANGELES\",\"region\":\"CA\",\"postal_code\":\"90028\",\"country\":\"US\",\"phone\":\"\",\"shipping_service_id\":0,\"shipping_service_description\":\"Custom Flat Rate Shipping\",\"total_item_price\":20,\"total_tax\":0,\"total_shipping\":7,\"total_price\":27,\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\"}]},\"folder_uri\":\"\",\"id\":2296720403,\"display_id\":\"foo12345\",\"is_test\":true,\"hide_transaction\":false,\"data_is_fed\":true,\"type\":\"transaction\",\"source\":\"\",\"transaction_date\":\"2025-01-01T01:01:01+0930\",\"locale_code\":\"en_US\",\"customer_first_name\":\"John\",\"customer_last_name\":\"Person\",\"customer_tax_id\":\"\",\"customer_email\":\"john@example.com\",\"customer_ip\":\"11.22.123.456\",\"ip_country\":\"United States\",\"user_agent\":\"Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\/605.1.15 (KHTML, like Gecko) Version\\/18.4 Safari\\/605.1.15\",\"total_item_price\":20,\"total_tax\":0,\"total_shipping\":7,\"total_future_shipping\":0,\"total_order\":27,\"status\":\"approved\",\"folder_id\":null,\"date_created\":\"2025-01-01T01:01:01-0700\",\"date_modified\":\"2025-01-01T01:01:01-0700\",\"currency_code\":\"USD\",\"currency_symbol\":\"$\"}", 
 +    "request_source": "hAPI", 
 +    "date_created": "2025-01-01T01:01:01-0700" 
 +}</code>
 ====== JSON Webhook (Legacy) ====== ====== JSON Webhook (Legacy) ======
  
Line 1445: Line 1516:
     "sub_token_url": "https://example.foxycart.com/cart?sub_token=b37fb078e12ba5ef86773b43e60bdea5124a46f4b5698a5387862cd82042d003c",     "sub_token_url": "https://example.foxycart.com/cart?sub_token=b37fb078e12ba5ef86773b43e60bdea5124a46f4b5698a5387862cd82042d003c",
     "third_party_id": null     "third_party_id": null
 +}</code>
 +
 +=== Transaction Log ===
 +
 +<code javascript>{
 +    "_links": {  },
 +    "_embedded": {
 +        "fx:transaction_log_details": [
 +            {
 +                "_links": {  },
 +                "request_type": "transaction_folder_added",
 +                "reference": "1143688123",
 +                "log": "{\"rel\":\"transaction\",\"id\":1143688123,\"old_values\":{\"folder_id\":null},\"new_values\":{\"folder_id\":1}}"
 +            }
 +        ],
 +        "fx:transactions": {
 +            "_links": {  },
 +            "folder_uri": "https://api.foxycart.com/store_transaction_folders/1",
 +            "id": 1143688123,
 +            "display_id": 1143688123,
 +            "is_test": false,
 +            "hide_transaction": false,
 +            "data_is_fed": false,
 +            "type": "",
 +            "source": null,
 +            "transaction_date": "2018-03-01T00:00:00-0700",
 +            "locale_code": "en_US",
 +            "customer_first_name": "John",
 +            "customer_last_name": "Smith",
 +            "customer_tax_id": "",
 +            "customer_email": "john@example.com",
 +            "customer_ip": "193.123.4.56",
 +            "ip_country": "United States",
 +            "user_agent": null,
 +            "total_item_price": 20,
 +            "total_tax": 3,
 +            "total_shipping": 5,
 +            "total_future_shipping": 0,
 +            "total_order": 28,
 +            "status": "",
 +            "folder_id": 6,
 +            "date_created": null,
 +            "date_modified": "2025-03-01T00:00:00-0700",
 +            "currency_code": "USD",
 +            "currency_symbol": "$"
 +        }
 +    },
 +    "snapshot": "{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"},\"fx:attributes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/attributes\",\"title\":\"Attributes for this Transaction\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:receipt\":{\"href\":\"https:\\/\\/example.foxycart.com\\/receipt?id=b95e37b94b64e2df18caf9e27a1cd5abb0b925dabb8209e9cebf7113197bff74\",\"title\":\"This Receipt\",\"type\":\"text\\/html\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"},\"fx:items\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/items\",\"title\":\"The Items for this Transaction\"},\"fx:payments\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/payments\",\"title\":\"The Payments for this Transaction\"},\"fx:applied_taxes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/applied_taxes\",\"title\":\"The Applied Taxes for this Transaction\"},\"fx:applied_gift_card_codes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/gift_card_code_logs\",\"title\":\"The Applied Gift Card Codes for this Transaction\"},\"fx:custom_fields\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/transaction_custom_fields\",\"title\":\"The Custom Fields for this Transaction\"},\"fx:discounts\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/discounts\",\"title\":\"The Discounts for this Transaction\"},\"fx:shipments\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/shipments\",\"title\":\"The Shipments for this Transaction\"},\"fx:billing_addresses\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/billing_addresses\",\"title\":\"The Billing Addresses for this Transaction\"},\"fx:native_integrations\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/native_integrations\",\"title\":\"POST here to resend transaction to the Webhooks.\"},\"fx:process_webhook\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/process_webhook\",\"title\":\"POST here to resend the webhook notification for this transaction\"},\"fx:send_webhooks\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/send_webhooks\",\"title\":\"Refeed webhooks v2 for this Transaction\"},\"fx:send_taxes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/send_taxes\",\"title\":\"Refeed automatical tax services for this Transaction\"},\"fx:send_emails\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/send_emails\",\"title\":\"POST here to resend emails for this transaction.\"},\"fx:void\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/void\",\"title\":\"POST here to void this transaction.\"},\"fx:refund\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/refund\",\"title\":\"POST here to refund this transaction.\"},\"fx:transaction_logs\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/transaction_logs\",\"title\":\"Transaction Logs\"},\"fx:transaction_journal_entries\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/journal_entries\",\"title\":\"Transaction Journal Entries\"}},\"_embedded\":{\"fx:customer\":{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"},\"fx:attributes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/attributes\",\"title\":\"Attributes for this Customer\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:default_billing_address\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/default_billing_address\",\"title\":\"Default Billing Address for this Customer\"},\"fx:default_shipping_address\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/default_shipping_address\",\"title\":\"Default Shipping Address for this Customer\"},\"fx:default_payment_method\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/default_payment_method\",\"title\":\"Default Payment Method for this Customer\"},\"fx:transactions\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\\/transactions?customer_id=12345\",\"title\":\"Transactions for this Customer\"},\"fx:subscriptions\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\\/subscriptions?customer_id=12345\",\"title\":\"Subscriptions for this Customer\"},\"fx:send_webhooks\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/send_webhooks\",\"title\":\"Refeed webhooks v2 for this Customer\"},\"fx:customer_addresses\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/addresses\",\"title\":\"Addresses for this Customer\"},\"fx:gift_card_codes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\\/gift_card_codes?customer_id=12345\",\"title\":\"This Gift Card Codes\"}},\"_embedded\":{\"fx:attributes\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customer_attributes\\/4019385\",\"title\":\"This customer attribute\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"}},\"name\":\"Loyalty Points\",\"value\":\"100\",\"visibility\":\"private\",\"date_created\":\"2020-09-18T08:39:22-0700\",\"date_modified\":\"2020-09-18T08:39:22-0700\"},{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customer_attributes\\/4019390\",\"title\":\"This customer attribute\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"}},\"name\":\"Level\",\"value\":\"Bronze\",\"visibility\":\"public\",\"date_created\":\"2020-09-18T08:40:53-0700\",\"date_modified\":\"2020-09-18T08:40:53-0700\"},{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customer_attributes\\/6016448\",\"title\":\"This customer attribute\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"}},\"name\":\"Loyalty_Level\",\"value\":\"Blue\",\"visibility\":\"public\",\"date_created\":\"2021-05-17T03:43:36-0700\",\"date_modified\":\"2021-05-17T03:43:36-0700\"},{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customer_attributes\\/16721830\",\"title\":\"This customer attribute\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"}},\"name\":\"coupon_attribute\",\"value\":\"1\",\"visibility\":\"public\",\"date_created\":\"2024-10-21T07:44:46-0700\",\"date_modified\":\"2024-10-21T07:44:46-0700\"}]},\"id\":12345,\"last_login_date\":\"2025-06-13T03:17:49-0700\",\"first_name\":\"Shipping\",\"last_name\":\"Person\",\"email\":\"john@example.com\",\"tax_id\":\"\",\"password_salt\":\"\",\"password_hash\":\"$2y$10$fa9xnYjqeR3q8CPPDr29ROf\\/7O4GL9JSpyyqalGc\\/rVkMdkZLooTi\",\"password_hash_type\":\"bcrypt\",\"password_hash_config\":\"10\",\"forgot_password\":\"\",\"forgot_password_timestamp\":null,\"is_anonymous\":false,\"date_created\":null,\"date_modified\":\"2025-06-13T05:07:05-0700\"},\"fx:payments\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/payments\\/11136851\",\"title\":\"This Payment\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:transaction\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"}},\"type\":\"purchase_order\",\"gateway_type\":\"purchase_order\",\"processor_response\":\"Purchase Order\",\"processor_response_details\":\"\",\"purchase_order\":\"abc123\",\"cc_number_masked\":\"\",\"cc_type\":\"\",\"cc_exp_month\":\"\",\"cc_exp_year\":\"\",\"fraud_protection_score\":0,\"paypal_payer_id\":\"\",\"third_party_id\":\"\",\"amount\":28,\"date_created\":\"2018-03-01T00:00:00-0700\",\"date_modified\":\"2018-03-01T00:00:00-0700\"}],\"fx:items\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/items\\/73450424\",\"title\":\"This Item\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:transaction\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"},\"fx:item_category\":{\"href\":\"https:\\/\\/api.foxycart.com\\/item_categories\\/60511\",\"title\":\"This Item Category\"},\"fx:item_options\":{\"href\":\"https:\\/\\/api.foxycart.com\\/items\\/73450424\\/item_options\",\"title\":\"Item Options for This Item\"},\"fx:shipment\":{\"href\":\"https:\\/\\/api.foxycart.com\\/shipments\\/1338108\",\"title\":\"Shipment for this Item\"},\"fx:attributes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/items\\/73450424\\/attributes\",\"title\":\"Attributes for This Item\"},\"fx:discount_details\":{\"href\":\"https:\\/\\/api.foxycart.com\\/items\\/73450424\\/discount_details\",\"title\":\"The Discounts for this Item\"},\"fx:coupon_details\":{\"href\":\"https:\\/\\/api.foxycart.com\\/items\\/73450424\\/coupon_details\",\"title\":\"The Coupons for this Item\"},\"fx:item_taxes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/items\\/73450424\\/item_taxes\",\"title\":\"The applied taxes for this Item\"}},\"item_category_uri\":\"https:\\/\\/api.foxycart.com\\/item_categories\\/60511\",\"name\":\"My Widget\",\"price\":20,\"quantity\":1,\"quantity_min\":0,\"quantity_max\":0,\"weight\":0,\"code\":\"widget\",\"parent_code\":\"\",\"discount_name\":\"\",\"discount_type\":\"\",\"discount_details\":\"\",\"subscription_frequency\":\"\",\"subscription_start_date\":null,\"subscription_next_transaction_date\":null,\"subscription_end_date\":null,\"is_future_line_item\":false,\"shipto\":\"Me\",\"url\":\"\",\"image\":\"\",\"length\":0,\"width\":0,\"height\":0,\"expires\":0,\"date_created\":null,\"date_modified\":\"2016-11-17T23:57:30-0800\"}],\"fx:applied_taxes\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/applied_taxes\\/1343098\",\"title\":\"This Applied Tax\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:transaction\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"},\"fx:tax\":{\"href\":\"https:\\/\\/api.foxycart.com\\/taxes\\/43499\",\"title\":\"This Tax\"}},\"rate\":15,\"name\":\"United States Tax\",\"amount\":3,\"apply_to_handling\":false,\"apply_to_shipping\":false,\"is_future_tax\":false,\"shipto\":\"\",\"date_created\":null,\"date_modified\":null}],\"fx:custom_fields\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transaction_custom_fields\\/29486910\",\"title\":\"This Custom Field\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:transaction\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"},\"fx:shipment\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/shipment\",\"title\":\"This Shipment\"}},\"name\":\"newsletter_subscribe\",\"value\":\"0\",\"is_hidden\":false,\"date_created\":null,\"date_modified\":null}],\"fx:shipments\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/shipments\\/1338108\",\"title\":\"This Shipment\"},\"fx:attributes\":{\"href\":\"https:\\/\\/api.foxycart.com\\/shipments\\/1338108\\/attributes\",\"title\":\"Attributes for this shipment\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:custom_fields\":{\"href\":\"https:\\/\\/api.foxycart.com\\/shipments\\/1338108\\/shipment_custom_fields\",\"title\":\"Custom Fields for this shipment\"},\"fx:items\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/items?shipto=Me\",\"title\":\"Items in this shipment\"},\"fx:transaction\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"},\"fx:shipments\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/shipments\",\"title\":\"Shipments for this Transaction\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"},\"fx:customer_address\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customer_addresses\\/455435\",\"title\":\"This Customer Address\"}},\"address_name\":\"Me\",\"first_name\":\"John\",\"last_name\":\"Smith\",\"company\":\"\",\"address1\":\"123 Test Street\",\"address2\":\"\",\"city\":\"SAINT PAUL\",\"region\":\"MN\",\"postal_code\":\"55116\",\"country\":\"US\",\"phone\":\"\",\"shipping_service_id\":0,\"shipping_service_description\":\"Flat Rate Shipping\",\"total_item_price\":20,\"total_tax\":3,\"total_shipping\":5,\"total_price\":28,\"date_created\":\"2018-03-01T00:00:00-0700\",\"date_modified\":\"2018-03-01T00:00:00-0700\"}],\"fx:billing_addresses\":[{\"_links\":{\"curies\":[{\"name\":\"fx\",\"href\":\"https:\\/\\/api.foxycart.com\\/rels\\/{rel}\",\"templated\":true}],\"self\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/billing_address\",\"title\":\"This Billing Address\"},\"fx:store\":{\"href\":\"https:\\/\\/api.foxycart.com\\/stores\\/12345\",\"title\":\"This Store\"},\"fx:transaction\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\",\"title\":\"This Transaction\"},\"fx:billing_addresses\":{\"href\":\"https:\\/\\/api.foxycart.com\\/transactions\\/1143688123\\/billing_addresses\",\"title\":\"Billing Addresses for this Transaction\"},\"fx:customer\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\",\"title\":\"This Customer\"},\"fx:customer_address\":{\"href\":\"https:\\/\\/api.foxycart.com\\/customers\\/12345\\/default_billing_address\",\"title\":\"This Customer Address\"}},\"address_name\":\"Default Billing Address\",\"first_name\":\"John\",\"last_name\":\"Smith\",\"company\":\"\",\"address1\":\"123 Test Street\",\"address2\":\"\",\"city\":\"SAINT PAUL\",\"region\":\"MN\",\"customer_postal_code\":\"55116\",\"customer_country\":\"US\",\"customer_phone\":\"\",\"date_created\":null,\"date_modified\":\"2025-06-13T10:01:58-0700\"}]},\"folder_uri\":\"\",\"id\":1143688123,\"display_id\":1143688123,\"is_test\":false,\"hide_transaction\":false,\"data_is_fed\":false,\"type\":\"\",\"source\":null,\"transaction_date\":\"2016-11-18T18:28:22+1030\",\"locale_code\":\"en_US\",\"customer_first_name\":\"John\",\"customer_last_name\":\"Smith\",\"customer_tax_id\":\"\",\"customer_email\":\"john@example.com\",\"customer_ip\":\"193.123.4.56\",\"ip_country\":\"United States\",\"user_agent\":null,\"total_item_price\":20,\"total_tax\":3,\"total_shipping\":5,\"total_future_shipping\":0,\"total_order\":28,\"status\":\"\",\"folder_id\":null,\"date_created\":null,\"date_modified\":\"2025-06-13T10:01:58-0700\",\"currency_code\":\"USD\",\"currency_symbol\":\"$\"}",
 +    "request_source": "hAPI",
 +    "date_created": "2025-03-01T00:00:00-0700"
 }</code> }</code>
 ==== Validating the payload ==== ==== Validating the payload ====
Line 1803: Line 1924:
 <code> <code>
 Webhooks processing problems: Webhooks processing problems:
-Your Site Name (webflow): Product code "my-missing-code" not found [400]+Webflow2 (webflow2): Product code "my-missing-code" not found [400]
 </code> </code>
  
Line 1810: Line 1931:
 If the product code in the transaction matches the product in your collection, you will also want to confirm that the configured settings for your Webflow connection on the "Integrations" page in the Foxy administration is set to the correct field from your collection for the code. For example, if you're using the ''slug'' field from your collection as the product code, then that should also be set in the same way on the "Integrations" page in the Foxy admin. If it's not correct, you will need to disable the connection and re-connect, ensuring you select the right fields from your collection. If the product code in the transaction matches the product in your collection, you will also want to confirm that the configured settings for your Webflow connection on the "Integrations" page in the Foxy administration is set to the correct field from your collection for the code. For example, if you're using the ''slug'' field from your collection as the product code, then that should also be set in the same way on the "Integrations" page in the Foxy admin. If it's not correct, you will need to disable the connection and re-connect, ensuring you select the right fields from your collection.
  
-==== This item can't be published / CollectionSchemaChangedError ====+==== Site is published to multiple domains at different times / This item can't be published / CollectionSchemaChangedError ====
  
 If you've edited your product collections schema without publishing the page, Webflow will prevent any publishing requests via the API until the changes are published. If you experience this error, you'll see an error like this within your store's error log: If you've edited your product collections schema without publishing the page, Webflow will prevent any publishing requests via the API until the changes are published. If you experience this error, you'll see an error like this within your store's error log:
  
 +<code>
 +Webhooks processing problems:
 +Webflow2 (webflow2): Conflict: Site is published to multiple domains at different times. [409]
 +</code>
 <code> <code>
 Webhooks processing problems: Webhooks processing problems:

Site Tools