PaymentTermImportBatch

POST https://api.medius.com/{{tenantName}}/integration/masterdata/v1/paymenttermimportbatches

Request Body

{"0"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];N30", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>0, "endOfMonth"=>false, "numberOfDays"=>30, "numberOfMonths"=>0}], "companyId"=>"company[TC1]", "paymentTermId"=>"N30", "name"=>"Net 30 days", "description"=>"Net 30 days"}, "1"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];7daydisc", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>2, "endOfMonth"=>false, "numberOfDays"=>7, "numberOfMonths"=>0}, {"cashDiscountPercentage"=>1, "endOfMonth"=>false, "numberOfDays"=>14, "numberOfMonths"=>0}, {"cashDiscountPercentage"=>0, "endOfMonth"=>false, "numberOfDays"=>30, "numberOfMonths"=>0}], "companyId"=>"company[TC1]", "paymentTermId"=>"7daydisc", "name"=>"7 days 2%, 14 days 1%, 30 days net", "description"=>"7 days 2%, 14 days 1%, 30 days net", "startDate"=>{"type"=>"InvoiceDate", "numberOfMonths"=>0}}, "2"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];scenario1", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>0, "endOfMonth"=>false, "fixedPaymentDay"=>13, "numberOfDays"=>0, "numberOfMonths"=>1}], "companyId"=>"company[TC1]", "paymentTermId"=>"scenario1", "name"=>"scenario1", "description"=>"scenario1"}, "3"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];scenario2", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>0, "endOfMonth"=>true, "numberOfDays"=>5, "numberOfMonths"=>1}], "companyId"=>"company[TC1]", "paymentTermId"=>"scenario2", "name"=>"scenario2", "description"=>"scenario2"}, "4"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];scenario3", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>0, "endOfMonth"=>false, "fixedPaymentDay"=>31, "numberOfDays"=>0, "numberOfMonths"=>1}], "companyId"=>"company[TC1]", "paymentTermId"=>"scenario3", "name"=>"scenario3", "description"=>"scenario3"}, "5"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];scenario4", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>0, "endOfMonth"=>false, "fixedPaymentDay"=>16, "numberOfDays"=>0, "numberOfMonths"=>0}], "companyId"=>"company[TC1]", "paymentTermId"=>"scenario4", "name"=>"scenario4", "description"=>"scenario4"}, "6"=>{"erpSourceId"=>"MyERP", "externalSystemId"=>"company[TC1];scenario5", "isActive"=>true, "lines"=>[{"cashDiscountPercentage"=>0, "endOfMonth"=>false, "numberOfDays"=>-3, "numberOfMonths"=>0}], "companyId"=>"company[TC1]", "paymentTermId"=>"scenario5", "name"=>"scenario5", "description"=>"scenario5"}}