Update Invoice
Last updated
Was this helpful?
Last updated
Was this helpful?
The ID of the invoice to update.
Represents an invoice entity in the billing system.
Platform entity metadata.
Contains audit-related details for the entity.
The unique identifier of the invoice.
INV-123-456-789
The current status of the invoice.
Active
Represents the various statuses an invoice can have in the billing system.
The billing type associated with the invoice.
Automated
Represents the type of billing process.
ERP-specific data related to the invoice, if available.
Pricing details of the invoice, if available.
PUT /public/v1/billing/invoices/{id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 4912
{
"$meta": {
"omitted": [
"text"
]
},
"audit": {
"created": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"issued": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"paid": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"overdue": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
}
},
"id": "INV-123-456-789",
"buyer": {
"id": "text",
"icon": "text",
"name": "text"
},
"seller": {
"id": "text",
"icon": "text",
"externalId": "text",
"name": "text"
},
"status": "Active",
"statement": {
"id": "SOM-1234-1234-1234-1234-1234"
},
"agreement": {
"id": "text",
"icon": "text",
"status": "text",
"name": "text"
},
"billingType": "Automated",
"client": {
"id": "text",
"icon": "text",
"type": "text",
"status": "text",
"name": "text"
},
"licensee": {
"id": "text",
"icon": "text",
"name": "text",
"externalId": "text"
},
"product": {
"id": "text",
"name": "text",
"externalIds": {
"operations": "text",
"defaultErpItem": "text"
},
"icon": "text",
"status": "text"
},
"vendor": {
"id": "text",
"icon": "text",
"type": "text",
"status": "text",
"name": "text"
},
"erpData": {
"erpId": "ERP-12345",
"documentNo": "DOC-67890",
"documentDate": "2025-04-30T10:00:00.0000000+00:00",
"dueDate": "2025-05-15T23:59:59.0000000+00:00",
"balanceDue": 1500.75,
"invoiceTotal": 2000,
"postingDate": "2025-05-01T10:00:00.0000000+00:00",
"rowVersion": 1,
"yourReference": "Custom reference: US-PSI-1525628 RITM55345369 Wrong SCU; Statement ID: SOMM-8224-9785-1293-2113",
"addresses": {
"billTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
},
"licenseTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
},
"sellTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
},
"shipTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
}
},
"referenceNumber": {
"eInvoiceNo": "text",
"orderNo": "CA-SCO-149880",
"ppqNo": "CA-PPQ-113048",
"quoteNo": "CA-QUO-145988"
},
"payment": {
"methodCode": "BANK",
"termsCode": "30DAYS"
}
},
"price": {
"currency": "EUR",
"markup": 10,
"margin": 13.04,
"totalPP": 100,
"totalSP": 115,
"totalST": 13,
"totalGT": 14.95
},
"lines": [
{
"id": "INL-123-123-123",
"description": "Microsoft 365 Business Standard",
"description2": "Includes Office apps and cloud services",
"documentNo": "DOC-98765",
"erpData": {
"contractNo": "text",
"countryOfUsage": "text",
"dataOrigin": 1,
"externalPositionNo": "text",
"navisionCountryCode": "text",
"parentItemNo": "text",
"primary": {
"identifier": "text",
"value": "text",
"version": "text"
},
"secondary": {
"identifier": "text",
"value": "text",
"version": "text"
},
"rowVersion": 1,
"responsibilityCenterCode": "text",
"swoPurchaseOrderNo": "text",
"type": 1,
"unitOfMeasure": "text",
"varAgreementNo": "text",
"varPartnerNo": "text",
"msrp": 15,
"timestamp": 1682937600,
"sellToContactNo": "CONTACT-001",
"externalDocumentNo": "EXTDOC-001",
"externalDocumentNo2": "EXTDOC2-001",
"yourReference": "CUSTREF-001"
},
"itemNo": "SKU-001",
"lineNo": 1,
"period": {
"start": "2025-01-01T00:00:00.0000000+00:00",
"end": "2025-01-31T23:59:59.0000000+00:00"
},
"price": {
"amount": 1000,
"amountIncludingVat": 1140,
"discountAmount": 15,
"lineAmount": 950,
"purchasePrice": 10,
"purchasePriceLcy": 200,
"purchasePriceTotal": 100,
"purchasePriceTotalLcy": 2000,
"quantity": 1,
"salesMarkup": 10,
"salesMargin": 15,
"unitPrice": 1,
"vatBaseAmount": 100,
"vatCalculationType": 1,
"vatPercent": 1
}
}
]
}
{
"$meta": {
"omitted": [
"text"
]
},
"audit": {
"created": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"issued": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"paid": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"overdue": {
"at": "2025-04-30T14:30:00.0000000+00:00",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
}
},
"id": "INV-123-456-789",
"buyer": {
"id": "text",
"icon": "text",
"name": "text"
},
"seller": {
"id": "text",
"icon": "text",
"externalId": "text",
"name": "text"
},
"status": "Active",
"statement": {
"id": "SOM-1234-1234-1234-1234-1234"
},
"agreement": {
"id": "text",
"icon": "text",
"status": "text",
"name": "text"
},
"billingType": "Automated",
"client": {
"id": "text",
"icon": "text",
"type": "text",
"status": "text",
"name": "text"
},
"licensee": {
"id": "text",
"icon": "text",
"name": "text",
"externalId": "text"
},
"product": {
"id": "text",
"name": "text",
"externalIds": {
"operations": "text",
"defaultErpItem": "text"
},
"icon": "text",
"status": "text"
},
"vendor": {
"id": "text",
"icon": "text",
"type": "text",
"status": "text",
"name": "text"
},
"erpData": {
"erpId": "ERP-12345",
"documentNo": "DOC-67890",
"documentDate": "2025-04-30T10:00:00.0000000+00:00",
"dueDate": "2025-05-15T23:59:59.0000000+00:00",
"balanceDue": 1500.75,
"invoiceTotal": 2000,
"postingDate": "2025-05-01T10:00:00.0000000+00:00",
"rowVersion": 1,
"yourReference": "Custom reference: US-PSI-1525628 RITM55345369 Wrong SCU; Statement ID: SOMM-8224-9785-1293-2113",
"addresses": {
"billTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
},
"licenseTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
},
"sellTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
},
"shipTo": {
"name": "Microsoft Corporation",
"name2": "Latin America Collections",
"email": "no-reply@company.com",
"customerNo": "AR-SCU-100064",
"addressLine1": "Cazadores de Coquimbo 2860",
"addressLine2": "Munro",
"addressLine3": "Cuyo 3367",
"city": "Carapachay",
"postCode": "75284-841",
"county": "Buenos Aires",
"country": "AR",
"contactName": "John Smith",
"contactNo": "AR-CON-100260",
"contactEmail": "john.smith@company.com",
"contactPhone": "+541123456789",
"code": "CON-100333"
}
},
"referenceNumber": {
"eInvoiceNo": "text",
"orderNo": "CA-SCO-149880",
"ppqNo": "CA-PPQ-113048",
"quoteNo": "CA-QUO-145988"
},
"payment": {
"methodCode": "BANK",
"termsCode": "30DAYS"
}
},
"price": {
"currency": "EUR",
"markup": 10,
"margin": 13.04,
"totalPP": 100,
"totalSP": 115,
"totalST": 13,
"totalGT": 14.95
},
"lines": [
{
"id": "INL-123-123-123",
"description": "Microsoft 365 Business Standard",
"description2": "Includes Office apps and cloud services",
"documentNo": "DOC-98765",
"erpData": {
"contractNo": "text",
"countryOfUsage": "text",
"dataOrigin": 1,
"externalPositionNo": "text",
"navisionCountryCode": "text",
"parentItemNo": "text",
"primary": {
"identifier": "text",
"value": "text",
"version": "text"
},
"secondary": {
"identifier": "text",
"value": "text",
"version": "text"
},
"rowVersion": 1,
"responsibilityCenterCode": "text",
"swoPurchaseOrderNo": "text",
"type": 1,
"unitOfMeasure": "text",
"varAgreementNo": "text",
"varPartnerNo": "text",
"msrp": 15,
"timestamp": 1682937600,
"sellToContactNo": "CONTACT-001",
"externalDocumentNo": "EXTDOC-001",
"externalDocumentNo2": "EXTDOC2-001",
"yourReference": "CUSTREF-001"
},
"itemNo": "SKU-001",
"lineNo": 1,
"period": {
"start": "2025-01-01T00:00:00.0000000+00:00",
"end": "2025-01-31T23:59:59.0000000+00:00"
},
"price": {
"amount": 1000,
"amountIncludingVat": 1140,
"discountAmount": 15,
"lineAmount": 950,
"purchasePrice": 10,
"purchasePriceLcy": 200,
"purchasePriceTotal": 100,
"purchasePriceTotalLcy": 2000,
"quantity": 1,
"salesMarkup": 10,
"salesMargin": 15,
"unitPrice": 1,
"vatBaseAmount": 100,
"vatCalculationType": 1,
"vatPercent": 1
}
}
]
}