Updates an invoice item.
Updates an invoice item.
id required | string <= 50 characters ^[@~\-\.\w]+$ ID of the resource. |
itemId required | string ID of the invoice item. |
Invoice item resource.
{ "type": "debit", "description": "string", "unitPrice": 0.1, "quantity": 0, "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "periodStartTime": "2019-08-24T14:15:22Z", "periodEndTime": "2019-08-24T14:15:22Z", "periodNumber": 0, "tax": { "amount": 0.1, "description": "string" } }
200
Invoice item updated.
401
Unauthorized access. Invalid credentials used.
422
Invalid data sent.
{ "id": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV", "type": "debit", "description": "string", "unitPrice": 0.1, "quantity": 0, "price": 0.1, "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "planId": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "subscriptionId": "ord_01GYJPRKHBD6ZYHH897QCJMBS4", "discountAmount": 0.1, "periodStartTime": "2019-08-24T14:15:22Z", "periodEndTime": "2019-08-24T14:15:22Z", "periodNumber": 0, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "tax": { "amount": 0.1, "description": "string", "rate": 0, "stateAmount": 0.94, "countyAmount": 0.04, "cityAmount": 0, "specialDistrictAmount": 0.38, "stateRate": 0, "countyRate": 0, "cityRate": 0, "specialDistrictRate": 0, "jurisdictions": { "country": "US", "state": "CA", "county": "LOS ANGELES", "city": "LOS ANGELES" } }, "_links": [ { "href": "string", "rel": "self" } ], "_embedded": { "product": { }, "plan": { } } }