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

Create Purchase Orders: Address Type error #66

Open
NateJones5150 opened this issue Oct 26, 2021 · 0 comments
Open

Create Purchase Orders: Address Type error #66

NateJones5150 opened this issue Oct 26, 2021 · 0 comments

Comments

@NateJones5150
Copy link

NateJones5150 commented Oct 26, 2021

Hi,

When executing create_purchase_orders, the PO is successfully being put through to my Xero account (API history shows as successful too), however I'm receiving the below error on the backend:

ValueError: Invalid value for address_type (), must be one of ['POBOX', 'STREET', 'None']

See my workings below for reference:
purchase_order = PurchaseOrder( contact=contact, line_items=line_item, delivery_date=delivery_date, status=status, ) purchase_orders = PurchaseOrders(purchase_orders=[purchase_order]) create_purchase_order = accounting_api.create_purchase_orders(xero_tenant_id, purchase_orders)

Also I tried using Address() to add delivery details but got a JSON type error (which Ive not received for other times I've used Address(), eg: adding contacts/etc)

Any thoughts?

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