Changes the due date on an invoice.

Allows changing the due date of an invoice to a later date.

You may only postpone an invoice once.

PATH:

/v1/clients/{clientId}/invoices/{invoiceNumber}/postpone

PATH PARAMETERS:

clientId
required

integer

Your assigned clientId.

invoiceNumber
required

string

The invoice number.

HYPERMEDIA CONTROL

AVAILABLE IN:

REQUEST BODY SCHEMA:

newDueDate

string date

New due date to be set for the invoice.

RESPONSES:

200 Returned when the invoice is postponed successfully.
400 Returned when the request is malformed.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

401 Returned when the request has a missing or invalid "Authorization" header.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

403 Returned when the requester is lacking permissions.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

404 Returned when the invoice is not found.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

422 Returned when the request could not be processed.

RESPONSE SCHEMA:

type

string

no description in swagger file

title

string

no description in swagger file

status

integer int32

no description in swagger file

detail

string

no description in swagger file

instance

string

no description in swagger file

500 Returned when some internal error happens.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

Path

put

/v1/clients/{clientId}/invoices/{invoiceNumber}/postpone

Request samples

  • {
    • "newDueDate": "string"
  • }

Response samples

400401403404422500
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "title": "string",
    • "status": 1,
    • "detail": "string",
    • "instance": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }