Back to Payment

POST Method Details for CreatePayment.

Create payment for contract

Definition

https://app[x].timelog.com/[account name]/api/v{version}/payment

Parameters

  • createModel object
    • Amount number Gets or sets the amount
    • Comment string Gets or sets the comment
    • DiscountPercentage number Gets or sets the discount
    • InvoiceDate string Gets or sets the invoice date
    • IsFixedPricePayment boolean Gets or sets a value indicating whether the payment is fixed price
    • IsReadyForInvoicing boolean Gets or sets a value indicating whether this instance is ready for invoicing
    • Name string Gets or sets the name
    • ProductNumber string Gets or sets the product number
    • ProjectID integer Gets or sets the project ID
    • ProjectSubContractID integer Gets or sets the project sub contract ID
    • Quantity number Gets or sets the quantity
    • TaskID integer Gets or sets the task ID
    • UnitType integer Gets or sets the unit type
    {
      "Amount": 0.0,
      "Comment": "",
      "DiscountPercentage": 0.0,
      "InvoiceDate": "2024-04-16T00:00:00+00:00",
      "IsFixedPricePayment": false,
      "IsReadyForInvoicing": false,
      "Name": "",
      "ProductNumber": "",
      "ProjectID": 0,
      "ProjectSubContractID": 0,
      "Quantity": 0.0,
      "TaskID": 0,
      "UnitType": 0
    }
  • version string The requested API version

Returns

  • [200] Payment was created successfully
  • [401] Invalid authentication token
  • [500] Payment could not be created
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }