Skip to content

type error when trying to update paidOn on the invoice #1

@slano

Description

@slano

Hi, I'm using php client billduapp/api-client to communicate with billdu API and I've encountered the following issue with updating padinOn on the invoice document.

Based on the information from the documentation updating paidOn on the invoice document should automatically create a payment.

However, when I try to to send a PATCH request to the endpoint exactly as in the API documentation example I receive 500 error:

{"error":500,"message":"Doctrine\\DBAL\\Types\\ConversionException:Could not convert PHP value '2015-10-06T00:00:00+0200' of type 'string' to type 'datetime'. Expected one of the following types: null, DateTime"}

$apiClient->documents->update($id, ['paidOn' => '2015-10-06T00:00:00+0200']);

Any help appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions