POST/cpro/transverses/v1/ajouter/fichier

Upload file

Upload a file to Chorus Pro. The file must be provided as base64-encoded content. Returns a file ID that can be referenced in invoice submissions.

Multiple Authentication Required

ALL REQUIRED

This endpoint requires all of the following authentication methods:

Bearer Token

OAuth2 Bearer token

Custom Header

Chorus Pro account credentials

Required Header

cpro-account: base64(login:password)
How to authenticate

Include your Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

You can obtain your API token from your account dashboard.

How to authenticate

Include the custom header in your request:

cpro-account: base64(login:password)

Body Parameters

ParameterRequiredDescription
pieceJointeExtension
Type: string
RequiredFile extension (e.g., pdf, jpg).
pieceJointeFichier
Type: string
RequiredBase64-encoded file content.
pieceJointeNom
Type: string
RequiredFile name.
pieceJointeTypeMime
Type: string
RequiredMIME type (e.g., application/pdf).

Example Request Body

{
  "pieceJointeExtension": "pdf",
  "pieceJointeFichier": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8P...",
  "pieceJointeNom": "facture.pdf",
  "pieceJointeTypeMime": "application/pdf"
}

Responses

Loading...