---
agentTools:
  projectIndex: https://troops.readme.io/llms.txt
---

# Get UC invoice details

Invoice details

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Introduction",
    "version": "1.0.0",
    "description": "The Troops Integration API is organized around\n[REST](https://en.wikipedia.org/wiki/Representational_state_transfer). It\nallows you to query and manipulate the following resources within your TEA\ntree:\n\n- Candidates and their related assets.\n- TEAs\n- Certain references:\n  - Business sectors\n  - Countries\n  - Jobs\n- Paychecks\n- Evolia syncing\n"
  },
  "paths": {
    "/api/integrations/invoices/{invoiceId}": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "description": "Invoice details",
        "operationId": "Get UC invoice details",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "description": "Invoice Identifier",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            },
            "example": "2dbd70c0-3b3b-47ee-a82a-3e591f9203c6"
          }
        ],
        "responses": {
          "200": {
            "description": "Returned in case request was handled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/UUID"
                    },
                    "uc_title": {
                      "type": "string",
                      "example": "Larent Costa SARL"
                    },
                    "external_ref": {
                      "nullable": true,
                      "type": "string",
                      "example": "AB2022090001",
                      "description": "A unique external reference for the invoice"
                    },
                    "started_on": {
                      "$ref": "#/components/schemas/TimestampNullable"
                    },
                    "ended_on": {
                      "$ref": "#/components/schemas/TimestampNullable"
                    },
                    "net_pay": {
                      "type": "number",
                      "nullable": true,
                      "example": 174.1,
                      "description": "Net amount billed to the UC"
                    },
                    "gross_pay": {
                      "type": "number",
                      "nullable": true,
                      "example": 200,
                      "description": "Total amount to be paid, including VAT"
                    },
                    "currency": {
                      "type": "string",
                      "nullable": true,
                      "example": "EUR",
                      "description": "Three-letter ISO code of the currency used"
                    },
                    "file": {
                      "allOf": [
                        {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string",
                              "nullable": true,
                              "example": "http://www.pdf995.com/samples/pdf.pdf",
                              "description": "URL of file located on external secure storage"
                            }
                          }
                        },
                        {
                          "$ref": "#/components/schemas/DscFileResponse"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "summary": "Get UC invoice details"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "The entire API is authenticated, so to use it you will require an API\nkey. To acquire one, please send a request to your account manager at\nTroops or to help@troops.fr.\n\nWhen making requests, you need to specify the API key using the Bearer\nscheme in the Authorization header, e.g. `Authorization: Bearer\nthis-is-my-secret-token`.\n\nYour API keys carry many privileges, so be sure to keep them secure! Do\nnot share your secret API keys in publicly accessible areas such as\nGitHub, client-side code, and so forth.\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP\nwill fail. API requests without authentication will also fail.\n"
      }
    },
    "schemas": {
      "UUID": {
        "type": "string",
        "format": "uuid",
        "description": "UUID",
        "example": "123e4567-e89b-12d3-a456-426655440000"
      },
      "Timestamp": {
        "type": "integer",
        "description": "timestamp",
        "example": 1558202400
      },
      "DscFileResponse": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUID"
          },
          "filename": {
            "type": "string",
            "example": "invoice-1.pdf"
          },
          "dsc_metadata": {
            "type": "object",
            "properties": {
              "id_dsc": {
                "$ref": "#/components/schemas/UUID"
              },
              "id_upi_uploader": {
                "$ref": "#/components/schemas/UUID"
              },
              "created_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "client_side_identifier": {
                "type": "string",
                "nullable": true,
                "example": "C1296BB6-50AC-4097-9C3E-1016476CC3C9"
              },
              "client_side_hash_function": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "md5",
                  "crc",
                  "sha256"
                ]
              },
              "client_side_fingerprint": {
                "type": "string",
                "nullable": true,
                "example": "66b1132a0173910b01ee3a15ef4e69583bbf2f7f1e4462c99efbe1b9ab5bf808"
              },
              "size": {
                "type": "integer",
                "example": 1024
              },
              "etag": {
                "type": "string",
                "example": "d41d8cd98f00b204e9800998ecf8427e"
              },
              "server_side_fingerprints": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "hash_function": {
                      "type": "string",
                      "enum": [
                        "md5",
                        "crc",
                        "sha256"
                      ]
                    },
                    "fingerprint": {
                      "type": "string",
                      "nullable": true,
                      "example": "66b1132a0173910b01ee3a15ef4e69583bbf2f7f1e4462c99efbe1b9ab5bf808"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "TimestampNullable": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Timestamp"
          },
          {
            "type": "integer",
            "nullable": true
          }
        ]
      }
    },
    "responses": {
      "NotFound": {
        "description": "Returned in case the requested item can not be found"
      },
      "BadRequest": {
        "description": "Returned in case the request contained invalid parameters"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api-staging.troops.fr",
      "description": "PreProduction (Staging) server"
    },
    {
      "url": "https://api.troops.fr",
      "description": "Production server"
    },
    {
      "url": "https://api-dev.troops.online",
      "description": "Development server"
    },
    {
      "url": "https://api-{envID}.troops.online",
      "description": "Development server (Dynamic feature env)",
      "variables": {
        "envID": {
          "default": "dev",
          "description": "dev, r-********, 1202004111967626"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 184,
      "2": 241,
      "3": 90,
      "4": 97,
      "5": 249,
      "6": 184,
      "7": 0,
      "8": 76,
      "9": 125,
      "10": 22,
      "11": 209
    }
  }
}
```