Closed olimortimer closed 5 years ago
Ignore me, I'm being stupid. I just need to loop over the RepeatableType, like I do for GetOrdersRequestType
.
foreach ($responseSaleRecord->SellingManagerSoldOrder->SellingManagerSoldTransaction as $SellingManagerSoldTransaction) {
dd($SellingManagerSoldTransaction->InvoiceNumber);
}
Just started to use the SDK, but struggling a little...
I'm attempting to retrieve the 'Invoice number' and 'Notes to yourself' data from a Sold listing | Sales record, but can't work out how I can retrieve the 'Invoice number'.
I have the below so far:
This gives me details on the sales record, and I can access the 'Notes to yourself' using
$responseSaleRecord->SellingManagerSoldOrder->NotesToSeller
. However, I originally thought$responseSaleRecord->SellingManagerSoldOrder->OrderStatus->SellerInvoiceNumber
was theInvoice number
but this doesn't seem to be the case. It is however,InvoiceNumber
which is part ofSellingManagerSoldTransaction
. But when I try and access this using$responseSaleRecord->SellingManagerSoldOrder->SellingManagerSoldTransaction->InvoiceNumber
it tells me that it is an undefined property.$responseSaleRecord->SellingManagerSoldOrder->SellingManagerSoldTransaction
is aRepeatableType
but I can't work out how to use this. When I dumpSellingManagerSoldTransaction
I receive the following, but I'm a bit out of my depth and would really appreciate some guidance please: