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

455 Views Asked by At

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

1

There are 1 best solutions below

0
On

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