# API Achats avancés : endpoints et champs

> API Achats avancés d’IRPEA : ressource /api/v1/sourcing_records, méthodes GET, 87 champs, filtres, tri et pagination, clé d’API par dossier.

Adresse : https://www.irpea.com/aide-erp/api/achats-avances
Mis à jour : 2026-11-25
Site : IRPEA ERP (https://www.irpea.com)

**En bref** : L’API Achats avancés d’IRPEA expose la ressource /api/v1/sourcing_records en GET, avec 87 champs documentés, filtrables et triables, sous une clé d’API porteuse limitée au dossier, pour lire ces données depuis un autre logiciel du groupe « Inventaire & Stock », réponses paginées par 50 éléments (200 au plus).

## À quoi sert la ressource « Achats avancés » ?

Lecture seule par l’API publique (les gardes métier de l’ERP ne sont pas rejouées par une clé d’API) — Achats avancés : consultations fournisseurs RFI, RFQ, RFP (lots, lignes, prix de référence, critères pondérés, invités, enchère inverse, attribution, commandes générées), offres des fournisseurs scellées jusqu’à l’ouverture des plis puis ouvertes (écrites par /api/achats/sourcing et le lien fournisseur seuls), questions et réponses, contrats-cadres et commandes ouvertes (plafonds, prix négociés, remises de volume, indexation, reconductions) — discriminant kind

## Quels endpoints sont disponibles ?

*Méthodes réellement acceptées par la route /api/v1/sourcing_records*

| Méthode | Adresse | Action |
| --- | --- | --- |
| GET | /api/v1/sourcing_records et /{id} | lire (liste paginée ou un élément par identifiant) |

## Quels champs contient la ressource « Achats avancés » ?

*Champs déclarés de /api/v1/sourcing_records (interrogeables en filtre et en tri)*

| Champ | Type et description |
| --- | --- |
| id | string |
| tenantId | string |
| kind | rfq/bid/question/framework |
| legalEntityId | string (société acheteuse, périmètre société) |
| version | number |
| createdAt | string |
| updatedAt | string |
| createdBy | string |
| number | string (rfq, framework) |
| type | rfi/rfq/rfp (rfq) · accord_cadre/commande_ouverte (framework) |
| title | string (rfq, framework) |
| description | string (rfq) |
| category | string (rfq, framework) |
| status | string (rfq : brouillon/publiee/ouverte/a_valider/attribuee/cloturee/annulee · bid : invite/consultee/deposee/declinee/retiree/ouverte/ecartee · framework : brouillon/actif/suspendu/expire/resilie) |
| buyerId | string (rfq, framework) |
| purchaseRequestIds | string[] (rfq) |
| currency | string (rfq, framework) |
| fxRates | object (rfq : devise → cours en euros) |
| lots | SourcingLot[] (rfq : code, titre, lignes avec quantité, unité, spécifications, prix de référence, date de livraison) |
| criteria | SourcingCriterion[] (rfq : clé, libellé, poids, mode auto/manuel) |
| invitations | SourcingInvitation[] (rfq : fournisseur, e-mail, offre, envoi) |
| publishedAt | string (rfq) |
| deadline | string (rfq, heure de Paris) |
| questionsDeadline | string (rfq) |
| offerValidityDays | number (rfq) |
| deliveryAddress | string (rfq) |
| incoterm | string (rfq, framework) |
| paymentTermsDays | number (rfq, framework) |
| allowVariants | boolean (rfq) |
| allowPartial | boolean (rfq) |
| includeQualityCost | boolean (rfq) |
| instructions | string (rfq) |
| attachments | SourcingAttachment[] (rfq, framework) |
| auction | SourcingAuction (rfq : enchère inverse) |
| manualScores | object (rfq : offre → critère → note) |
| openedAt | string (rfq, bid) |
| openedBy | string (rfq) |
| openingReport | array (rfq : procès-verbal d’ouverture) |
| award | SourcingAward (rfq : mode, allocations, justification, montant, économies, validation, commandes, notifications) |
| closedAt | string (rfq) |
| cancelledAt | string (rfq) |
| cancelReason | string (rfq) |
| history | array |
| rfqId | string (bid, question) |
| supplierId | string (bid, framework) |
| invitationId | string (bid) |
| email | string (bid) |
| tokenHash | string (bid : empreinte du lien, jamais le lien) |
| portalTokenHash | string (bid : empreinte du lien ouvert depuis le portail fournisseurs, jamais le lien) |
| source | lien/saisie (bid) |
| firstViewedAt | string (bid) |
| lastViewedAt | string (bid) |
| declinedAt | string (bid) |
| declineReason | string (bid) |
| submittedAt | string (bid) |
| sealed | string (bid : pli chiffré, illisible avant ouverture) |
| sealedHash | string (bid : accusé de dépôt) |
| deposits | array (bid) |
| content | SourcingBidContent (bid : devise, lignes chiffrées, port, frais, paiement, validité, délais, pièces) |
| auctionBids | array (bid : montants de l’enchère) |
| excludedReason | string (bid) |
| bidId | string (question) |
| askedAt | string (question) |
| question | string (question) |
| answer | string (question) |
| answeredAt | string (question) |
| answeredBy | string (question) |
| published | boolean (question) |
| startDate | string (framework) |
| endDate | string (framework) |
| signedAt | string (framework) |
| noticeDays | number (framework) |
| autoRenewal | boolean (framework) |
| renewalMonths | number (framework) |
| maxRenewals | number (framework) |
| renewals | array (framework) |
| ceilingAmountHT | number (framework) |
| minAmountHT | number (framework) |
| ceilingQty | number (framework) |
| items | FrameworkItem[] (framework : article, prix négocié, quantités, paliers de remise) |
| rebateTiers | array (framework : ristourne par paliers) |
| indexation | FrameworkIndexation (framework : indice, base, part fixe, valeurs) |
| alertPcts | number[] (framework) |
| alertDaysBeforeEnd | number (framework) |
| sourceRfqId | string (framework) |
| contractId | string (framework) |
| notes | string (framework) |

## Comment filtrer, trier et paginer ?

Exemple de lecture filtrée et triée : GET /api/v1/sourcing_records?filter[kind]=…&sort=legalEntityId:desc&limit=50.

Le filtre est une égalité stricte sur un champ déclaré, le tri s’écrit champ:asc ou champ:desc, la page contient 50 éléments par défaut et 200 au plus, un champ inconnu renvoie une erreur 400 plutôt qu’un résultat faux.

## Quelles autorisations faut-il ?

- Une offre qui inclut l’API publique : Enterprise.
- Une clé d’API créée dans Système › Intégrations, envoyée dans l’en-tête Authorization: Bearer, limitée au dossier qui l’a émise.
- Une portée accordée à la clé pour cette ressource : lecture.

## Questions fréquentes

### Comment lire « Achats avancés » par API ?

Envoyez GET /api/v1/sourcing_records avec la clé d’API en en-tête Authorization: Bearer, la réponse contient les données, le total et les liens de pagination.

### Peut-on créer ou modifier « Achats avancés » par API ?

Non, cette ressource est servie en lecture seule par l’API publique.

### L’API est-elle incluse dans l’essai gratuit ?

La démo gratuite de 30 jours ouvre toutes les fonctions, l’API comprise, sur des données d’exemple.

## L’API

- [Documentation de l’API REST](https://www.irpea.com/aide-erp/api)
- [Ressources du groupe Inventaire & Stock](https://www.irpea.com/aide-erp/api/ressources-inventaire-stock)
- [Intégrations et API](https://www.irpea.com/fonctionnalites/integrations)
- [Tarifs de l’ERP](https://www.irpea.com/tarifs)

Page mise à jour le 2026-11-25.
