Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [4.14.0] 2026-03-04
### Added
- Add `facturapi.comercioExteriorCatalogs.searchTariffFractions` method for Fracción Arancelaria SAT catalog

## [4.13.1] 2026-02-11

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import * as enums from './enums';
import { createWrapper, WrapperClient } from './wrapper';
import { DEFAULT_API_VERSION } from './constants';
import CartaPorteCatalogs from './tools/cartaPorteCatalogs';
import ComercioExteriorCatalogs from './tools/comercioExteriorCatalogs';

export * from './enums';
export * from './types';
Expand Down Expand Up @@ -38,6 +39,7 @@ export default class Facturapi {
organizations: Organizations;
catalogs: Catalogs;
cartaPorteCatalogs: CartaPorteCatalogs;
comercioExteriorCatalogs: ComercioExteriorCatalogs;
receipts: Receipts;
retentions: Retentions;
tools: Tools;
Expand Down Expand Up @@ -118,6 +120,7 @@ export default class Facturapi {
this.organizations = new Organizations(this._wrapper);
this.catalogs = new Catalogs(this._wrapper);
this.cartaPorteCatalogs = new CartaPorteCatalogs(this._wrapper);
this.comercioExteriorCatalogs = new ComercioExteriorCatalogs(this._wrapper);
this.receipts = new Receipts(this._wrapper);
this.retentions = new Retentions(this._wrapper);
this.tools = new Tools(this._wrapper);
Expand Down
20 changes: 20 additions & 0 deletions src/tools/comercioExteriorCatalogs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { WrapperClient } from '../wrapper';

export default class ComercioExteriorCatalogs {
client: WrapperClient;

constructor(client: WrapperClient) {
this.client = client;
}

/**
* Search tariff fractions for Comercio Exterior
* @param {Object} params - Search parameters (q, page, limit)
* @returns {Promise}
*/
searchTariffFractions(params: { q: string; page?: number; limit?: number }) {
return this.client.get('/catalogs/comercioexterior/2.0/tariff-fractions', {
params,
});
}
}