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

forward-latest-invoice command #177

Open
michielbdejong opened this issue Sep 26, 2022 · 11 comments
Open

forward-latest-invoice command #177

michielbdejong opened this issue Sep 26, 2022 · 11 comments
Assignees

Comments

@michielbdejong
Copy link
Member

Something like php src/cli-single.php forward-latest-invoice heroku quickbooks
Add the command in src/run-command.php and add a file for it in src/commands/
It should be the latest complete invoice, not the currently accumulating usage for the next invoice (depending on Heroku API).
It should hopefully be idempotent (depending on Quickbooks API).

@ishifoev
Copy link
Contributor

@michielbdejong
Copy link
Member Author

no, that's outgoing invoices.
for incoming invoices we should use https://developer.intuit.com/app/developer/qbo/docs/api/accounting/most-commonly-used/bill#bill

@michielbdejong
Copy link
Member Author

Probably need to create a vendor ID for Heroku in Quickbooks first?

@ishifoev
Copy link
Contributor

Yes we need first vendor for Heroku before, that will be work.

@ishifoev
Copy link
Contributor

I think sanbox testing more usable only for US currency and other things. When you are working with Quickbooks Online for production for pondersource not include all of this features.

"response": {
  "Fault": {
   "Error": [
    {
     "Message": "Feature Not Supported Error",
     "Detail": "Feature Not Supported Error : We're sorry. This feature is not included in your QuickBooks Online Simple Start subscription.",
     "code": "5030",
     "element": ""
    }
   ],
   "type": "ValidationFault"
  },

@ishifoev
Copy link
Contributor

When you are creating Account the AccountType need be Expense the other one you can't create billl. Very complex API honestly

@ishifoev
Copy link
Contributor

When you are creating Vendor you need only in body use CompanyName and GivenName enough. I think it will be Heroku.

@ishifoev
Copy link
Contributor

The interesting part is they have a validation if some account or vendor exist you can just this id return and in Bill use when sending invoice.

@ishifoev
Copy link
Contributor

We can use accessToken instead client_id and client_secret because we are not using UI interface. The problem accessToken is they will work only for one hour after it you need to refresh access token and get new token. But for test working I think it will be okay.

@ishifoev
Copy link
Contributor

#179

@ishifoev ishifoev self-assigned this Oct 17, 2022
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

2 participants