bigcommerce-api-php icon indicating copy to clipboard operation
bigcommerce-api-php copied to clipboard

Order Transactions

Open travisfisher opened this issue 5 years ago • 1 comments

Expected behavior

I would expect to be able to retrieve an order's transaction details.

See: https://developer.bigcommerce.com/api-reference/orders/orders-transactions-api

Actual behavior

Call to undefined method Bigcommerce\Api\Resources\Order::getTransactions()

Steps to reproduce behavior

$order = Bigcommerce\Api\Client::getOrder();
$transactions = $order->getTransactions();

travisfisher avatar Mar 12 '19 12:03 travisfisher

Hey @travisfisher , this client is configured for v2 API requests only (although this is something we want to address in the near future). Order Transactions is a v3 endpoint and not supported by this client. These are all of the resources you can access currently: https://github.com/bigcommerce/bigcommerce-api-php/tree/master/src/Bigcommerce/Api/Resources

Thanks for opening the issue, and pull requests are welcome if this is something you're interested in contributing to :)

karen-white avatar Mar 12 '19 15:03 karen-white