# Accept Header issue

**URL:** <https://discuss.dwolla.com/t/accept-header-issue/7162>\
**Category:** API Support\
**Created:** [June 7, 2021, 11:36am UTC](https://discuss.dwolla.com/t/accept-header-issue/7162 "2021-06-07T11:36:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshtak](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@harshtak](https://discuss.dwolla.com/u/harshtak)\
**Post date:** [June 7, 2021, 11:36am UTC](https://discuss.dwolla.com/t/accept-header-issue/7162/1 "2021-06-07T11:36:02Z")

</div>

We have tried using the api spec [GitHub - Dwolla/dwolla-openapi: An OpenAPI specification for the Dwolla API. https://developers.dwolla.com](https://github.com/Dwolla/dwolla-openapi) to generate the client side code. According to documentation it has mentioned that all the api calls should supply “Accept: application/vnd.dwolla.v1.hal+json” header but it is not working. We have supplied “application/json” and it worked. Please help us to clarify and also if you can provide lates api spec to generate the client apis to consume in our application.

Thanks

---

<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:** [June 7, 2021, 3:44pm UTC](https://discuss.dwolla.com/t/accept-header-issue/7162/2 "2021-06-07T15:44:36Z")

</div>

Hi @harshtak – this is the most recently updated spec that we have.

For all POST requests except for token creation, the **Accept** header value should be `"application/vnd.dwolla.v1.hal+json"`.

For all POST requests except for the following, the **Content-Type** header value can be `"application.json"` or `'application/vnd.dwolla.v1.hal+json"`

- Token creation request expects –  
`"Content-Type" : "application/x-www-form-urlencoded"`
- document upload request expects –  
`"Content-Type" : "multipart/form-data; boundary=<needs to be calculated when request is sent>"`

Would you be able to share the request-ids of the requests that failed? I’d like to take a deeper look into the request and see if something’s off! What are the error messages you are seeing?
