Skip to content

Conversation

@gogl92
Copy link

@gogl92 gogl92 commented Sep 30, 2025

1️⃣ Is this something that is wanted/needed? Did you create an issue / discussion about it first?
Yes, this is needed to support PrintNode Integrator accounts. No prior issue/discussion was created.

2️⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
No, this PR contains a single, focused change to support PrintNode Integrator Child Accounts.

3️⃣ Does it include tests, if possible? (Not a deal-breaker, just a nice-to-have)
No, this PR does not include new tests.

4️⃣ Please include a thorough description of the improvement and reasons why it's useful.
This PR adds support for PrintNode Integrator Child Accounts by introducing a child_account request option. When provided, this option automatically adds the X-Child-Account header to all API requests, allowing integrators to scope operations to a specific child account. This is crucial for managing multiple client accounts under a single integrator account, as outlined in the PrintNode API documentation ("Account download & management – X-Child-Account").

Usage:
You can now specify a child_account ID in the request options:

$client->printers->all([], [
    'child_account' => 1234, // Child Account ID
]);

This option can also be supplied when instantiating the PrintNodeClient.

5️⃣ Thanks for contributing! 🙌


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Sep 30, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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

Successfully merging this pull request may close these issues.

3 participants