Deal Associated Invoices & Payments Unsupported
asim-blueprintprep opened this issue · 0 comments
Hi,
From what I can see, the PHP SDK does not support pulling associated invoices and payments for a deal?
It is listed as an available action:
https://developers.hubspot.com/docs/api/crm/associations#deal-to-object
Deal to Invoice and Deal to Payment
For example, pulling a deal associated contact:
$contacts = $client->crm()->associations()->v4()->basicApi()->getPage('deal', $dealId, 'contact');
But:
$payments = $client->crm()->associations()->v4()->basicApi()->getPage('deal', $dealId, 'payment');
Returns:
{"status":"error","message":"Unable to infer object type from: payments","correlationId":"9761f9db-757a-48b9-8bb2-c07590 (truncated...)
I suspect that's because payment
isn't listed here:
https://github.com/HubSpot/hubspot-api-php/blob/master/lib/Crm/ObjectType.php
Is there something I'm missing, or for these calls will we have to make curl/guzzle requests?
Thanks,
Alex