Skip to content

getOrders and probably other Requests are no longer working #83

Description

@TheLegendaryMarc

at the current State the getOrders Function is not usable here's a quick example:

Code

$user = '<USER>';
$apiPassword = '<PASSWORD>';
$apiKey = '<API_KEY>';

$client = new \BillbeeDe\BillbeeAPI\Client($user, $apiPassword, $apiKey);

$orders = $client->orders()->getOrders();

var_dump($orders);

and the Results are:

Results

object(BillbeeDe\BillbeeAPI\Response\GetOrdersResponse)#96 (4) { ["data"]=> array(0) { } ["paging"]=> NULL ["errorMessage"]=> NULL ["errorCode"]=> int(0) }

Same Request with Postman and same Credentials:

Postman

image

Technical View

a deeper look into the Code shows that the data is being retrieved but is not mapped correctly into the OrderResponse interface. Used PHP Version 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions