openapi: 3.2.0 info: description: Cataloguing API. version: API V title: Cataloguing Invoice Controller API termsOfService: Terms of service contact: name: Mani Bhushan url: www.geniemode.com email: mani.kumar@geniemode.com license: name: License of API url: API license URL servers: - url: https://portal.geniemode.com tags: - name: invoice-controller description: Invoice Controller paths: /api/v1/path/invoice: get: tags: - invoice-controller summary: index operationId: indexUsingGET_10 parameters: - name: brandId in: query required: false schema: type: integer format: int64 - name: brandIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: companyIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: companyName in: query required: false schema: type: string - name: endApprovedTs in: query required: false schema: type: integer format: int64 - name: endRaisedOnTimestamp in: query required: false schema: type: integer format: int64 - name: isConsolidated in: query required: false schema: type: boolean - name: leadIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: manufacturerIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: search in: query required: false schema: type: string - name: startApprovedTs in: query required: false schema: type: integer format: int64 - name: startRaisedOnTimestamp in: query required: false schema: type: integer format: int64 - name: status in: query required: false style: form explode: true schema: type: array items: type: string responses: '200': description: OK content: application/json: schema: type: object additionalProperties: type: object '403': description: Forbidden!!!!! '500': description: 500 message post: tags: - invoice-controller summary: create operationId: createUsingPOST_8 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvoiceResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateInvoiceRequestPayload' description: createInvoiceRequestPayload required: true /api/v1/path/invoice/buyer/pos/{invoiceId}: get: tags: - invoice-controller summary: getBuyerPos operationId: getBuyerPosUsingGET parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/OrderDetailBuyerPODocWithOrdersDto' '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/cancel/{invoiceId}: put: tags: - invoice-controller summary: cancel operationId: cancelUsingPUT parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: string /api/v1/path/invoice/consolidated: get: tags: - invoice-controller summary: indexConsolidated operationId: indexConsolidatedUsingGET parameters: - name: brandId in: query required: false schema: type: integer format: int64 - name: brandIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: companyIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: companyName in: query required: false schema: type: string - name: endApprovedTs in: query required: false schema: type: integer format: int64 - name: endRaisedOnTimestamp in: query required: false schema: type: integer format: int64 - name: isConsolidated in: query required: false schema: type: boolean - name: leadIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: manufacturerIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: search in: query required: false schema: type: string - name: startApprovedTs in: query required: false schema: type: integer format: int64 - name: startRaisedOnTimestamp in: query required: false schema: type: integer format: int64 - name: status in: query required: false style: form explode: true schema: type: array items: type: string responses: '200': description: OK content: application/json: schema: type: object additionalProperties: type: object '403': description: Forbidden!!!!! '500': description: 500 message post: tags: - invoice-controller summary: createConsolidatedInvoice operationId: createConsolidatedInvoiceUsingPOST responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConsolidatedInvoiceListingResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateConsolidatedInvoice' description: requestPayload required: true /api/v1/path/invoice/consolidated/finalInvoiceDocs/{id}: get: tags: - invoice-controller summary: getConsolidatedFinalInvoiceDocs operationId: getConsolidatedFinalInvoiceDocsUsingGET parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: object additionalProperties: type: object additionalProperties: type: object '403': description: Forbidden!!!!! '500': description: 500 message post: tags: - invoice-controller summary: updateConsolidatedFinalInvoiceDocs operationId: updateConsolidatedFinalInvoiceDocsUsingPOST parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConsolidatedInvoiceListingResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateFinalInvoiceListDocsRequestPayload' description: payload required: true /api/v1/path/invoice/consolidated/grnDocs/{id}: put: tags: - invoice-controller summary: uploadGrnDocsOnConsolidated operationId: uploadGrnDocsOnConsolidatedUsingPUT parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvoiceResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateInvoiceRequestPayload' description: createInvoiceRequestPayload required: true /api/v1/path/invoice/consolidated/{consolidatedId}/checkForHops: get: tags: - invoice-controller summary: consolidatedInvoiceCheckForHops operationId: consolidatedInvoiceCheckForHopsUsingGET parameters: - name: consolidatedId in: path description: consolidatedId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ShipmentDocTypeResponsePayload' '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/consolidated/{consolidatedId}/hops: put: tags: - invoice-controller summary: editConsolidatedInvoiceHop operationId: editConsolidatedInvoiceHopUsingPUT parameters: - name: consolidatedId in: path description: consolidatedId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/InvoiceShipmentHopRequestPayload' description: invoiceShipmentHopDto required: true /api/v1/path/invoice/consolidated/{id}: get: tags: - invoice-controller summary: getConsolidatedInvoice operationId: getConsolidatedInvoiceUsingGET parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConsolidatedInvoiceListingResponsePayload' '403': description: Forbidden!!!!! '500': description: 500 message put: tags: - invoice-controller summary: updateConsolidatedInvoice operationId: updateConsolidatedInvoiceUsingPUT parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConsolidatedInvoiceListingResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/ConsolidatedInvoiceUpdatePayload' description: requestPayload required: true /api/v1/path/invoice/find-similar-orders-by-shipment: get: tags: - invoice-controller summary: findSimilarOrdersToShipment operationId: findSimilarOrdersToShipmentUsingGET parameters: - name: billToType in: query required: false schema: type: string - name: leadIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: manufacturerIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: search in: query required: false schema: type: string - name: shipmentId in: query required: false schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: object additionalProperties: type: object '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/find-similar-shipments/{shipmentId}/order/{orderId}: get: tags: - invoice-controller summary: findSimilarShipmentToGivenShipmentAndOrder operationId: findSimilarShipmentToGivenShipmentAndOrderUsingGET parameters: - name: orderId in: path description: orderId required: true schema: type: integer format: int64 - name: shipmentId in: path description: shipmentId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/ShipmentInInvoiceResponse' '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/freeze-invoice-numbers/{country}/{count}: put: tags: - invoice-controller summary: freezeInvoiceNumbers operationId: freezeInvoiceNumbersUsingPUT parameters: - name: count in: path description: count required: true schema: type: integer format: int64 - name: country in: path description: country required: true schema: type: string responses: '200': description: OK content: application/json: schema: type: array items: type: string /api/v1/path/invoice/get-buyer-pos: get: tags: - invoice-controller summary: getBuyerPos operationId: getBuyerPosUsingGET_1 parameters: - name: orderIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: search in: query required: false schema: type: string - name: shipmentIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: object additionalProperties: type: object '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/get-order-eligible-shipments/{orderId}: get: tags: - invoice-controller summary: getOrderEligibleShipments operationId: getOrderEligibleShipmentsUsingGET parameters: - name: orderId in: path description: orderId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/ShipmentInInvoiceResponse' '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/get-shipment-invoice-data/{shipmentId}: get: tags: - invoice-controller summary: getShipmentInvoiceData operationId: getShipmentInvoiceDataUsingGET_1 parameters: - name: shipmentId in: path description: shipmentId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ShipmentInInvoiceDto' '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/move-to-pending-state/{invoiceId}: put: tags: - invoice-controller summary: moveToPendingState operationId: moveToPendingStateUsingPUT parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: string /api/v1/path/invoice/orders-eligible-for-invoice: get: tags: - invoice-controller summary: findOrdersEligibleForInvoice operationId: findOrdersEligibleForInvoiceUsingGET_1 parameters: - name: billToType in: query required: false schema: type: string - name: leadIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: manufacturerIds in: query required: false style: form explode: true schema: type: array items: type: integer format: int64 - name: search in: query required: false schema: type: string - name: shipmentId in: query required: false schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: object additionalProperties: type: object '403': description: Forbidden!!!!! '500': description: 500 message /api/v1/path/invoice/refreshAddresses/{invoiceId}: put: tags: - invoice-controller summary: refreshAddresses operationId: refreshAddressesUsingPUT parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: string /api/v1/path/invoice/{finalInvoiceId}/grn: put: tags: - invoice-controller summary: uploadGrn operationId: uploadGrnUsingPUT parameters: - name: finalInvoiceId in: path description: finalInvoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvoiceResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateInvoiceRequestPayload' description: createInvoiceRequestPayload required: true /api/v1/path/invoice/{invoiceId}: get: tags: - invoice-controller summary: get operationId: getUsingGET_3 parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvoiceResponsePayload' '403': description: Forbidden!!!!! '500': description: 500 message put: tags: - invoice-controller summary: update operationId: updateUsingPUT_5 parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvoiceResponsePayload' requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateInvoiceRequestPayload' description: createInvoiceRequestPayload required: true delete: tags: - invoice-controller summary: delete operationId: deleteUsingDELETE_4 parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: type: string /api/v1/path/invoice/{invoiceId}/logistics/details: get: tags: - invoice-controller summary: invoiceLogisticsDetails operationId: invoiceLogisticsDetailsUsingGET_1 parameters: - name: invoiceId in: path description: invoiceId required: true schema: type: integer format: int64 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/InvoiceLogisticsDetailsResponsePayload' '403': description: Forbidden!!!!! '500': description: 500 message components: schemas: InvoiceListingResponsePayload: type: object properties: empty_shipments: type: boolean final_inspection_complete: type: boolean final_invoice: $ref: '#/components/schemas/FinalInvoiceInInvoiceDto' id: type: integer format: int64 incomplete_final_inspection_orders: type: array uniqueItems: true items: type: integer format: int64 invoice_no: type: string invoice_raised_date: type: string format: date-time invoice_response_payload: $ref: '#/components/schemas/InvoiceResponsePayload' invoice_shipments: type: array items: $ref: '#/components/schemas/ShipmentInInvoiceMiniDto' net_margin: type: number pending_days: type: integer format: int64 status: type: string status_change_date: type: integer format: int64 total_invoice_amount: type: number total_invoice_factory_amount: type: number total_invoice_quantity: type: integer format: int64 variant_order_ids: type: array uniqueItems: true items: type: integer format: int64 title: InvoiceListingResponsePayload ShipmentSingleDocTypeResponsePayload: type: object properties: doc_type: type: string mandatory: type: boolean name: type: string title: ShipmentSingleDocTypeResponsePayload LeadGenerationLiteResponse: type: object properties: brand: $ref: '#/components/schemas/BrandResponse' client_id: type: integer format: int64 company: $ref: '#/components/schemas/CompanyDTO' country: type: string country_code: type: string created_at: type: string format: date-time creator_id: type: integer format: int64 email: type: string first_name: type: string id: type: integer format: int64 last_name: type: string lead_projection_list: type: array items: $ref: '#/components/schemas/LeadProjectionMiniDTO' name: type: string phone: type: string title: LeadGenerationLiteResponse ConsolidatedInvoiceListingResponsePayload: type: object properties: ask_buyer_wip_on_order: type: boolean assignee: $ref: '#/components/schemas/UMSUserResponsePayload' assignee_id: type: integer format: int64 brand_response: $ref: '#/components/schemas/BrandResponse' consolidated_invoice_hop: type: array items: $ref: '#/components/schemas/ShipmentHopMiniDto' created_at: type: string format: date-time current_shipment_status: type: string enum: - booked - complete - deliveryDate - paymentFollowup - preplanned - shipped id: type: integer format: int64 invoice_ids: type: array items: type: integer format: int64 invoices: type: array items: $ref: '#/components/schemas/InvoiceListingResponsePayload' is_buy_and_sell_model: type: boolean is_domestic_buyer: type: boolean order_ids: type: array items: type: integer format: int64 shipment_order_ids: type: array items: type: integer format: int64 status: type: string title: ConsolidatedInvoiceListingResponsePayload OrderDetailBuyerPODocWithOrdersDto: type: object properties: buyer_doc: $ref: '#/components/schemas/OrderDocDto' buyer_po_id: type: integer format: int64 buyer_po_no: type: string id: type: integer format: int64 order_ids: type: array uniqueItems: true items: type: integer format: int64 po_type: type: string title: OrderDetailBuyerPODocWithOrdersDto BrandVpDto: type: object properties: id: type: integer format: int64 vp_email: type: string vp_id: type: integer format: int64 vp_name: type: string title: BrandVpDto InvoiceLogisticsDetailsResponsePayload: type: object properties: actual_logistic_cost_details: $ref: '#/components/schemas/InvoiceActualLogisticsDetailsResponsePayload' actual_shipment_mode: type: string planned_logistic_cost_details: type: array items: $ref: '#/components/schemas/InvoiceOrderPlannedLogisticsDetailsResponsePayload' planned_shipment_mode: type: string total_actual_logistics_cost: type: number total_planned_custom_duty: type: number total_planned_logistics_cost: type: number title: InvoiceLogisticsDetailsResponsePayload ConsolidatedInvoiceUpdatePayload: type: object properties: assignee_id: type: integer format: int64 brand_id: type: integer format: int64 invoice_ids: type: array items: type: integer format: int64 logistics_info: type: array items: $ref: '#/components/schemas/LogisticsInvoiceRequestPayload' shipment_hops: type: array items: $ref: '#/components/schemas/InvoiceShipmentHopRequestPayload' status: type: string title: ConsolidatedInvoiceUpdatePayload ManufacturerMiniResponsePayload: type: object properties: billing_address: $ref: '#/components/schemas/AddressSubmitResponsePayload' billing_address_id: type: integer format: int64 gst: type: string id: type: integer format: int64 name: type: string pan: type: string title: ManufacturerMiniResponsePayload OrderDocDto: type: object properties: created_at: type: string format: date-time created_by: type: string doc_no: type: string doc_type: type: string docs: $ref: '#/components/schemas/DocDto' id: type: integer format: int64 is_additional_doc: type: boolean order_id: type: integer format: int64 s3_path: type: string title: OrderDocDto LogisticsInvoiceRequestPayload: type: object properties: bl_doc: type: string carrier_number: type: string carrier_type: type: string clearance_charges: type: number cost_sheet_doc_url: type: string custom_duty: type: number custom_inco_term: type: string factory_invoice_docs: type: array uniqueItems: true items: type: string factory_invoice_no: type: string final_destination: type: string id: type: integer format: int64 invoice_id: type: integer format: int64 local_freight: type: number management_approval_doc_url: type: string packing_list_docs: type: array uniqueItems: true items: type: string pod_docs: type: array uniqueItems: true items: type: string port_of_discharge: type: string port_of_loading: type: string pre_carriage_by: type: string sea_freight: type: number shipping_bill_doc: type: string total_shipping_cost: type: number warehouse: type: string wh_charges: type: number title: LogisticsInvoiceRequestPayload CreateInvoiceBuyerPoRequestPayload: type: object properties: factory_invoices: type: array items: $ref: '#/components/schemas/FactoryInvoiceDto' id: type: integer format: int64 order_buyer_po_id: type: integer format: int64 title: CreateInvoiceBuyerPoRequestPayload InvoiceVariantBuyerPoMappingDto: type: object properties: buyer_currency_price_total: type: number commission_amount_buyer_currency: type: number commission_amount_geniemode_currency: type: number currency_price_total: type: number factory_currency_price_total: type: number geniemode_currency_price_total: type: number id: type: integer format: int64 locked_quantity: type: integer format: int64 order_buyer_po: $ref: '#/components/schemas/OrderBuyerPoBaseDto' quantity: type: integer format: int64 title: InvoiceVariantBuyerPoMappingDto FinalInvoiceInInvoiceDto: type: object properties: comment: type: string discount: $ref: '#/components/schemas/FinalInvoiceDiscountDto' grn_doc_url: type: string grn_status: type: string id: type: integer format: int64 invoice_doc_url: type: string invoice_no: type: string pod_doc_url: type: string raised_on_timestamp: type: integer format: int64 status: type: string total_amount: type: number title: FinalInvoiceInInvoiceDto OrderBuyerPoBaseDto: type: object properties: buyer_po_no: type: string id: type: integer format: int64 title: OrderBuyerPoBaseDto ShipmentInInvoiceMiniDto: type: object properties: buyer_name: type: string ex_factory_date: type: integer format: int64 id: type: integer format: int64 lead_id: type: integer format: int64 manufacturer: $ref: '#/components/schemas/ManufacturerMiniResponsePayload' order_id: type: integer format: int64 title: ShipmentInInvoiceMiniDto InvoiceBuyerPoResponsePayload: type: object properties: factory_invoices: type: array items: $ref: '#/components/schemas/FactoryInvoiceDto' id: type: integer format: int64 order_buyer_po: $ref: '#/components/schemas/OrderBuyerPoDto' title: InvoiceBuyerPoResponsePayload GeniemodeEntityDto: type: object properties: address: type: object address_id: type: integer format: int64 address_list: type: array items: $ref: '#/components/schemas/AddressSubmitResponsePayload' compliance: type: string currency: type: string id: type: integer format: int64 invoice_declaration: type: string label: type: string legal_name: type: string tally_currency: type: string value: type: string title: GeniemodeEntityDto DocDto: type: object properties: doc_display_name: type: string id: type: integer format: int64 s3_path: type: string s3_version: type: integer format: int64 title: DocDto ShipmentDocTypeResponsePayload: type: object properties: booked: type: array uniqueItems: true items: $ref: '#/components/schemas/ShipmentSingleDocTypeResponsePayload' complete: type: array uniqueItems: true items: $ref: '#/components/schemas/ShipmentSingleDocTypeResponsePayload' delivery_date: type: array uniqueItems: true items: $ref: '#/components/schemas/ShipmentSingleDocTypeResponsePayload' is_delivery_date_step_required: type: boolean is_payment_followup_step_required: type: boolean payment_followup: type: array uniqueItems: true items: $ref: '#/components/schemas/ShipmentSingleDocTypeResponsePayload' preplanned: type: array uniqueItems: true items: $ref: '#/components/schemas/ShipmentSingleDocTypeResponsePayload' shipped: type: array uniqueItems: true items: $ref: '#/components/schemas/ShipmentSingleDocTypeResponsePayload' title: ShipmentDocTypeResponsePayload InvoiceShipmentsResponsePayload: type: object properties: id: type: integer format: int64 shipment: $ref: '#/components/schemas/ShipmentInInvoiceDto' title: InvoiceShipmentsResponsePayload BankResponsePayload: type: object properties: account_no: type: string address: type: object address_id: type: integer format: int64 bank_routing_number: type: string beneficiary_address: type: object beneficiary_address_id: type: integer format: int64 beneficiary_name: type: string entity_id: type: string entity_type: type: string iban_aba: type: string id: type: integer format: int64 ifsc: type: string name: type: string sort_code: type: string sub_type: type: string swift: type: string title: BankResponsePayload FactoryInvoiceDto: type: object properties: factory_invoice_no: type: string factory_invoice_url: type: string id: type: integer format: int64 title: FactoryInvoiceDto UMSUserResponsePayload: type: object properties: country_code: type: string created_by: type: string first_name: type: string group_ids: type: array items: type: integer format: int64 id: type: integer format: int64 last_name: type: string manager: $ref: '#/components/schemas/UMSUserResponsePayload' phone_number: type: string roles: type: array items: type: string username: type: string whatsapp_opt_in: type: boolean title: UMSUserResponsePayload CompanyDTO: type: object properties: ask_buyer_wip_on_order: type: boolean company_name: type: string compliances: type: array items: type: string id: type: integer format: int64 min_buy_sell_margin: type: number min_commission_margin: type: number min_trading_margin: type: number title: CompanyDTO InvoiceActualLogisticsDetailsResponsePayload: type: object properties: clearance_charges: type: number cost_sheet_doc_url: type: string custom_duty: type: number local_freight: type: number management_approval_doc_url: type: string sea_freight: type: number total_shipping_cost: type: number wh_charges: type: number title: InvoiceActualLogisticsDetailsResponsePayload BrandCategoryDto: type: object properties: category_id: type: integer format: int64 category_name: type: string id: type: integer format: int64 title: BrandCategoryDto FinalInvoiceDiscountDto: type: object properties: discount_amount: type: number discount_percentage: type: number type: type: string title: FinalInvoiceDiscountDto OrderBuyerPoDto: type: object properties: asset_url: type: string buyer_po_doc: $ref: '#/components/schemas/OrderDocDtoV2' buyer_po_no: type: string doc: $ref: '#/components/schemas/DocDto' id: type: integer format: int64 po_doc_id: type: integer format: int64 po_type: type: string title: OrderBuyerPoDto CreateInvoiceRequestPayload: type: object properties: bill_to_id: type: integer format: int64 bill_to_type: type: string bl_doc: type: string declaration: type: string declaration_addendum: type: string factory_email_doc_url: type: string factory_eway_bill_doc_url: type: string factory_invoice_docs: type: array uniqueItems: true items: type: string grn_doc_url: type: string id: type: integer format: int64 invoice_buyer_pos: type: array items: $ref: '#/components/schemas/CreateInvoiceBuyerPoRequestPayload' logistics_info: $ref: '#/components/schemas/LogisticsInvoiceRequestPayload' packing_list_docs: type: array uniqueItems: true items: type: string pod_doc_url: type: string pod_docs: type: array uniqueItems: true items: type: string ship_to_id: type: integer format: int64 shipments: type: array items: $ref: '#/components/schemas/CreateInvoiceShipmentsRequestPayload' shipping_bill_doc: type: string variant_custom_field_keys: type: array items: type: string variants: type: array items: $ref: '#/components/schemas/InvoiceVariantsDto' title: CreateInvoiceRequestPayload CreateConsolidatedInvoice: type: object properties: assignee_id: type: integer format: int64 brand_id: type: integer format: int64 invoice_ids: type: array items: type: integer format: int64 title: CreateConsolidatedInvoice LeadProjectionMiniDTO: type: object properties: amount: type: integer format: int64 business_size: type: number format: float id: type: integer format: int64 lead_probability: type: integer format: int32 probable_completion_date: type: integer format: int64 title: LeadProjectionMiniDTO InvoiceResponsePayload: type: object properties: allow_conversion_change: type: boolean allow_manual_invoice_no: type: boolean bank: $ref: '#/components/schemas/BankResponsePayload' bill_to_address: type: object bill_to_id: type: integer format: int64 bl_date: type: integer format: int64 bl_doc: type: string bl_number: type: string buyer_type: type: string carrier_number: type: string carrier_type: type: string clearance_charges: type: number cost_sheet_doc_url: type: string created_at: type: string format: date-time current_shipment_status: type: string enum: - booked - complete - deliveryDate - paymentFollowup - preplanned - shipped custom_duty: type: number custom_inco_term: type: string declaration: type: string declaration_addendum: type: string docs: type: object additionalProperties: type: array items: $ref: '#/components/schemas/OrderDocDto' factory_email_doc_url: type: string factory_eway_bill_doc_url: type: string factory_invoice_docs: type: array uniqueItems: true items: type: string factory_invoice_no: type: string factory_invoice_no_remark: type: string final_destination: type: string final_inspection_complete: type: boolean final_invoice: $ref: '#/components/schemas/FinalInvoiceInInvoiceDto' finance_remark: type: string geniemode_entity: $ref: '#/components/schemas/GeniemodeEntityDto' id: type: integer format: int64 invoice_buyer_pos: type: array items: $ref: '#/components/schemas/InvoiceBuyerPoResponsePayload' invoice_no: type: string invoice_raised_date: type: string format: date-time is_system_invoice_final: type: boolean local_freight: type: number management_approval_doc_url: type: string manufacturer_address: type: object manufacturer_address_id: type: integer format: int64 manufacturer_name: type: string master_order_ids: type: array uniqueItems: true items: type: integer format: int64 model_type: type: string next_invoice_no: type: string orders: type: array items: $ref: '#/components/schemas/InvoiceOrdersDto' packing_list_docs: type: array uniqueItems: true items: type: string pod_date: type: integer format: int64 pod_docs: type: array uniqueItems: true items: type: string pod_number: type: string port_of_discharge: type: string port_of_loading: type: string pre_carriage_by: type: string sea_freight: type: number ship_to_address: type: object ship_to_id: type: integer format: int64 shipment_inco_term: type: string shipments: type: array items: $ref: '#/components/schemas/InvoiceShipmentsResponsePayload' shipping_bill_doc: type: string status: type: string status_change_date: type: integer format: int64 total_invoice_amount: type: number total_invoice_factory_amount: type: number total_invoice_quantity: type: integer format: int64 total_shipping_cost: type: number type: type: string variant_custom_field_keys: type: array items: type: string variant_order_ids: type: array uniqueItems: true items: type: integer format: int64 warehouse: type: string wh_charges: type: number title: InvoiceResponsePayload ShipmentDocDto: type: object properties: document_type: type: string document_url: type: string id: type: integer format: int64 title: ShipmentDocDto ShipmentInInvoiceOrderDto: type: object properties: assignee_id: type: integer format: int64 bill_address_id: type: integer format: int64 bill_to_address: type: object buyer_days: type: integer format: int64 buyer_payment_type: type: string buyer_shipment_type: type: string buyer_type: type: string factory_payment_type: type: string geniemode_entity: $ref: '#/components/schemas/GeniemodeEntityDto' id: type: integer format: int64 lead_data: $ref: '#/components/schemas/LeadGenerationLiteResponse' lead_id: type: integer format: int64 manufacturer_days: type: integer format: int64 model_type: type: string sku_data: type: object sku_id: type: string style_code: type: string tolerance_approval_doc: type: string title: ShipmentInInvoiceOrderDto CreateFinalInvoiceListDocsRequestPayload: type: object properties: actual_date: type: integer format: int64 courier_partner_name: type: string doc_list: type: array items: $ref: '#/components/schemas/CreateFinalInvoiceDocsRequestPayload' remark: type: string shipment_mode: type: string stage: type: string tracking_id: type: string title: CreateFinalInvoiceListDocsRequestPayload CreateFinalInvoiceDocsRequestPayload: type: object properties: docs: type: array items: type: string type: type: string title: CreateFinalInvoiceDocsRequestPayload InvoiceOrdersDto: type: object properties: buyer_currency: type: string currency_price: type: number currency_price_total: type: number factory_currency: type: string factory_currency_price: type: number factory_currency_price_total: type: number hsn_code: type: string hts_code: type: string order_id: type: integer format: int64 parent_order_id: type: integer format: int64 quantity: type: integer format: int64 sku: type: string sku_data: type: object style_code: type: string tolerance_approval_doc: type: string uom: type: string title: InvoiceOrdersDto InvoiceShipmentHopRequestPayload: type: object properties: actual_date: type: integer format: int64 actual_shipment_mode: type: string enum: - Air - Courier - Land - Sea bl_date: type: integer format: int64 bl_number: type: string booking_no: type: string by_pass_checks: type: boolean courier_partner_name: type: string eta: type: integer format: int64 etd: type: integer format: int64 factory_invoice_url: type: string invoice_doc_url: type: string invoice_id: type: integer format: int64 packing_list_url: type: string pod_date: type: integer format: int64 pod_number: type: string remark: type: string shipment_docs: type: array items: $ref: '#/components/schemas/ShipmentDocDto' status: type: string enum: - booked - complete - deliveryDate - paymentFollowup - preplanned - shipped tracking_id: type: string vessel: type: string title: InvoiceShipmentHopRequestPayload InvoiceVariantsDto: type: object properties: buyer_currency: type: string color: type: string currency_price: type: number currency_price_total: type: number custom_fields: type: object factory_currency: type: string factory_currency_price: type: number factory_currency_price_total: type: number hsn_code: type: string hts_code: type: string id: type: integer format: int64 order_id: type: integer format: int64 order_variant_quantity: type: integer format: int64 parent_order_id: type: integer format: int64 quantity: type: integer format: int64 size: type: string sku: type: string sku_data: type: object style_code: type: string uom: type: string variant_buyer_po_mappings: type: array items: $ref: '#/components/schemas/InvoiceVariantBuyerPoMappingDto' variant_id: type: integer format: int64 title: InvoiceVariantsDto OrderDocDtoV2: type: object properties: created_by: type: string doc: $ref: '#/components/schemas/DocDto' doc_type: type: string id: type: integer format: int64 title: OrderDocDtoV2 InvoiceOrderPlannedLogisticsDetailsResponsePayload: type: object properties: custom_duty: type: number logistics_cost: type: number order_id: type: integer format: int64 planned_shipment_mode: type: string quantity: type: integer format: int64 title: InvoiceOrderPlannedLogisticsDetailsResponsePayload BrandResponse: type: object properties: address_list: type: array items: $ref: '#/components/schemas/AddressSubmitResponsePayload' ask_buyer_wip_on_order: type: boolean billing_address: $ref: '#/components/schemas/AddressSubmitResponsePayload' brand_name: type: string categories: type: array items: $ref: '#/components/schemas/BrandCategoryDto' compliances: type: array items: type: string created_by: type: string id: type: integer format: int64 legal_address: $ref: '#/components/schemas/AddressSubmitResponsePayload' legal_address_response: type: string legal_name: type: string vp_details: type: array items: $ref: '#/components/schemas/BrandVpDto' vps: type: array items: type: integer format: int64 title: BrandResponse CreateInvoiceShipmentsRequestPayload: type: object properties: id: type: integer format: int64 shipment_id: type: integer format: int64 title: CreateInvoiceShipmentsRequestPayload ShipmentInInvoiceDto: type: object properties: actual_shipment_mode: type: string enum: - Air - Courier - Land - Sea address_id: type: integer format: int64 buyer_currency: type: string current_status: type: string enum: - booked - complete - deliveryDate - paymentFollowup - preplanned - shipped ex_factory_date: type: integer format: int64 id: type: integer format: int64 inco_term: type: string order: $ref: '#/components/schemas/ShipmentInInvoiceOrderDto' planned_shipment_mode: type: string enum: - Air - Courier - Land - Sea ship_to_address: type: object total_shipment_currency_price: type: number total_shipment_factory_currency_price: type: number total_shipment_quantity: type: integer format: int64 variants: type: array items: $ref: '#/components/schemas/InvoiceVariantsDto' title: ShipmentInInvoiceDto ShipmentInInvoiceResponse: type: object properties: actual_shipment_mode: type: string enum: - Air - Courier - Land - Sea address_id: type: integer format: int64 assignee_id: type: integer format: int64 current_status: type: string enum: - booked - complete - deliveryDate - paymentFollowup - preplanned - shipped eligible: type: boolean ex_factory_date: type: integer format: int64 failure_reasons: type: array items: type: string id: type: integer format: int64 planned_shipment_mode: type: string enum: - Air - Courier - Land - Sea ship_to_address: type: object shipment_ready: type: boolean title: ShipmentInInvoiceResponse ShipmentHopMiniDto: type: object properties: actual_date: type: integer format: int64 delay: type: integer format: int64 hide: type: boolean last_modified_at: type: integer format: int64 position: type: integer format: int32 projection_date: type: integer format: int64 remark: type: string status: type: string enum: - booked - complete - deliveryDate - paymentFollowup - preplanned - shipped title: ShipmentHopMiniDto AddressSubmitResponsePayload: type: object properties: address_line1: type: string address_line2: type: string city: type: string contact_person_name: type: string contact_person_number: type: string country: type: string entity_id: type: integer format: int64 entity_type: type: string id: type: integer format: int64 landmark: type: string name: type: string pincode: type: string state: type: string type: type: string title: AddressSubmitResponsePayload