Issues an upcoming invoice, for a subscription order with a specified ID, for early pay.
InvoiceIssue resource.
Upcoming invoice issued.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
id | string <= 50 characters ID of the upcoming invoice, which is persisted in the future renewal invoice. | ||||||||||||||||||||||||||||||||
websiteId | string (WebsiteId) <= 50 characters ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID. | ||||||||||||||||||||||||||||||||
subscriptionId | string <= 50 characters ID of the related subscription order. | ||||||||||||||||||||||||||||||||
currency | string = 3 characters Currency code in ISO 4217 format. | ||||||||||||||||||||||||||||||||
customerId | string <= 50 characters ID of the customer resource. | ||||||||||||||||||||||||||||||||
revision | integer Number of times the upcoming invoice data has changed. Use the revision number when analyzing webhook data to determine if a change should take precedence over the current representation. | ||||||||||||||||||||||||||||||||
organizationId | string <= 50 characters Unique organization identifier. An organization is an entity that represents a company. For more information, see Obtain an organization ID. | ||||||||||||||||||||||||||||||||
Array of objects (UpcomingInvoiceItem) Upcoming invoice items array. | |||||||||||||||||||||||||||||||||
Array | |||||||||||||||||||||||||||||||||
amount | number <double> Amount of the invoice. | ||||||||||||||||||||||||||||||||
amountDue | number <double> Amount that is due on the invoice. | ||||||||||||||||||||||||||||||||
subtotalAmount | number <double> Subtotal amount of the invoice. | ||||||||||||||||||||||||||||||||
discountAmount | number <double> Discount amount that is applied to the invoice. | ||||||||||||||||||||||||||||||||
object (Shipping) Shipping settings. | |||||||||||||||||||||||||||||||||
object (InvoiceTax) Invoice taxes. | |||||||||||||||||||||||||||||||||
object or null Organization tax ID number that is displayed on the invoice. | |||||||||||||||||||||||||||||||||
object or null Customer tax ID number that is displayed on the invoice. | |||||||||||||||||||||||||||||||||
object Billing address of the invoice. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Delivery address of the invoice. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
poNumber | string or null Purchase order number that is displayed on the invoice. | ||||||||||||||||||||||||||||||||
notes | string Notes for the customer that are displayed on the invoice. | ||||||||||||||||||||||||||||||||
Array of objects Discounts applied. | |||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
dueTime | string <date-time> Date and time when the invoice is due for payment. | ||||||||||||||||||||||||||||||||
issuedTime | string <date-time> Date and time when the invoice is issued. | ||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||
Array of objects Related links. | |||||||||||||||||||||||||||||||||
object Embedded objects that are requested by the | |||||||||||||||||||||||||||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
Conflict.
{- "issuedTime": "2019-08-24T14:15:22Z",
- "dueTime": "2019-08-24T14:15:22Z"
}
{- "id": "in_0YVF9605RKC62BP14NE2R7V2XT",
- "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
- "subscriptionId": "ord_01GYJPRKHBD6ZYHH897QCJMBS4",
- "currency": "USD",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "revision": 0,
- "organizationId": "org_0YVDM8RC7GDADADSBSMW124JA8",
- "items": [
- {
- "id": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV",
- "isInterim": true,
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "planId": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X",
- "subscriptionId": "ord_01GYJPRKHBD6ZYHH897QCJMBS4",
- "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": { }
}
}
], - "amount": 0,
- "amountDue": 0,
- "subtotalAmount": 0,
- "discountAmount": 0,
- "shipping": {
- "amount": 0,
- "calculator": "manual"
}, - "tax": {
- "calculator": "manual",
- "amount": 0,
- "items": [
- {
- "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"
}
}
]
}, - "organizationTaxIdNumber": {
- "type": "eu-vat",
- "value": "GB980780684"
}, - "customerTaxIdNumber": {
- "type": "eu-vat",
- "value": "GB980780684"
}, - "billingAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "Austin",
- "region": "Texas",
- "country": "GB",
- "postalCode": "WC2N 5NF",
- "phoneNumbers": [
- {
- "label": "main",
- "value": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO",
- "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221"
}, - "deliveryAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "Austin",
- "region": "Texas",
- "country": "GB",
- "postalCode": "WC2N 5NF",
- "phoneNumbers": [
- {
- "label": "main",
- "value": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO",
- "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221"
}, - "poNumber": "PO123456",
- "notes": "string",
- "discounts": [
- {
- "couponId": "cpn_0YVCNKF81GD778N4YNVGDJK558",
- "redemptionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "amount": 0,
- "description": "string",
- "context": "items"
}
], - "dueTime": "2019-08-24T14:15:22Z",
- "issuedTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "customer": { },
- "website": { },
- "organization": { },
- "leadSource": { }
}
}