orderItemsGetAmendmentByIdWithHttpInfo method
Get an amendment
Gets one amendment of an order item. Returns the same fields as the amendment list. An unknown amendment, or one that belongs to another item or partner, returns 404 with code 10004.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> orderItemsGetAmendmentByIdWithHttpInfo(String id, String amendmentId, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/order-items/{id}/amendments/{amendmentId}'
.replaceAll('{id}', id)
.replaceAll('{amendmentId}', amendmentId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
abortTrigger: abortTrigger,
);
}