# Error when create invoice with API

**URL:** <https://developer.squareup.com/forums/t/error-when-create-invoice-with-api/5399>\
**Category:** Questions\
**Created:** [March 14, 2022, 10:21am UTC](https://developer.squareup.com/forums/t/error-when-create-invoice-with-api/5399 "2022-03-14T10:21:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisl](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@chrisl](https://developer.squareup.com/forums/u/chrisl)\
**Post date:** [March 14, 2022, 10:21am UTC](https://developer.squareup.com/forums/t/error-when-create-invoice-with-api/5399/1 "2022-03-14T10:21:54Z")

</div>

Hi,

My request is the following:  
I want to create an invoice related to an order created before with the API.  
The process that I used:

- Create an order
- Get the id of the order
- Create an invoice related to the order with the id
- Specify the payment requests

When i send the request I get this error message: **{“errors”: [{“code”: “BAD\_REQUEST”,“detail”: “This account has not been enabled to take payments”,“category”: “INVALID\_REQUEST\_ERROR”}]}**

I tried to activate payments with this form but when I try this link to activate this [squareup.com/activate](https://squareup.com/activate) I can’t.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [March 14, 2022, 3:44pm UTC](https://developer.squareup.com/forums/t/error-when-create-invoice-with-api/5399/2 "2022-03-14T15:44:53Z")

</div>

👋 I took a look at the account and it looks like you’ll need to connect a bank to be enabled for card processing. 🙂
