title: TypeError: addProductPaymentResponse() missing 1 required positional argument: 'paymentForOrderID'
body: <p>I want to restrict post request if similar str(number) in <code>paymentForOrderID</code> is already exists in <code>ProductPayment</code> model,</p>
  <p><code>#model.py</code></p>
  <pre><code>class ProductPayment(models.Model):
      user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, editable=False,verbose_name=&quot;Payment Made By&quot;,)
      paymentForOrderID = models.CharField(max_length=200, null=True, blank=True, verbose_name=&quot;Payment For Order ID&quot;)
      paymentMethodUsed = models.CharField(max_length=200, null=True, blank=True,editable=False, verbose_name=&quot;Method Used&quot;)
      aproxTimeAndDateOfPayment = models.CharField(max_length=200, null=True, blank=True,editable=False, verbose_name=&quot;Approx Date/Time Of Payment&quot;)
      totalAmountPaid = models.CharField(max_length=200, null=True, blank=True,editable=False, verbose_name=&quot;Amount Paid&quot;)
      paymentDetails = models.TextField(null=True, blank=True,editable=False,verbose_name=&quot;Details&quot;)
      createdAt = models.DateTimeField(auto_now_add=True)
      _id = models.AutoField(primary_key=True, editable=False, verbose_name=&quot;Entry ID&quot;)
  
      def __str__(self):
          return str(self.createdAt)
  </code></pre>
  <p>I'm trying this way.... <code>#views.py</code></p>
  <pre><code>@api_view(['POST'])
  @permission_classes([IsAuthenticated])
  def addProductPaymentResponse(request, paymentForOrderID):
      user = request.user
      data = request.data
      response_list = ProductPayment.objects.all()
  
      alreadyExists = response_list.objects.filter(paymentForOrderID=paymentForOrderID).exists()
      
      if alreadyExists:
          content = {'detail': 'Sorry Response has already been recieved'}
          return Response(content, status=status.HTTP_400_BAD_REQUEST)
      else:
          product = ProductPayment.objects.create(
                  user=user,
                  paymentForOrderID=data['paymentForOrderID'],
                  paymentMethodUsed=data['paymentMethodUsed'],
                  aproxTimeAndDateOfPayment=data['aproxTimeAndDateOfPayment'],
                  totalAmountPaid=data['totalAmountPaid'],
                  paymentDetails=data['paymentDetails'],
              )
          return Response('Payment Response added')
  </code></pre>
  <p>On hitting <code>post</code> action from frontend I get this error</p>
  <pre><code>TypeError: addProductPaymentResponse() missing 1 required positional argument: 'paymentForOrderID'
  [22/Jul/2021 18:13:01] &quot;POST /api/payments/product-payment-add-response/ HTTP/1.1&quot; 500 102170
  </code></pre>
  <p>So kindly highlight where is the mistake and how can I fix that</p>