# Having issues with the Buy Contract API

**URL:** https://community.deriv.com/t/having-issues-with-the-buy-contract-api/88121
**Category:** Developers
**Created:** [May 4, 2025, 4:32pm UTC](https://community.deriv.com/t/having-issues-with-the-buy-contract-api/88121 "2025-05-04T16:32:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arariba-acerbly-2](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@arariba-acerbly-2](https://community.deriv.com/u/arariba-acerbly-2)
#### Post date: [May 4, 2025, 4:32pm UTC](https://community.deriv.com/t/having-issues-with-the-buy-contract-api/88121/1 "2025-05-04T16:32:24Z")

</div>

Hi.  
I am trying to use the Buy Contract API for an Accumulator Trade type. I am supplying this request

```auto
{
    "buy": "63e1aa93-9e99-e3fb-d36c-d76f47dbc412",
    "price": 1,
    "parameters": {
        "contract_type": "ACCU",
        "basis":"stake",
        "symbol": "R_100",
        "currency": "USD",
        "limit_order": {
            "take_profit": 1
        }
    }
}

```

And I am getting this response back

```auto
{
  "echo_req": {
    "buy": "63e1aa93-9e99-e3fb-d36c-d76f47dbc412",
    "parameters": {
      "app_markup_percentage": "0",
      "basis": "payout",
      "contract_type": "ACCU",
      "currency": "USD",
      "limit_order": {
        "take_profit": 1
      },
      "symbol": "R_100"
    },
    "price": 1,
    "req_id": 10
  },
  "error": {
    "code": "ContractCreationFailure",
    "message": "Please specify either payout or stake."
  },
  "msg_type": "buy",
  "req_id": 10
}

```

I have provided the basis as per the docs  
What am I missing?  
Any help is appreciated
