Skip to content
New issue

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

Deal Associated Invoices & Payments Unsupported #366

Open
asim-blueprintprep opened this issue Jul 8, 2024 · 0 comments
Open

Deal Associated Invoices & Payments Unsupported #366

asim-blueprintprep opened this issue Jul 8, 2024 · 0 comments

Comments

@asim-blueprintprep
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant