"term_type": "NET_45" }, "shipping_info": { "first_name": "Sally", "last_name": "Patient", "business_name": "Not applicable", "phone": { "country_code": "001", "national_number": "5039871234" }, "address": { "line1": "1234 Broad St.", "city": "Portland", "state": "OR", "postal_code": "97216", "country_code": "US" } }, "shipping_cost": { "amount": { "currency": "USD", "value": 10 } } }) if invoice.create(): print(json.dumps(invoice.to_dict(), sort_keys=False, indent=4)) else: print(invoice.error)