e-invoice-api
Version:
The official TypeScript library for the e-invoice API
26 lines • 1.16 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Lookup = void 0;
const resource_1 = require("../core/resource.js");
class Lookup extends resource_1.APIResource {
/**
* Lookup Peppol ID. The peppol_id must be in the form of `<scheme>:<id>`. The
* scheme is a 4-digit code representing the identifier scheme, and the id is the
* actual identifier value. For example, for a Belgian company it is
* `0208:0123456789` (where 0208 is the scheme for Belgian enterprises, followed by
* the 10 digits of the official BTW / KBO number).
*/
retrieve(query, options) {
return this._client.get('/api/lookup', { query, ...options });
}
/**
* Lookup Peppol participants by name or other identifiers. You can limit the
* search to a specific country by providing the country code.
*/
retrieveParticipants(query, options) {
return this._client.get('/api/lookup/participants', { query, ...options });
}
}
exports.Lookup = Lookup;
//# sourceMappingURL=lookup.js.map
;