# Update
source: https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/purchaserequest/invoice_addenda_data/updateaddenda/index.md

Update the details of invoice addenda records. In each request, update up to 1000 invoice records. Mastercard may change this record limit at a future date.
Include all details for the addenda records that you want to update. Any parameters that are missing in the update are replaced with a null value. For example, if `InvoiceCurrencyAmount` is not included in the update request, the invoice addenda will be updated with a null value even if there was a value specified previously. Mastercard recommend that integrators retrieve the invoice addenda record stored in ICCP using the `getAddenda` API call. Integrators can modify the data if required, and return the invoice addenda to ICCP using this API.
Note: Invoice addenda data is not supported for ICMP.

## Parameters {#parameters}

Same as [addAddendaRequest parameters](https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/purchaserequest/invoice_addenda_data/addaddenda/index.md#parameters) plus ID of individual invoice addenda records.

### Sample request {#sample-request}

```xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:ser="http://mastercard.com/sd/pc2/service" xmlns:ser1="http://mastercard.com/sd/pc/service">
	<soapenv:Header/>
	<soapenv:Body>
		<ser:updateAddendaRequest>
			<ser:purchaseRequestId>900497</ser:purchaseRequestId>
			<ser:addendaData>
				<!--Optional:-->
				<ser:globalInvoiceRequest>
					<!--Zero or more repetitions:-->
					<ser1:invoiceAddendum>
						<!--Optional:-->
						<ser1:Id>0ADN1f3096634890d93b088c8aeb60eb51e9d62b7c3ce8c306e9821c8dcde58f91cb1558601748</ser1:Id>
						<ser1:InvoiceNumber>2334</ser1:InvoiceNumber>
						<!--Optional:-->
						<ser1:InvoiceCurrencyAmount CurrencyCode="888"
							CurrencyExponent="2" CurrencySign="D">123</ser1:InvoiceCurrencyAmount>
						<!--Optional:-->
						<ser1:InvoiceDate>2020-02-19</ser1:InvoiceDate>
						<!--Optional:-->
						<ser1:PONumber>123</ser1:PONumber>
					</ser1:invoiceAddendum>
					<ser1:invoiceAddendum>
						<!--Optional:-->
						<ser1:Id>0ADN1f3096634890d93b088c8aeb60eb51e9d62b7c3ce8c306e9821c8dcde58f91cb1558601748</ser1:Id>
						<ser1:InvoiceNumber>2342</ser1:InvoiceNumber>
						<!--Optional:-->
						<ser1:InvoiceCurrencyAmount CurrencyCode="888"
							CurrencyExponent="2" CurrencySign="D">164</ser1:InvoiceCurrencyAmount>
						<!--Optional:-->
						<ser1:InvoiceDate>2020-02-09</ser1:InvoiceDate>
						<!--Optional:-->
						<ser1:PONumber>123</ser1:PONumber>
					</ser1:invoiceAddendum>
					<ser1:invoiceAddendum>
						<!--Optional:-->
						<ser1:Id>0ADNc7ab807cc1d4299acbfcb58254019008e1a7d949708dcd67d95ce3066f6c44141558601923</ser1:Id>
						<ser1:InvoiceNumber>233</ser1:InvoiceNumber>
						<!--Optional:-->
						<ser1:InvoiceCurrencyAmount CurrencyCode="888"
							CurrencyExponent="2" CurrencySign="D">67</ser1:InvoiceCurrencyAmount>
						<!--Optional:-->
						<ser1:InvoiceDate>2020-03-08</ser1:InvoiceDate>
						<!--Optional:-->
						<ser1:PONumber>123</ser1:PONumber>
					</ser1:invoiceAddendum>
				</ser:globalInvoiceRequest>
			</ser:addendaData>
			<ser:moreAddendaExpected>Y</ser:moreAddendaExpected>
		</ser:updateAddendaRequest>
	</soapenv:Body>
</soapenv:Envelope>
```

## Response {#response}

For each request, you receive:

* A purchase request ID.
* A success message.
* All the invoice addenda details sent in the update call.

### Sample Response {#sample-response}

```xml
<soapenv:Envelope
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
		<ns2:addendaOperationResponse
			xmlns="http://mastercard.com/sd/pc/service"
			xmlns:ns2="http://mastercard.com/sd/pc2/service">
			<ns2:purchaseControlAddendaResponse>
				<ns2:purchaseRequestId>900497</ns2:purchaseRequestId>
				<ns2:responseDescription>Request for Update Addenda successfully created.</ns2:responseDescription>
				<ns2:addendaDataResponse>
					<ns2:globalInvoiceResponse>
						<ns2:globalInvoiceAddendaResponse>
							<ns2:globalInvoiceAddendumResponse>
								<Id>0ADN1f3096634890d93b088c8aeb60eb51e9d62b7c3ce8c306e9821c8dcde58f91cb1558601748</Id>
								<InvoiceNumber>2342</InvoiceNumber>
								<InvoiceCurrencyAmount
									CurrencySign="D" CurrencyExponent="2"
									CurrencyCode="888">164</InvoiceCurrencyAmount>
								<InvoiceDate>2020-02-09</InvoiceDate>
								<PONumber>123</PONumber>
							</ns2:globalInvoiceAddendumResponse>
						</ns2:globalInvoiceAddendaResponse>
						<ns2:globalInvoiceAddendaResponse>
							<ns2:globalInvoiceAddendumResponse>
								<Id>0ADN1f3096634890d93b088c8aeb60eb51e9d62b7c3ce8c306e9821c8dcde58f91cb1558601748</Id>
								<InvoiceNumber>2342</InvoiceNumber>
								<InvoiceCurrencyAmount
									CurrencySign="D" CurrencyExponent="2"
									CurrencyCode="888">164</InvoiceCurrencyAmount>
								<InvoiceDate>2020-02-09</InvoiceDate>
								<PONumber>123</PONumber>
							</ns2:globalInvoiceAddendumResponse>
						</ns2:globalInvoiceAddendaResponse>
						<ns2:globalInvoiceAddendaResponse>
							<ns2:globalInvoiceAddendumResponse>
								<Id>0ADNc7ab807cc1d4299acbfcb58254019008e1a7d949708dcd67d95ce3066f6c44141558601923</Id>
								<InvoiceNumber>233</InvoiceNumber>
								<InvoiceCurrencyAmount
									CurrencySign="D" CurrencyExponent="2"
									CurrencyCode="888">67</InvoiceCurrencyAmount>
								<InvoiceDate>2020-03-08</InvoiceDate>
								<PONumber>123</PONumber>
							</ns2:globalInvoiceAddendumResponse>
						</ns2:globalInvoiceAddendaResponse>
					</ns2:globalInvoiceResponse>
				</ns2:addendaDataResponse>
			</ns2:purchaseControlAddendaResponse>
		</ns2:addendaOperationResponse>
	</soapenv:Body>
</soapenv:Envelope>
```

