POST
/
register
/
registrations
/
{registrationId}
/
files
curl --request POST \
  --url https://thirdparty-sandbox.staging.qonto.co/register/registrations/{registrationId}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'Qonto-Partner-Id: <api-key>' \
  --header 'X-Qonto-Staging-Token: <api-key>' \
  --form file_type=organization-deposit-certificate \
  --form stakeholder_id=a3818b4d-4240-4098-bae4-87124b5add31
{
  "registration_file": {
    "id": "d7344200-97d7-44b7-8fc5-9e5fb2f8831b",
    "filename": "document.pdf",
    "filesize_bytes": 981723,
    "url": "https://example-s3-url",
    "created_at": "2021-08-17T12:31:32.689Z",
    "file_type": "organization-deposit-certificate",
    "stakeholder_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authorization header: Bearer <token>. To get your <token>, please sign up to the Developer Portal.

Qonto-Partner-Id
string
header
required

API Key authorization header: Qonto-Partner-Id: <partner_id>. To get your <partner_id> please, sign up to the Developer Portal.

X-Qonto-Staging-Token
string
header
required

Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.

Path Parameters

registrationId
string
required

id of the Registration resource

Body

multipart/form-data
You have to specify [multipart form data](https://swagger.io/docs/specification/describing-request-body/file-upload/#multipart) in order to attach the file to the request.

The body is of type object.

Response

201
application/json
Returns the file created.

The response is of type object.