payment_terms

Adds a Payment Term to the system

post/api/v1/payment_terms

Request

Query parameters

includestring
Example:first_load

Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes

Headers

X-API-TOKENstring required
Example:TOKEN

The API token to be used for authentication

X-Requested-Withstring required
Example:XMLHttpRequest

Used to send the XMLHttpRequest header

Request body

num_daysinteger

The payment term length in days

namestring

The payment term length in string format

created_atnumber

Timestamp

updated_atnumber

Timestamp

archived_atnumber

Timestamp

Example request

{
  "num_days": 1,
  "name": "NET 1",
  "created_at": 134341234234,
  "updated_at": 134341234234,
  "archived_at": 134341234234
}

Response

Returns the saved Payment object

num_daysinteger

The payment term length in days

namestring

The payment term length in string format

created_atnumber

Timestamp

updated_atnumber

Timestamp

archived_atnumber

Timestamp

Example response

{
  "num_days": 1,
  "name": "NET 1",
  "created_at": 134341234234,
  "updated_at": 134341234234,
  "archived_at": 134341234234
}

Changes

    • breaking

      the request's body type changed from no type to object

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      the request's body type changed from object to no type

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      the response's body type changed from object to no type for status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status