Your Webhooks by Zapier Custom Request step returns 400 Bad Request, even though the Zap reaches the action and the destination API URL appears correct. Zapier reports that the request failed but the error message does not necessarily explain which part of the submitted data caused the rejection.
The problem may be an incorrectly formatted JSON body, a field containing the wrong data type, or a mapped value that does not match the destination API's requirements. The way to identify the cause is to examine the request Zapier actually transmitted and compare it with what the receiving endpoint accepts.
Start with the failed HTTP request, identify the rejected data, and correct that specific mismatch. There is no reason to rebuild the Zap before establishing what the destination API refused to process.
Find the Failed 400 Request in Zap History
Open Zap History and select the run that failed at the Webhooks by Zapier Custom Request action. Make sure you are examining the failed webhook step rather than an earlier action that completed successfully.
Open the step's Logs tab and look for the HTTP 400 entry. Expand the error log to inspect the available request information, including the HTTP method, destination endpoint, headers, parameters, and request body.
The request body deserves particular attention because it shows what Zapier attempted to submit during that execution. A Custom Request may appear correctly configured in the editor while the actual values inserted from previous steps differ from the data you expected.
Zapier documents step-level HTTP log availability for up to seven days after execution, including replay attempts. If the logs for an older failure are no longer available, use a recent failed execution or a controlled test to obtain the relevant request details.
Check the API's Response Before Changing the Payload
An HTTP 400 response confirms that the request was rejected, but it does not identify the invalid field by itself. Inspect any response details available in the failed step to determine whether the receiving API supplied a more specific validation message.
For example, an API might return:
{
"error": "invalid_request",
"field": "amount_cents",
"message": "Expected an integer"
}
This is an illustrative response rather than a standard Zapier error message. In this example, the API identifies amount_cents as the rejected field and explains that the value must be an integer.
If your actual response names a field, investigate that field before changing anything else. When the destination returns only a generic 400 response, compare the transmitted request with the requirements documented for that API endpoint.
Compare Rejected Data With API Requirements
Open the destination API's documentation for the exact endpoint used by your Custom Request. Find its request-body requirements and compare them with the body recorded in the failed HTTP log.
Check the field names, required values, JSON structure and expected data types. The important distinction is that a request can contain perfectly valid JSON while still failing the destination's data validation.
Consider a hypothetical order API that requires the customer's email address and a payment amount expressed as an integer number of cents.
The documented request might be:
{
"customer": {
"email": "buyer@example.com"
},
"amount_cents": 1299
}
However, the failed Zapier request might contain:
{
"customer": {
"email": "buyer@example.com"
},
"amount_cents": "1299"
}
Both examples are valid JSON but the value of amount_cents is represented differently. The first sends a number, while the second sends a string because the value is enclosed in quotation marks.
If the receiving API requires an integer and does not accept a string in that field, it can reject the second request. The correction is not to replace the entire payload but to make the rejected value match the API's documented requirement.
The same comparison applies when a field is missing, contains an unexpected null value or appears at the wrong level of a nested JSON object. Identify the exact difference before making changes.
Correct the Rejected Field in Zapier
Return to the Zap editor and open the failed Webhooks by Zapier action. Confirm that Custom Request is selected, then examine the Data field.
Zapier does not automatically parse and format the body of a Custom Request in the same way it handles its standard webhook actions. The raw data therefore needs to match the structure expected by the receiving API.
For the example above, the incorrect value is:
"amount_cents": "1299"
If the API requires an integer, the corrected representation is:
"amount_cents": 1299
Make that adjustment in the actual JSON body while preserving the surrounding structure. The customer object does not need to change because it was not identified as the rejected part of the request.
This correction works only when the value really is a valid integer. If the amount comes from another Zap step, you also need to verify what that step supplies during execution.
When the Rejected Value Comes From an Earlier Step
A mapped value can look correct when you build the Zap but contain unexpected information when the automation runs. For example, the preceding action might return an empty amount, a formatted currency value or text instead of the number required by the API.
Open the earlier step in the failed run and inspect its Data Out. Find the field mapped into the Custom Request and compare its actual value with the request body shown in the webhook's HTTP log.
If the previous step supplied 1299 but the webhook transmitted "1299", examine how the mapped value is represented in the JSON template. If the preceding step supplied $12.99, correct the value before inserting it into a field that requires an integer number of cents.
The purpose of this comparison is to determine whether the problem originates in the value supplied by the previous step or in how Custom Request represents that value. Once you identify the difference, correct the responsible mapping or data preparation step without modifying unrelated fields.
Do not remove quotation marks around a mapped field unless its resolved output can safely be represented as the JSON type required by the API. An empty or nonnumeric value inserted without quotation marks can produce malformed JSON and introduce another rejection.
Check for Unwanted Data in the Request
If the HTTP log contains fields you never intended to submit, check whether the Custom Request Data field has been left blank.
Zapier documents that a blank Data field in Custom Request can cause the fields from the previous step to be sent as the request payload. Consequently, an empty configuration does not necessarily mean the receiving API gets an empty body.
If the API expects a specific JSON object, explicitly construct that object in the Data field. Include only the required information and map each value to the correct field.
After updating the configuration, confirm that the transmitted request contains the intended structure. This check is especially important when the previous Zap step returns many fields but the API accepts only a limited set of values.
Verify the Request Body Format
Once the rejected data has been corrected, inspect the headers attached to the Custom Request. The receiving API must be able to interpret the body using the content format expected by its endpoint.
For a JSON API, the request commonly includes:
Content-Type: application/json
Check the Headers section in your Custom Request and compare it with the headers recorded in the HTTP log. If the API requires JSON but the request declares an incompatible format, correct the header according to the endpoint's documentation.
However, the Content-Type header does not correct invalid JSON or convert text into a number. A request containing "amount_cents": "1299" still sends a JSON string even when its Content-Type correctly identifies the body as JSON.
This distinction prevents unnecessary configuration changes. When the destination identifies a particular field as invalid, correct that field first and leave unrelated settings unchanged.
Retest the Corrected Custom Request
After updating the payload, test the Custom Request again using values that satisfy the destination API's requirements. If the action creates orders, customers, invoices or other business records, use a safe test record or a designated testing environment whenever possible.
Open the corrected action in the Zap editor and select Test step. Review the returned HTTP status and any response information provided by the destination API.
A successful status depends on the endpoint. Some APIs return 200 OK, while others may return 201 Created, 202 Accepted or another documented success response.
The important result is that the destination no longer rejects the request for the original data-validation problem.
Compare the Failed and Successful Requests
After a successful test, inspect the corrected request and compare it with the one that previously returned 400.
For the example used throughout this article, the relevant difference is:
| Request detail | Failed request | Corrected request |
|---|---|---|
| Field | amount_cents | amount_cents |
| Submitted value | "1299" | 1299 |
| JSON data type | String | Number |
| API requirement | Does not match the expected integer | Matches the expected integer |
This comparison establishes what changed and why the correction should work for an API enforcing that requirement. It is more useful than repeatedly adjusting the webhook until an error disappears without understanding the cause.
Also verify the intended result in the destination application. If the request was supposed to create an order, check that the correct order exists with the expected customer and amount.
An accepted HTTP response does not always mean the intended business operation has finished. For example, a 202 Accepted response may indicate that processing will happen asynchronously.
If the Corrected Request Still Returns 400
Open the latest failed execution and examine its new HTTP response. Check whether the destination continues rejecting the original field or has identified a different validation problem.
If the error still concerns the same field, compare the latest transmitted value with your corrected Data configuration. An outdated mapping, an unsaved change or an unexpected value from a previous step may mean the request still contains the original problem.
If the API now identifies another field, correct that mismatch using the same approach. Avoid changing multiple unrelated fields before checking the new response because doing so makes it harder to determine which adjustment matters.
When the destination provides no useful validation details, compare the full transmitted request with an accepted example from the API's documentation. Pay attention to the exact method, endpoint, headers, body structure and required field values.
If the request appears to satisfy the documented requirements but the destination continues returning 400, its provider may need to inspect server-side validation logs. Supply a sanitized request body, timestamp, endpoint and relevant response information without exposing API keys, authorization tokens or customer data.
Confirm That the API Accepts the Corrected Data
The Custom Request 400 error is resolved when the destination API accepts the corrected request and performs the intended operation. The most useful evidence is the specific difference between the rejected request and the successfully processed one.
If the problem originated in a mapped value, make sure the preceding step consistently supplies information in the required format. If the problem was in the Custom Request Data field, preserve the corrected JSON structure so future executions send the same valid format.
Before replaying failed Zap runs, check whether any earlier requests produced records or triggered actions despite reporting errors. Replay only requests that still require processing to avoid creating duplicate business data.


