FR Payslip

The Python SDK supports the Mindee V1 Payslip API.

Product Specifications

Specification
Details

Endpoint Name

payslip_fra

Recommended Version

v3.0

Supports Polling/Webhooks

✔️ Yes

Support Synchronous HTTP Calls

❌ No

Geography

🇫🇷 France

Quick-Start

Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Payslip Sample

Sample Code

Sample Output (rST)

Standard Fields

These fields are generic and used in several products.

BaseField

Each prediction object contains a set of fields that inherit from the generic BaseField class. A typical BaseField object will have the following attributes:

  • value (Union[float, str]): corresponds to the field value. Can be None if no value was extracted.

  • confidence (float): the confidence score of the field prediction.

  • bounding_box ([Point, Point, Point, Point]): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.

  • polygon (List[Point]): contains the relative vertices coordinates (Point) of a polygon containing the field in the image.

  • page_id (int): the ID of the page, always None when at document-level.

  • reconstructed (bool): indicates whether an object was reconstructed (not extracted as the API gave it).

A Point simply refers to a list of two numbers ([float, float]).

Aside from the previous attributes, all basic fields have access to a custom __str__ method that can be used to print their value as a string.

Specific Fields

Fields which are specific to this product; they are not used in any other product.

Bank Account Details Field

Information about the employee's bank account.

A PayslipV3BankAccountDetail implements the following attributes:

  • bank_name (str): The name of the bank.

  • iban (str): The IBAN of the bank account.

  • swift (str): The SWIFT code of the bank. Fields which are specific to this product; they are not used in any other product.

Employee Field

Information about the employee.

A PayslipV3Employee implements the following attributes:

  • address (str): The address of the employee.

  • date_of_birth (str): The date of birth of the employee.

  • first_name (str): The first name of the employee.

  • last_name (str): The last name of the employee.

  • phone_number (str): The phone number of the employee.

  • registration_number (str): The registration number of the employee.

  • social_security_number (str): The social security number of the employee. Fields which are specific to this product; they are not used in any other product.

Employer Field

Information about the employer.

A PayslipV3Employer implements the following attributes:

  • address (str): The address of the employer.

  • company_id (str): The company ID of the employer.

  • company_site (str): The site of the company.

  • naf_code (str): The NAF code of the employer.

  • name (str): The name of the employer.

  • phone_number (str): The phone number of the employer.

  • urssaf_number (str): The URSSAF number of the employer. Fields which are specific to this product; they are not used in any other product.

Employment Field

Information about the employment.

A PayslipV3Employment implements the following attributes:

  • category (str): The category of the employment.

  • coefficient (str): The coefficient of the employment.

  • collective_agreement (str): The collective agreement of the employment.

  • job_title (str): The job title of the employee.

  • position_level (str): The position level of the employment.

  • seniority_date (str): The seniority date of the employment.

  • start_date (str): The start date of the employment. Fields which are specific to this product; they are not used in any other product.

Information about paid time off.

A PayslipV3PaidTimeOff implements the following attributes:

  • accrued (float): The amount of paid time off accrued in the period.

  • period (str): The paid time off period. Possible values include:

    • N

    • N-1

    • N-2

  • pto_type (str): The type of paid time off. Possible values include:

    • VACATION

    • RTT

    • COMPENSATORY

  • remaining (float): The remaining amount of paid time off at the end of the period.

  • used (float): The amount of paid time off used in the period. Fields which are specific to this product; they are not used in any other product.

Pay Detail Field

Detailed information about the pay.

A PayslipV3PayDetail implements the following attributes:

  • gross_salary (float): The gross salary of the employee.

  • gross_salary_ytd (float): The year-to-date gross salary of the employee.

  • income_tax_rate (float): The income tax rate of the employee.

  • income_tax_withheld (float): The income tax withheld from the employee's pay.

  • net_paid (float): The net paid amount of the employee.

  • net_paid_before_tax (float): The net paid amount before tax of the employee.

  • net_taxable (float): The net taxable amount of the employee.

  • net_taxable_ytd (float): The year-to-date net taxable amount of the employee.

  • total_cost_employer (float): The total cost to the employer.

  • total_taxes_and_deductions (float): The total taxes and deductions of the employee. Fields which are specific to this product; they are not used in any other product.

Pay Period Field

Information about the pay period.

A PayslipV3PayPeriod implements the following attributes:

  • end_date (str): The end date of the pay period.

  • month (str): The month of the pay period.

  • payment_date (str): The date of payment for the pay period.

  • start_date (str): The start date of the pay period.

  • year (str): The year of the pay period. Fields which are specific to this product; they are not used in any other product.

Salary Details Field

Detailed information about the earnings.

A PayslipV3SalaryDetail implements the following attributes:

  • amount (float): The amount of the earning.

  • base (float): The base rate value of the earning.

  • description (str): The description of the earnings.

  • number (float): The number of units in the earning.

  • rate (float): The rate of the earning.

Attributes

The following fields are extracted for Payslip V3:

Bank Account Details

bank_account_details (PayslipV3BankAccountDetail): Information about the employee's bank account.

Employee

employee (PayslipV3Employee): Information about the employee.

Employer

employer (PayslipV3Employer): Information about the employer.

Employment

employment (PayslipV3Employment): Information about the employment.

paid_time_off (List[PayslipV3PaidTimeOff]): Information about paid time off.

Pay Detail

pay_detail (PayslipV3PayDetail): Detailed information about the pay.

Pay Period

pay_period (PayslipV3PayPeriod): Information about the pay period.

Salary Details

salary_details (List[PayslipV3SalaryDetail]): Detailed information about the earnings.

Last updated

Was this helpful?