Reports
Contribution Settlement Receipt (RLC)

Contribution Settlement Receipt (RLC)

Returns as a PDF the Contribution Settlement Receipt (RLC) of a contribution account code for a settlement type and a range of periods. It is the document the RED System issues after each month's settlement.

Parameters

  • regimen (integer) : Scheme, 4 digits. Possible values:
  • ccc (integer) : Contribution account code, 11 digits.
  • liquidType (string) : Settlement type. Possible values:
    • L00: Normal
    • L02: Supplementary for interim salaries (normal)
    • L03: Supplementary for retroactive salary payments
    • L13: Paid holidays not taken
    • L90: Supplementary for increase in bases
    • L91: Supplementary for new workers and/or brackets
    • L92: Supplementary for interim salaries, ex officio
    • L93: Supplementary for paid holidays not taken, ex officio
    • C00: Ordinary for non-agreed salaries
    • C02: Supplementary for non-agreed interim salaries
    • C03: Supplementary for non-agreed retroactive salaries
    • C13: Supplementary for non-agreed paid holidays
    • C90: Supplementary for non-agreed increase in bases
    • C91: Supplementary for non-agreed new workers and/or brackets
    • V03: Supplementary for retroactive salary payments of L13
    • V90: Supplementary for increase in bases of L13
  • startDate (date) : First settlement period, format YYYY-MM-DD. Only the month and year are used.
  • endDate (date) : Last settlement period, format YYYY-MM-DD. Only the month and year are used.
  • controlDate (date) : Control date, format YYYY-MM-DD. Optional; only applies to L03 settlements, which require a control month and year. Defaults to endDate when omitted. Only the month and year are used.
  • numAutorizado (string) : RED authorised user number to query with. Optional; only needed when the certificate has several authorised users. When omitted, each one is tried until the one the contribution account code is assigned to is found.
GET /report-rlc
{
  "regimen": "0111",
  "ccc": "12345678901",
  "liquidType": "L00",
  "startDate": "2023-01-01",
  "endDate": "2023-03-01"
}

For an L03 settlement, adding the control date:

GET /report-rlc (L03)
{
  "regimen": "0111",
  "ccc": "12345678901",
  "liquidType": "L03",
  "startDate": "2023-01-01",
  "endDate": "2023-03-01",
  "controlDate": "2023-04-01"
}

Response

Respuesta
{
  "success": true,
  "message": "OK",
  "data": {
    "file": {
      "contentType": "application/pdf",
      "name": "document.pdf",
      "content": "base64"
    }
  }
}

The request will take longer to respond. If the period range has no receipt for that settlement type, the request returns success: false with the RED System's message.