Skip to Content
Paycose Docs
Files

Files

The file object

A file is a document or image uploaded with POST /files, such as a payout slip, a logo or a statement for reconciliation. Its purpose sets the upload limits and whether it gets a public link.

Attributes

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • file_namestringRequired

    Original name of the uploaded file.

  • purposeenumRequired

    What the file is for.

    • branding

      A logo or brand image: PNG or JPEG, up to 2 MB, 64 to 4096 pixels on each side. Gets a lasting public link.

    • card_art

      Card artwork: PNG or JPEG, up to 1 MB, 160 to 2048 pixels on each side. Gets a lasting public link.

    • document

      A business document. Stored privately.

    • gdpr

      A data archive exported for a personal-data (GDPR) request. Stored privately.

    • product

      A product image. Gets a lasting public link.

    • profile

      A profile image. Gets a lasting public link.

    • payout_slip

      Proof of a payout transfer: JPEG, PNG, WebP or PDF, up to 3 MB. Stored privately.

    • reconciliation

      A bank or provider statement to reconcile: CSV or plain text, within the 4 MB limit on the whole upload request. Stored privately.

    • verification

      A supporting document for a verification, such as a bank book for a payout bank account. Stored privately.

  • sizeintegerRequired

    Size of the file in bytes.

  • typestring

    MIME type detected from the file's content, for example image/png.

  • urlstringRequiredNullable

    Link to the file. Files with purpose branding, card_art, product or profile have a lasting public link. For other purposes the link is signed when you create, retrieve or list the file and expires shortly after; read it again for a fresh link. Null when no link can be issued, for example when a private file can't be signed.

  • metadataobjectRequired

    Always an empty object for files.