# Unable to create mass payment in sandbox

**URL:** <https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483>\
**Category:** Other\
**Created:** [December 2, 2020, 10:04pm UTC](https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483 "2020-12-02T22:04:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbgriffy](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jbgriffy](https://discuss.dwolla.com/u/jbgriffy)\
**Post date:** [December 2, 2020, 10:04pm UTC](https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483/1 "2020-12-02T22:04:01Z")

</div>

I am attempting to create a mass payment in my sandbox account but keep getting the error `BadRequest The request body contains bad syntax or is incomplete`. I am following examples from the API doc and from [this post](https://discuss.dwolla.com/t/mass-payments-pay-5-000-people-in-five-simple-steps/5281). I’ve also simplified it to what seems to be the bare minimum with no success. Request is included below, would appreciate any help on this.

```auto
{
	"_links": {
		"source": {
			"href": "https://api-sandbox.dwolla.com/funding-sources/19365d52-6e07-48d0-9d9e-08616a9e3473"
		}
	},
	"items": [
		{
			"_links": {
				"destination": {
					"href": "https://api-sandbox.dwolla.com/funding_sources/185a0626-58b6-4e74-96ab-cc435d388bc2"
				}
			},
			"amount": {
				"currency": "USD",
				"value": "1.23"
			}
		},
		{
			"_links": {
				"destination": {
					"href": "https://api-sandbox.dwolla.com/funding_sources/310efdac-3dd2-43ef-9356-560b6677423f"
				}
			},
			"amount": {
				"currency": "USD",
				"value": "0.99"
			}
		}
	]
}

```

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [December 3, 2020, 4:54pm UTC](https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483/2 "2020-12-03T16:54:34Z")

</div>

Hi @jbgriffy!

The following URL looks to be what’s causing the error. The “funding-sources” endpoint uses a hyphen (“`-`”) and not an underscore (“`_`”).

> [@jbgriffy](#):
>
> ```auto
> "href": "https://api-sandbox.dwolla.com/funding_sources/185a0626-58b6-4e74-96ab-cc435d388bc2"
> 
> ```

Hope that helps! Let me know if that worked!

---

<div class="post-metadata">

**Author:** ![jbgriffy](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jbgriffy](https://discuss.dwolla.com/u/jbgriffy)\
**Post date:** [December 3, 2020, 5:00pm UTC](https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483/3 "2020-12-03T17:00:33Z")

</div>

Couldn’t see the forrest for the trees (and of course all the other variable names with underscores!) Thanks!

That got me to another error “Supplying ach addenda entries is currently not enabled.” I am supplying addenda for both source and destination. Is that not supported just in the sandbox or in general?

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [December 3, 2020, 5:40pm UTC](https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483/4 "2020-12-03T17:40:47Z")

</div>

You’re welcome!

The Addenda is a premium feature that is turned off by default in both environments. It is turned on upon approval from the Dwolla team. If you’d like to test it out in Sandbox, your Account Manager will be able to help enable it!

---

<div class="post-metadata">

**Author:** ![jbgriffy](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jbgriffy](https://discuss.dwolla.com/u/jbgriffy)\
**Post date:** [December 3, 2020, 5:42pm UTC](https://discuss.dwolla.com/t/unable-to-create-mass-payment-in-sandbox/6483/5 "2020-12-03T17:42:05Z")

</div>

Thanks, I’ll check to see if we want that enabled.
