Available for FR legislation only
HTTP Operation Type Object
Query organizationEInvoiceSetupByOrgId

Description

The organizationEInvoiceSetupByOrgId operation allows developers to fetch the e-invoicing setup configured for a specific organization under FR legislation.

It returns the registration and connection details with the Sage Plateforme Agréée (PA): mandate number, company information, authorized user, effective dates, e-reporting options, and subscription identifiers.

This setup is managed in the product under Settings → E-Invoicing and e-reporting.
More info: API resources / 📝eInvoice (🇫🇷)

img

graphQL Query
query ($id: ID!) {
    organizationEInvoiceSetupByOrgId(id: $id) {
        id
        status
        statusConnectionDate
        connectionId
        mandateNumber
        companyInformation
        authorizedUserFirstName
        authorizedUserLastName
        authorizedUserEmail
        authorizedUserJob
        effectiveDate
        salesInvoiceEffectiveDate
        eReportingStartDate
        businessInvoicesToggle
        businessPaymentsToggle
        individualCustomerSalesToggle
        paymentsIndividualCustomersToggle
        subscriptionId
        subscriptionIdConnected
        subscriptionIdUpdated
        subscriptionIdRemoved
        trackId
        creationUserId
        paSirenNumber
        paIdentificationNumber
        softwareBusinessName
        errorCode
        termsAndConditionsAccepted
        termsAndConditionsAcceptedAt
        termsAndConditionsAcceptedInVersion
    }
}
graphQL Variables

{
    "id":"{{X-OrganizationId}}"
}

Example Response
{
    "data": {
        "organizationEInvoiceSetupByOrgId": {
            "id": "f8d80c13-8a03-4ef2-9e80-21719f821fa6",
            "status": "Accepted",
            "statusConnectionDate": "2026-03-19T00:00:00+00:00",
            "connectionId": "93912f59-cd23-4637-bbe8-12130520a720",
            "mandateNumber": "444822936_313966129_20260319_01",
            "companyInformation": "{\"companyName\":\"SAR\",\"city\":\"PARIS 10\",\"country\":\"FRANCE\",\"countryCode\":\"FR\",\"siretSirenNumber\":\"44482293600027\",\"siren\":\"444822936\",\"siret\":\"00027\",\"addressType\":\"fr.sirensiret\",\"postalCode\":\"75010\",\"addressLine1\":\"24 RUE LOUIS\",\"addressLine2\":\" BLANC\",\"vatRegime\":1,\"businessInvoicesToggle\":true,\"businessPaymentsToggle\":true,\"individualCustomerSalesToggle\":true,\"paymentsIndividualCustomersToggle\":true,\"eReportingStartDate\":\"2027-09-01T00:00:00.000Z\"}",
            "authorizedUserFirstName": "Yvon",
            "authorizedUserLastName": "Lapresse",
            "authorizedUserEmail": "einvoiceseller_pl_eurekaqa@sage.mailinator.com",
            "authorizedUserJob": "manager",
            "effectiveDate": "2026-03-20T00:00:00+00:00",
            "salesInvoiceEffectiveDate": "2026-03-20T00:00:00+00:00",
            "eReportingStartDate": "2027-09-01T00:00:00+00:00",
            "businessInvoicesToggle": true,
            "businessPaymentsToggle": true,
            "individualCustomerSalesToggle": true,
            "paymentsIndividualCustomersToggle": true,
            "subscriptionId": "00000000-0000-0000-0000-000000000000",
            "subscriptionIdConnected": "cf90314f-543c-4892-a397-38b90f7fcf0d",
            "subscriptionIdUpdated": "7000967d-be1f-47d0-bcea-d47033a0b23d",
            "subscriptionIdRemoved": null,
            "trackId": "f0a1f5f1-6d6c-4a0f-9d54-2f9a1c7f2b41",
            "creationUserId": "00000000-0000-0000-0000-000000000000",
            "paSirenNumber": "313966129",
            "paIdentificationNumber": "0052",
            "softwareBusinessName": "Sage Active",
            "errorCode": null,
            "termsAndConditionsAccepted": false,
            "termsAndConditionsAcceptedAt": "2026-07-10T07:09:01.547287+00:00",
            "termsAndConditionsAcceptedInVersion": "2026.06.1"
        }
    }
}
Key Value
Authorization Bearer Current access Token How to find?
X-TenantId Current tenant id Why deprecated ?
X-OrganizationId Current organization Id How to find?
x-api-key Primary or secondary subscription key of your app How to find?

organizationEInvoiceSetupByOrgId

Fields Type Description
id UUID Id
status
  • Accepted
  • InProgress
  • Failed
Indicates whether the organization is registered with the Plateforme Agréée (PA)
statusConnectionDate DateTime Date of the connection status
connectionId UUID Connection identifier
mandateNumber String Mandate number issued after registration
companyInformation String Company information as a JSON string
authorizedUserFirstName String First name of the authorized user
authorizedUserLastName String Last name of the authorized user
authorizedUserEmail String Email of the authorized user
authorizedUserJob String Job title of the authorized user
effectiveDate DateTime Effective date of the e-invoicing setup
salesInvoiceEffectiveDate DateTime Effective date for sales invoices
eReportingStartDate DateTime Start date for e-reporting
businessInvoicesToggle Boolean Indicates whether business invoices are enabled
businessPaymentsToggle Boolean Indicates whether business payments are enabled
individualCustomerSalesToggle Boolean Indicates whether sales to individual customers are enabled
paymentsIndividualCustomersToggle Boolean Indicates whether payments from individual customers are enabled
subscriptionId String Subscription identifier
subscriptionIdConnected UUID Connected subscription identifier
subscriptionIdUpdated UUID Updated subscription identifier
subscriptionIdRemoved UUID Removed subscription identifier
trackId String Tracking identifier
creationUserId UUID Identifier of the user who created the setup
paSirenNumber String SIREN number of the Plateforme Agréée (PA)
paIdentificationNumber String Identification number of the Plateforme Agréée (PA)
softwareBusinessName String Business name of the software
errorCode String Error code returned when registration or connection has failed
termsAndConditionsAccepted Boolean Indicates whether the terms and conditions have been accepted
termsAndConditionsAcceptedAt DateTime Date and time when the terms and conditions were accepted
termsAndConditionsAcceptedInVersion String Product / terms version in which the terms and conditions were accepted
Info
  • status
    This field indicates whether the organization is registered with the Sage Plateforme Agréée (PA).
    • Accepted: The organization is registered with the Plateforme Agréée (PA); registration / connection has been accepted.
    • InProgress: Registration / connection with the Plateforme Agréée is in progress.
    • Failed: Registration / connection with the Plateforme Agréée has failed.
    • Unused (France only).
    • Unused (France only).
    • Unused (France only).