Sean Burke
Sean Burke

Reputation: 11

API Error response when creating a request transaction: Missing parameter: `type`

When creating the transaction using the Coinbase PHP Library I am getting the following error from the API; Missing parameter: type

I added debug statements to double check that the library is properly sending the type, which it is.

type: "request",
amount: "10",
description: "random string",
to: "[email protected]",
currency: "BTC"

Has anyone else encountered this issue recently? I'm thinking that it's currently an issue with the coinbase API.

Ran down the rabbit hole making sure that it is properly sending the type properly to the API

$transaction = Transaction::request([
                'toEmail' => '[email protected]',
                'amount' => new Money(1, 'BTC'),
                'description' => 'Test transaction'
            ]);
            $client->createAccountTransaction($client->getPrimaryAccount(), $transaction);

Result:

{
    "success": false,
    "error": "Missing parameter: `type`"
}

Expected:

JSON data including information about the request

Upvotes: 1

Views: 457

Answers (1)

Kevin Grosset
Kevin Grosset

Reputation: 21

This is an API bug ... not a php/python... bug

Upvotes: 2

Related Questions