# VALIDATION\_ERROR possible application/x-www-form-urlencoded issue?

**URL:** <https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746>\
**Category:** Ask a question\
**Created:** [June 7, 2023, 11:52pm UTC](https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746 "2023-06-07T23:52:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yes\_Captain](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/yes_captain/32/1221_2.png) [@Yes\_Captain](https://community.parabola.io/u/Yes_Captain)\
**Post date:** [June 7, 2023, 11:52pm UTC](https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746/1 "2023-06-07T23:52:58Z")

</div>

Hi

Trying to send data from my DB (xano) to the API for Ticket Tailor (an event ticketing platform) to create bulk discount codes.

I keep getting the following error:

```auto
{
  "error_code": "VALIDATION_ERROR",
  "message": "Type of discount must be included in the request",
  "status": 400
}

```

But the required key value of “type”: “percentage” is in my request body.

My body is:

```auto
{
	"code": "{code}",
	"max_redemptions": "{max_redemptions}",
	"name": "{Code Name}",
	"price_percent": 25,
	"ticket_types": [
		"tt_3092588",
		"tt_3092589",
		"tt_3092590",
		"tt_3312545"
	],
	"type": "percentage"
}

```

The Parabola sent request is:

```auto
{
  "auth": {
    "username": "(my-api-key)"
  },
  "data": {
    "code": "6KUUC12H",
    "max_redemptions": "1",
    "name": "Jason_PRO_discount",
    "price_percent": 25,
    "ticket_types": [
      "tt_3092588",
      "tt_3092589",
      "tt_3092590",
      "tt_3312545"
    ],
    "type": "percentage"
  },
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
  },
  "method": "POST",
  "url": "https://api.tickettailor.com/v1/discounts"
}

```

I believe I have followed their docs to the letter. Their support isn’t proving very helpful.  
[https://developers.tickettailor.com/#create-a-discount-code](https://developers.tickettailor.com/#create-a-discount-code)

Anyone got any clues to why this isnt working?  
Is my request body the correct format for a x-www-form-urlencoded POST request?

Cheers  
~James

---

<div class="post-metadata">

**Author:** ![Ayana\_Usui](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/ayana_usui/32/1985_2.png) [@Ayana\_Usui](https://community.parabola.io/u/Ayana_Usui)\
**Post date:** [June 8, 2023, 12:35am UTC](https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746/2 "2023-06-08T00:35:09Z")

</div>

Hey @Yes_Captain !

Taking a look at their docs and example payload, it seems like the sent request is configured properly. Would you be able to test using a `fixed_amount` and see if an error returns using that configuration?

Thanks,  
Ayana

---

<div class="post-metadata">

**Author:** ![Yes\_Captain](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/yes_captain/32/1221_2.png) [@Yes\_Captain](https://community.parabola.io/u/Yes_Captain)\
**Post date:** [June 8, 2023, 1:06am UTC](https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746/3 "2023-06-08T01:06:03Z")

</div>

> [@Ayana\_Usui](#):
>
> fixed\_amount

Hey Ayana

Thanks for taking a look. Nope. “fixed\_discount” gives the same error.

Should a required field go somewhere else? I did try as a URL param and it didn’t work.

---

<div class="post-metadata">

**Author:** ![Emory\_Stainbrook](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/emory_stainbrook/32/1772_2.png) [@Emory\_Stainbrook](https://community.parabola.io/u/Emory_Stainbrook)\
**Post date:** [June 8, 2023, 7:53pm UTC](https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746/4 "2023-06-08T19:53:20Z")

</div>

Hi @Yes_Captain - Do you mind sending over a link to your Flow to us at [help@parabola.io](mailto:help@parabola.io) so we can take a closer look at how your API step is set up?

---

<div class="post-metadata">

**Author:** ![Yes\_Captain](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/yes_captain/32/1221_2.png) [@Yes\_Captain](https://community.parabola.io/u/Yes_Captain)\
**Post date:** [June 8, 2023, 10:54pm UTC](https://community.parabola.io/t/validation-error-possible-application-x-www-form-urlencoded-issue/2746/5 "2023-06-08T22:54:25Z")

</div>

Thanks Emory  
I have emailed my flow.  
Cheers  
~James
