0

Is it possible to add lineItems when creating/updating an order via REST API. My line items are not going through.

Sample request python dict:

{
    'manualTransaction': True,
    'note': 'asdf',
    'state': 'open',
    'total': '1234', 
    'lineItems': [{
      'name': receipt_label,
      'price': total_cents,  # clover takes cents
      'isRevenue': True,
    }]
  }

asked 2017-05-09 16:20:11 -0500

mtt gravatar image

1 answer

Sort by  
0

That's not currently supported. You will need to make a separate call to POST v3/merchants/{mId}/orders/{orderId}/line_items with the following body for each line item:

{ 
      "name": "receipt_label",
      "price": 100,  
      "isRevenue": "true"
}

answered 2017-05-09 16:38:30 -0500

miguel gravatar image