Skip to content
Media Uploads

Create a Media Uploadexperimental

POST/api/media-uploads

This endpoint allows you to upload a file to Centrapay.

Request body

  • filerequired string
    A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the multipart/form-data protocol.
  • purposerequired enum
    The purpose of the Media Upload.

    Each valid purpose has specific file format and size requirements.

    • bank-account-verification
      Evidence of ownership of a Bank Account, used to request a Bank Account Approval.

      Supported MIME Types: JPEG, PNG

      Max Size: 5MB

    • business-onboarding
      A file used to onboard Businesses so that they can accept payments.

      Supported MIME Types: CSV

      Max Size: 50MB

Responses

Request
curl -X POST https://service.centrapay.com/api/media-uploads \
-H 'content-type: multipart/form-data' \
-H 'x-api-key: <TOKEN>' \
-F purpose=branding-logo \
-F file=@/path/to/a/file.png