# Validate API response body

**URL:** <https://forum.alumio.com/t/validate-api-response-body/715>\
**Category:** HTTP Clients\
**Created:** [August 30, 2023, 11:25am UTC](https://forum.alumio.com/t/validate-api-response-body/715 "2023-08-30T11:25:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TMourikSH](https://forum.alumio.com/letter_avatar_proxy/v4/letter/t/e56c9b/32.png) [@TMourikSH](https://forum.alumio.com/u/TMourikSH)\
**Post date:** [August 30, 2023, 11:25am UTC](https://forum.alumio.com/t/validate-api-response-body/715/1 "2023-08-30T11:25:05Z")

</div>

I’ve a outgoing configuration to a API, that’s gives a 200 OK response  
the body instead does have the status (Processed or Error) as a array.

I tried to set-up a validator, but without any documentation, is really complex.

So, for example I got the next Body:

```auto
{
  "Header": {
    "Version": "1.0",
    "Identification": "1234567890",
    "Sender": "some-secret-key"
  },
  "Result": [
    {
      "CompanyIdentifier": "13",
      "OrderIdentifier": "1234567890",
      "ProcessingStatus": "E",
      "SalesOrderImportResult": "Can't import Sales Order. SO already in progress."
    }
  ],
  "Footer": {
    "TotalRecords": 0,
    "Records": 0
  }
}

```

I’ve added a plug-in ‘Validate the response’

1. Validate message body
2. Evaluate filter

- Value Condition
- Pattern accessor
- Pattern: Result.\*.ProcessingStatus
- Does not equal: string “P”

Right now this is one of the 5 solutions i tried already, but whatever i try, it fails always like:

Failed: Require all validations to pass

- Failed: Require all items to validate
  - Failed: Require all validations to pass
    - Failed: Error processing order

so, is there any howto/manual or example ? or maybe someone can explain howto achieve this

---

<div class="post-metadata">

**Author:** ![r.candrian](https://forum.alumio.com/user_avatar/forum.alumio.com/r.candrian/32/235_2.png) [@r.candrian](https://forum.alumio.com/u/r.candrian)\
**Post date:** [August 31, 2023, 3:05pm UTC](https://forum.alumio.com/t/validate-api-response-body/715/2 "2023-08-31T15:05:51Z")

</div>

Hi @TMourikSH,

Could you please try to change the plugin ‘Validate the response’ to this:

1. Validate message body
2. Aggregate: Require no validation to pass
3. Evaluate filter

- Value Condition
- Pattern Accessor
- Pattern: Result.\*.ProcessingStatus
- Equals: string “E”

Please let me know if it doesn’t work.

---

<div class="post-metadata">

**Author:** ![TMourikSH](https://forum.alumio.com/letter_avatar_proxy/v4/letter/t/e56c9b/32.png) [@TMourikSH](https://forum.alumio.com/u/TMourikSH)\
**Post date:** [September 1, 2023, 6:48am UTC](https://forum.alumio.com/t/validate-api-response-body/715/3 "2023-09-01T06:48:21Z")

</div>

![Scherm­afbeelding 2023-09-01 om 08.47.15](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/2/221b5caededfb262f04e95cb128c6cf64e758e3b.png)

Nope, no solution.  
But, ‘require **no** validation to pass’ isnt that strange ?

---

<div class="post-metadata">

**Author:** ![r.candrian](https://forum.alumio.com/user_avatar/forum.alumio.com/r.candrian/32/235_2.png) [@r.candrian](https://forum.alumio.com/u/r.candrian)\
**Post date:** [September 4, 2023, 8:47am UTC](https://forum.alumio.com/t/validate-api-response-body/715/4 "2023-09-04T08:47:24Z")

</div>

Hi @TMourikSH,

Thank you for confirming.  
So, please change to this:

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/d/dc51bf9105eb63365bb14394a530889def4f621c.png)

When the response is “E”, the task will fail, and the logs will be like this:  
 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/8/829e3dfa9b504376f58b13dfda8209e9b04cd238.png)

And when it’s “P”, the task will continue to be processed.  
Also, please make sure that the pattern is correct (without white space).

---

<div class="post-metadata">

**Author:** ![TMourikSH](https://forum.alumio.com/letter_avatar_proxy/v4/letter/t/e56c9b/32.png) [@TMourikSH](https://forum.alumio.com/u/TMourikSH)\
**Post date:** [September 4, 2023, 9:52am UTC](https://forum.alumio.com/t/validate-api-response-body/715/5 "2023-09-04T09:52:51Z")

</div>

I checked both options (again); especially the space in the pattern 😉

But non of both options works

---

<div class="post-metadata">

**Author:** ![r.candrian](https://forum.alumio.com/user_avatar/forum.alumio.com/r.candrian/32/235_2.png) [@r.candrian](https://forum.alumio.com/u/r.candrian)\
**Post date:** [September 4, 2023, 10:26am UTC](https://forum.alumio.com/t/validate-api-response-body/715/6 "2023-09-04T10:26:23Z")

</div>

That’s strange.  
Could you please create a support ticket? So that we can provide you with the example specific to your environment.

---

<div class="post-metadata">

**Author:** ![h.vennik](https://forum.alumio.com/letter_avatar_proxy/v4/letter/h/ccd318/32.png) [@h.vennik](https://forum.alumio.com/u/h.vennik)\
**Post date:** [May 30, 2025, 5:14pm UTC](https://forum.alumio.com/t/validate-api-response-body/715/7 "2025-05-30T17:14:24Z")

</div>

I just hit the exact same problem.  
Was this resolved? , and if so, could you share the solution?

---

<div class="post-metadata">

**Author:** ![r.candrian](https://forum.alumio.com/user_avatar/forum.alumio.com/r.candrian/32/235_2.png) [@r.candrian](https://forum.alumio.com/u/r.candrian)\
**Post date:** [July 2, 2025, 2:51pm UTC](https://forum.alumio.com/t/validate-api-response-body/715/8 "2025-07-02T14:51:48Z")

</div>

Hi @h.vennik,

If you still get the error, please make a report through a Support Ticket for further checking.
