invoices
The invoices
endpoint retrieves your purchase invoices for a specified period (Reseller Invoices). It contains the price data that you as a reseller pay to Copaco Cloud.
The endpoint returns invoice data, grouped per invoice and specified per customer and subscription.
Example response in JSON format.
{
"Invoices":
[
{
"Customers":
[
{
"AccountID": ......,
"CompanyName": "......",
"CostCenter": "......",
"CustomerNumber": "......",
"Subscriptions":
[
{
"BillingModel": ......,
"PlanCategoryName": "......",
"PlanID": ......,
"PlanName": "......",
"PriceLines":
[
{
"ConsumerCompanyName": "......",
"ConsumerCompanyNumber": "......",
"Description": "......",
"Discount": ......,
"Duration": "......",
"DurationType": "......",
"EndDate": "......",
"ExtendedPrice": ......,
"LineId": ......,
"Quantity": ......,
"QuantityType": "......",
"RatePeriodID": ......,
"SKU": "......",
"StartDate": "......",
"SubPONumber": ......,
"TaxPercentage": ......,
"TaxZoneID": "......",
"UID": "......",
"UnitPrice": ......,
"VAT": ......
}
],
"StartDate": "......",
"SubscriptionID": ......,
"SubscriptionName": "......",
"SubscriptionPONumber": ......
}
]
}
],
"Header":
{
"Currency": "......",
"Date": "......",
"Description": "......",
"ExpirationDate": "......",
"InvoiceID": "......",
"Language": "......",
"LanguageCode": "......",
"TermsOfPaymentDays": ......,
"Type": "......",
"TypeIdentifier": ......
},
"Receiver":
{
"AccountID": ......,
"Address": "......",
"City": "......",
"CompanyName": "......",
"ContactFirstName": "......",
"ContactLastName": "......",
"ContactMiddleName": "......",
"Country": "......",
"CountryCode": "......",
"CustomerNumber": "......",
"Email": "......",
"Fax": ......,
"Telephone": "......",
"Type": ......,
"VATNumber": "......",
"Zip": "......"
},
"Sender":
{
"AccountID": ......,
"Address": "......",
"BankAccount": "......",
"BIC": "......",
"ChamberOfCommerce": "......",
"City": "......",
"CompanyName": "......",
"Country": "......",
"CountryCode": "......",
"Fax": ......,
"IBAN": "......",
"Logo": "......",
"PostalCode": "......",
"Telephone": "......",
"VATNumber": "......",
"Website": "......"
},
"Totals":
{
"TotalExcludingVAT": ......,
"TotalIncludingVAT": ......,
"TotalVAT": ......
}
}
]
}
Invoice element
The Invoices
element contains information about one single invoice.
Each Invoice
consists of:
Element | Description |
---|---|
| element |
| element |
| element |
| element containing 1 or more |
| element consisting of sub-elements. |
Header element
The Header
element contains basic information about the Invoice
. It has the following child elements:
Element | Description |
---|---|
| The identifying number of the invoice |
| Invoice date |
| Due date of the invoice |
| Currency, like |
| Terms of payment days agreed upon |
| Invoice or credit |
| Code corresponding to the type |
| Language code used by Copaco to create the printed version of the invoice |
| The language used by Copaco to create the printed version of the invoice |
| Invoice description |
Sender element
This Sender
element has information about the Sender. It has the following child elements:
Element | Description |
---|---|
| Sender Account ID as shown in the 2tCloud Portal |
| Name of the Sender |
| Street the Sender is registered at the chamber of commerce |
| Postal code of the Sender |
| City the Sender is registered in the Chamber of Commerce |
| Specific code for the country of the Sender |
| Country the Sender is registered at the chamber of commerce |
| Sender contact telephone number |
| Sender contact fax number |
| Number of the Sender as registered in the Chamber of Commerce |
| Number of Sender's Bank account |
| IBAN Number of the Sender |
| Bank Identifier Code of the Sender's bank account |
| VAT number of the Sender |
| Sender's website |
| Publicly accessible URL to your company logo, to place the company logo on the print version of the invoice |
Receiver element
The Receiver
element in an Invoice contains info about the receiving Partner and has the following child elements:
Element | Description |
---|---|
| Receiver Account ID corresponding to that in the 2tCloud Portal |
| Corresponds with the Copaco customer account number |
| Name of the Partner |
| VAT number of the Partner |
| Billing contact first name |
| Billing contact middle name |
| Billing contact last name |
| Street the partner is registered at the chamber of commerce |
| Zip code the partner is registered at the chamber of commerce |
| City the partner is registered at the chamber of commerce |
| Specific code for the country of the Receiver |
| Corresponding country the partner registered at the chamber of commerce |
| Billing contact telephone number |
| Email Address the invoice is sent to |
| Billing contact Fax number |
| Relates to the Account and specifies whether it is a Reseller or an EndCustomer.
|
Customer element
An Invoice
normally has a Customers
child element. This contains 1 or more Customer
elements. The child elements of Customer
are:
Element | Description |
---|---|
| Corresponding to the ID in the Copaco Cloud Portal |
| Can be used by the Partner for reference to own ERP system. This number is set in the Control Panel at the additional information tab in the billing section |
|
|
| Name of the Customer |
| Element that consists of 1 or more |
Subscription element
The Subscription
contains basic information about a customer's subscription as well as several LineItem
elements with detailed info.
Element | Description |
---|---|
| Corresponds to the subscription in the Platform |
| Name of the subscription |
| An integer number, referring to a specific billing model like Pay before the subscription period, pay after the subscription period, pay as you go, or Externally rated. |
| An integer number, referring to the unique service plan ID that the subscription is based on. |
| Contains a list of names given to the service plan in different languages. |
| Internal identifier for the product category for the service plan |
| Initial start date of the subscription |
| PO Number of the Subscription (can be filled in by the Reseller) |
| Element containing a collection of 1 or more |
LineItem element
A LineItem
contains detailed information about its parent in this case of a Subscription. Below are the child elements of LineItem
further explained:
Element | Description |
---|---|
| Identification number as stored in the Copaco Cloud portal |
| The first UID is corresponding to the identifying number configured in the plan starting with a P form ‘plan’. The second and every UID after until the next subscription starts with a R from ‘resource’. A resource is an addition to the initial subscription |
| First line item contains the subscription #number and description. Successive line items contain the resource name of the line item belonging to the subscription |
| First quantity contains the amount of in the subscription included resources. Successive line items contain number of resources of the line item belonging to the subscription |
| Specifies the type of the Quantity (e.g. item) |
| Price of the line item the Customer can order the item for |
| The total discount of all included resources |
| The amount to be paid for the line item |
| Amount of VAT applicable for the line item |
| Corresponds to the ID configured in the Platform at a subscription level |
| Percentage applicable to the line item |
| Start date of the subscription period |
| End date of the subscription period |
| Duration of one subscription period (1, 3, etc), to be used in combination with |
| Duration type e.g. Month(s), Year |
| By the Partner configured SKU number |
| Unique internal ID (integer value) of the company account. |
| Name of the Customer |
| PO Number at LineItem level (currently same as on subscription level) |
| Internal Identifier of the resource rate period in the platform, unique per reseller. |
Totals element
An Invoice
normally ends with a Totals
element where the accumulated price data of all the prior elements is stored. As result, it displays information about the total amount the Partner has to pay over all Customers
. The Totals
generally consist of:
Element | Description |
---|---|
| Total amount in Euro excluding VAT |
| Total VAT in Euro, exclusive of telecommunication services |
| Total amount in Euro including VAT |