POST
/cpro/transverses/v1/ajouter/fichierUpload 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 REQUIREDThis 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_TOKENYou 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
| Parameter | Required | Description |
|---|---|---|
pieceJointeExtension Type: string | Required | File extension (e.g., pdf, jpg). |
pieceJointeFichier Type: string | Required | Base64-encoded file content. |
pieceJointeNom Type: string | Required | File name. |
pieceJointeTypeMime Type: string | Required | MIME type (e.g., application/pdf). |
Example Request Body
{
"pieceJointeExtension": "pdf",
"pieceJointeFichier": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8P...",
"pieceJointeNom": "facture.pdf",
"pieceJointeTypeMime": "application/pdf"
}Responses
Loading...
Loading code panel...
Loading...