e-invoice-api
Version:
The official TypeScript library for the e-invoice API
22 lines • 1.03 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../core/resource.mjs";
export class Lookup extends 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 });
}
}
//# sourceMappingURL=lookup.mjs.map