/** * The Selling Partner API for Invoices. * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes. * * The version of the OpenAPI document: 2024-06-19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import { ApiClient } from '../ApiClient.js'; import { ExportInvoicesRequest } from '../model/ExportInvoicesRequest.js'; import { ExportInvoicesResponse } from '../model/ExportInvoicesResponse.js'; import { GetInvoiceResponse } from '../model/GetInvoiceResponse.js'; import { GetInvoicesAttributesResponse } from '../model/GetInvoicesAttributesResponse.js'; import { GetInvoicesDocumentResponse } from '../model/GetInvoicesDocumentResponse.js'; import { GetInvoicesExportResponse } from '../model/GetInvoicesExportResponse.js'; import { GetInvoicesExportsResponse } from '../model/GetInvoicesExportsResponse.js'; import { GetInvoicesResponse } from '../model/GetInvoicesResponse.js'; import { GovernmentInvoiceRequest } from '../model/GovernmentInvoiceRequest.js'; import { GovernmentInvoiceStatusResponse } from '../model/GovernmentInvoiceStatusResponse.js'; import { GovtInvoiceDocumentResponse } from '../model/GovtInvoiceDocumentResponse.js'; /** * Invoices service. * @module invoices_v2024_06_19/api/InvoicesApi * @version 2024-06-19 */ export declare class InvoicesApi { #private; apiClient: any; /** * Constructs a new InvoicesApi. * @alias module:invoices_v2024_06_19/api/InvoicesApi * @class * @param {ApiClient} [apiClient] Optional API client implementation to use, * default to {@link ApiClient#instance} if unspecified. */ constructor(apiClient?: ApiClient); /** * Initialize rate limiters for API operations */ initializeDefaultRateLimiterMap(): void; /** * Get rate limiter for a specific operation * @param {String} operation name */ getRateLimiter(operation: string): any; /** * Submit an asynchronous request to create a government invoice. * @param {GovernmentInvoiceRequest} body Information required to create the government invoice. * @return {Promise} */ createGovernmentInvoiceWithHttpInfo(body: GovernmentInvoiceRequest): Promise; /** * Submit an asynchronous request to create a government invoice. * @param {GovernmentInvoiceRequest} body Information required to create the government invoice. * @return {Promise} */ createGovernmentInvoice(body: GovernmentInvoiceRequest): Promise; /** * Creates an invoice export request. * @param {ExportInvoicesRequest} body Information required to create the export request. * @return {Promise} */ createInvoicesExportWithHttpInfo(body: ExportInvoicesRequest): Promise; /** * Creates an invoice export request. * @param {ExportInvoicesRequest} body Information required to create the export request. * @return {Promise} */ createInvoicesExport(body: ExportInvoicesRequest): Promise; /** * Retrieve the URL of an invoice document. * @param {String} marketplaceId The marketplace of the invoice. * @param {String} transactionType The marketplace-specific classification of the transaction type that originated the invoice. Check `transactionType` options using the `getInvoicesAttributes` operation. * @param {String} shipmentId The unique shipment identifier for which to get an invoice. * @param {String} invoiceType The marketplace-specific classification of the invoice type. Check `invoiceType` options using the `getInvoicesAttributes` operation. * @param {Object} [opts] Optional parameters * @param {String} [opts.inboundPlanId] The unique inbound plan identifier in which the shipment is contained and for which the invoice will be created. * @param {String} [opts.fileFormat] The file format of the invoice. The default is XML. * @return {Promise} */ getGovernmentInvoiceDocumentWithHttpInfo(marketplaceId: string, transactionType: string, shipmentId: string, invoiceType: string, opts?: { inboundPlanId?: string; fileFormat?: string; }): Promise; /** * Retrieve the URL of an invoice document. * @param {String} marketplaceId The marketplace of the invoice. * @param {String} transactionType The marketplace-specific classification of the transaction type that originated the invoice. Check `transactionType` options using the `getInvoicesAttributes` operation. * @param {String} shipmentId The unique shipment identifier for which to get an invoice. * @param {String} invoiceType The marketplace-specific classification of the invoice type. Check `invoiceType` options using the `getInvoicesAttributes` operation. * @param {Object} [opts] Optional parameters * @param {String} [opts.inboundPlanId] The unique inbound plan identifier in which the shipment is contained and for which the invoice will be created. * @param {String} [opts.fileFormat] The file format of the invoice. The default is XML. * @return {Promise} */ getGovernmentInvoiceDocument(marketplaceId: string, transactionType: string, shipmentId: string, invoiceType: string, opts?: { inboundPlanId?: string; fileFormat?: string; }): Promise; /** * Retrieve the status of an invoice generation request. * @param {String} marketplaceId The marketplace of the invoice request. * @param {String} transactionType The marketplace-specific classification of the transaction type that originated the invoice. Check `transactionType` options using the `getInvoicesAttributes` operation. * @param {String} shipmentId The unique shipment identifier for which to get an invoice. * @param {String} invoiceType The marketplace-specific classification of the invoice type. Check `invoiceType` options using the `getInvoicesAttributes` operation. * @param {Object} [opts] Optional parameters * @param {String} [opts.inboundPlanId] The unique inbound plan identifier in which the shipment is contained and for which the invoice will be created. * @return {Promise} */ getGovernmentInvoiceStatusWithHttpInfo(marketplaceId: string, transactionType: string, shipmentId: string, invoiceType: string, opts?: { inboundPlanId?: string; }): Promise; /** * Retrieve the status of an invoice generation request. * @param {String} marketplaceId The marketplace of the invoice request. * @param {String} transactionType The marketplace-specific classification of the transaction type that originated the invoice. Check `transactionType` options using the `getInvoicesAttributes` operation. * @param {String} shipmentId The unique shipment identifier for which to get an invoice. * @param {String} invoiceType The marketplace-specific classification of the invoice type. Check `invoiceType` options using the `getInvoicesAttributes` operation. * @param {Object} [opts] Optional parameters * @param {String} [opts.inboundPlanId] The unique inbound plan identifier in which the shipment is contained and for which the invoice will be created. * @return {Promise} */ getGovernmentInvoiceStatus(marketplaceId: string, transactionType: string, shipmentId: string, invoiceType: string, opts?: { inboundPlanId?: string; }): Promise; /** * Returns invoice data for the specified invoice. This operation returns only a subset of the invoices data; refer to the response definition to get all the possible attributes. To get the full invoice, use the `createInvoicesExport` operation to start an export request. * @param {String} marketplaceId The marketplace from which you want the invoice. * @param {String} invoiceId The invoice identifier. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoiceWithHttpInfo(marketplaceId: string, invoiceId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns invoice data for the specified invoice. This operation returns only a subset of the invoices data; refer to the response definition to get all the possible attributes. To get the full invoice, use the `createInvoicesExport` operation to start an export request. * @param {String} marketplaceId The marketplace from which you want the invoice. * @param {String} invoiceId The invoice identifier. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoice(marketplaceId: string, invoiceId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns invoice details for the invoices that match the filters that you specify. * @param {String} marketplaceId The response includes only the invoices that match the specified marketplace. * @param {Object} [opts] Optional parameters * @param {String} [opts.transactionIdentifierName] The name of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the `transactionIdentifierId` field.Use the `getInvoicesAttributes` operation to check `transactionIdentifierName` options. * @param {Number} [opts.pageSize] The maximum number of invoices you want to return in a single call. Minimum: 1 Maximum: 200 * @param {Date} [opts.dateEnd] The latest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is the current date-time. * @param {String} [opts.transactionType] The marketplace-specific classification of the transaction type for which the invoice was created. Use the `getInvoicesAttributes` operation to check `transactionType` options. * @param {String} [opts.transactionIdentifierId] The ID of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the `transactionIdentifierName` field. * @param {Date} [opts.dateStart] The earliest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 24 hours prior to the time of the request. * @param {String} [opts.series] Return invoices with the specified series number. * @param {String} [opts.nextToken] The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages. * @param {String} [opts.sortOrder] Sort the invoices in the response in ascending or descending order. * @param {String} [opts.invoiceType] The marketplace-specific classification of the invoice type. Use the `getInvoicesAttributes` operation to check `invoiceType` options. * @param {String[]} [opts.statuses] A list of statuses that you can use to filter invoices. Use the `getInvoicesAttributes` operation to check invoice status options. Min count: 1 * @param {String} [opts.externalInvoiceId] Return invoices that match this external ID. This is typically the Government Invoice ID. * @param {String} [opts.sortBy] The attribute by which you want to sort the invoices in the response. * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesWithHttpInfo(marketplaceId: string, opts?: { transactionIdentifierName?: string; pageSize?: number; dateEnd?: Date; transactionType?: string; transactionIdentifierId?: string; dateStart?: Date; series?: string; nextToken?: string; sortOrder?: string; invoiceType?: string; statuses?: string[]; externalInvoiceId?: string; sortBy?: string; warehouseCode?: string; }): Promise; /** * Returns invoice details for the invoices that match the filters that you specify. * @param {String} marketplaceId The response includes only the invoices that match the specified marketplace. * @param {Object} [opts] Optional parameters * @param {String} [opts.transactionIdentifierName] The name of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the `transactionIdentifierId` field.Use the `getInvoicesAttributes` operation to check `transactionIdentifierName` options. * @param {Number} [opts.pageSize] The maximum number of invoices you want to return in a single call. Minimum: 1 Maximum: 200 * @param {Date} [opts.dateEnd] The latest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is the current date-time. * @param {String} [opts.transactionType] The marketplace-specific classification of the transaction type for which the invoice was created. Use the `getInvoicesAttributes` operation to check `transactionType` options. * @param {String} [opts.transactionIdentifierId] The ID of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the `transactionIdentifierName` field. * @param {Date} [opts.dateStart] The earliest invoice creation date for invoices that you want to include in the response. Dates are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 24 hours prior to the time of the request. * @param {String} [opts.series] Return invoices with the specified series number. * @param {String} [opts.nextToken] The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages. * @param {String} [opts.sortOrder] Sort the invoices in the response in ascending or descending order. * @param {String} [opts.invoiceType] The marketplace-specific classification of the invoice type. Use the `getInvoicesAttributes` operation to check `invoiceType` options. * @param {String[]} [opts.statuses] A list of statuses that you can use to filter invoices. Use the `getInvoicesAttributes` operation to check invoice status options. Min count: 1 * @param {String} [opts.externalInvoiceId] Return invoices that match this external ID. This is typically the Government Invoice ID. * @param {String} [opts.sortBy] The attribute by which you want to sort the invoices in the response. * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoices(marketplaceId: string, opts?: { transactionIdentifierName?: string; pageSize?: number; dateEnd?: Date; transactionType?: string; transactionIdentifierId?: string; dateStart?: Date; series?: string; nextToken?: string; sortOrder?: string; invoiceType?: string; statuses?: string[]; externalInvoiceId?: string; sortBy?: string; warehouseCode?: string; }): Promise; /** * Returns marketplace-dependent schemas and their respective set of possible values. * @param {String} marketplaceId The marketplace identifier. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesAttributesWithHttpInfo(marketplaceId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns marketplace-dependent schemas and their respective set of possible values. * @param {String} marketplaceId The marketplace identifier. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesAttributes(marketplaceId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns the invoice document's ID and URL. Use the URL to download the ZIP file, which contains the invoices from the corresponding `createInvoicesExport` request. * @param {String} invoicesDocumentId The export document identifier. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesDocumentWithHttpInfo(invoicesDocumentId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns the invoice document's ID and URL. Use the URL to download the ZIP file, which contains the invoices from the corresponding `createInvoicesExport` request. * @param {String} invoicesDocumentId The export document identifier. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesDocument(invoicesDocumentId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns invoice export details (including the `exportDocumentId`, if available) for the export that you specify. * @param {String} exportId The unique identifier for the export. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesExportWithHttpInfo(exportId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns invoice export details (including the `exportDocumentId`, if available) for the export that you specify. * @param {String} exportId The unique identifier for the export. * @param {Object} [opts] Optional parameters * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesExport(exportId: string, opts?: { warehouseCode?: string; }): Promise; /** * Returns invoice exports details for exports that match the filters that you specify. * @param {String} marketplaceId The returned exports match the specified marketplace. * @param {Object} [opts] Optional parameters * @param {Date} [opts.dateStart] The earliest export creation date and time for exports that you want to include in the response. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 30 days ago. * @param {String} [opts.nextToken] The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages. * @param {Number} [opts.pageSize] The maximum number of invoices to return in a single call. Minimum: 1 Maximum: 100 * @param {Date} [opts.dateEnd] The latest export creation date and time for exports that you want to include in the response. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default value is the time of the request. * @param {String} [opts.status] Return exports matching the status specified. * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesExportsWithHttpInfo(marketplaceId: string, opts?: { dateStart?: Date; nextToken?: string; pageSize?: number; dateEnd?: Date; status?: string; warehouseCode?: string; }): Promise; /** * Returns invoice exports details for exports that match the filters that you specify. * @param {String} marketplaceId The returned exports match the specified marketplace. * @param {Object} [opts] Optional parameters * @param {Date} [opts.dateStart] The earliest export creation date and time for exports that you want to include in the response. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default is 30 days ago. * @param {String} [opts.nextToken] The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages. * @param {Number} [opts.pageSize] The maximum number of invoices to return in a single call. Minimum: 1 Maximum: 100 * @param {Date} [opts.dateEnd] The latest export creation date and time for exports that you want to include in the response. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The default value is the time of the request. * @param {String} [opts.status] Return exports matching the status specified. * @param {String} [opts.warehouseCode] The Warehouse code included in the invoice issued on behalf of the vendor. Check the warehouse code under your WarehouseSettings in VendorCentral. * @return {Promise} */ getInvoicesExports(marketplaceId: string, opts?: { dateStart?: Date; nextToken?: string; pageSize?: number; dateEnd?: Date; status?: string; warehouseCode?: string; }): Promise; } //# sourceMappingURL=InvoicesApi.d.ts.map