batchCreateBillingAdjustmentRequest method
Future<BatchCreateBillingAdjustmentRequestOutput>
batchCreateBillingAdjustmentRequest({
- required List<
BatchCreateBillingAdjustmentRequestEntry> billingAdjustmentRequestEntries,
Allows sellers (proposers) to submit billing adjustment requests for one or more invoices within an agreement. Each entry in the batch specifies an invoice and the adjustment amount. The operation returns successfully created adjustment request IDs and any errors for entries that failed to process.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter billingAdjustmentRequestEntries :
A list of billing adjustment request entries. Each entry specifies the
invoice and adjustment details.
Implementation
Future<BatchCreateBillingAdjustmentRequestOutput>
batchCreateBillingAdjustmentRequest({
required List<BatchCreateBillingAdjustmentRequestEntry>
billingAdjustmentRequestEntries,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target':
'AWSMPCommerceService_v20200301.BatchCreateBillingAdjustmentRequest'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'billingAdjustmentRequestEntries': billingAdjustmentRequestEntries,
},
);
return BatchCreateBillingAdjustmentRequestOutput.fromJson(
jsonResponse.body);
}