Hello,
I've successfully create contacts and sales orders, but have not been able to create an invoice via the API.
I tried different combinations but the error is always the same..
My request is as follows:
- {
- "adjustment": 0,
- "adjustment_description": "Adjustment",
- "currency": "USD",
- "currency_id": "551422000000000097",
- "customer_id": "551422000000059003",
- "date": "2017-02-09",
- "discount": 0,
- "discount_type": "entity_level",
- "exchange_rate": 1,
- "invoice_number": "INV-000004",
- "is_inclusive_tax": false,
- "line_items": [
- {
- "description": "laptop description",
- "discount": 0.0,
- "item_id": "551422000000057007",
- "item_order": 0,
- "quantity": 2.0,
- "rate": 122.0,
- "tax_id": "551422000000059015",
- "unit": "qty"
- }
- ],
- "notes": "Thanks for your business.",
- "payment_options": {
- "payment_gateways": [
- {
- "": "authorize_net"
- }
- ]
- },
- "payment_terms": 30,
- "payment_terms_label": "Net 30",
- "salesorder_id": "551422000000059039",
- "salesperson_name": "Lara",
- "shipping_charge": 7,
- "terms": "Terms"
- }