Coinbase API Invalid Report Type Using Docs Generated Body

Viewed 62

I am trying to create a report using the Coinbase API. I am pulling the request body from the documentation's generated curl. I am getting an error in the response.

request:

const result = await sendRequest('/reports', 'POST', {
  "start_date": "2016-01-0100:00:00.000Z",
  "end_date": new Date().toISOString(),
  "type": "account",
  "format": "csv",
  "account_id": "ALL",
  "product_id": "ALL"
});

response snip:

"status":400,"statusText":"Bad Request","body":{"message":"invalid report type"}

Regardless of what I set the type to in the body, I get this same error.

0 Answers
Related