Skip to content

Vendor Onboarding Serializer

Description

Handles the onboarding of vendors, including their company details, bank details, and shop information.

Fields

Field Description Required
email Email of the vendor (from user account). No
company_name Name of the vendor's company. Yes
telephone Contact telephone number. Yes
company_created_at Date when the company was established. Yes
company_address Address of the company. Yes
certificate_image Uploaded business certificate image (URL). No
pan_vat_certificate_image Uploaded PAN/VAT certificate image (URL). No
on_boarding_status Status of vendor onboarding. Read-only
shop Associated shop details. Read-only
bank_details Vendor’s bank details. Read-only
created_at Timestamp when the record was created. Read-only
updated_at Timestamp of the last modification. Read-only

Validation

  • Ensures company_created_at is not in the future.
  • Prevents duplicate bank details (same account_name and account_number).

Image URL Handling

The serializer dynamically generates absolute URLs for certificate_image and pan_vat_certificate_image if they exist.