We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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');
$contacts = $client->crm()->associations()->v4()->basicApi()->getPage('deal', $dealId, 'contact');
But: $payments = $client->crm()->associations()->v4()->basicApi()->getPage('deal', $dealId, 'payment');
$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...)
{"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
payment
Is there something I'm missing, or for these calls will we have to make curl/guzzle requests?
Thanks,
Alex
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: