Creates an invoice item.
InvoiceItem resource.
Invoice item created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
type required | string Type of invoice item. |
unitPrice required | number <double> Unit price of the invoice item. |
id | string <= 50 characters ID of the website. A website is where an organization obtains a customer through a subscription. For more information, see Obtain an organization ID and website ID. |
description | string <= 1000 characters Description of the invoice item. |
quantity | integer Quantity of the invoice item. |
price | number <double> Total price of the invoice item. |
productId | string <= 50 characters ID of the product. |
discountAmount | number <double> Discount amount applied to the invoice item. |
periodStartTime | string <date-time> Date and time when the billing period starts. |
periodEndTime | string <date-time> Date and time when the billing period ends. |
periodNumber | integer Number of subscription order billing periods in which the invoice item has been included. |
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. |
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated. |
object (InvoiceTaxItem) Invoice item tax. | |
Array of objects Related links. | |
object Embedded objects that are requested by the | |
Unauthorized access. Invalid credentials used.
Invalid data sent.
{- "type": "debit",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "periodStartTime": "2019-08-24T14:15:22Z",
- "periodEndTime": "2019-08-24T14:15:22Z",
- "periodNumber": 0
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "type": "debit",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "discountAmount": 0,
- "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,
- "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": { }
}
}