Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtrado por fecha no esta funcionando #7

Open
radolan71 opened this issue Mar 21, 2019 · 0 comments
Open

Filtrado por fecha no esta funcionando #7

radolan71 opened this issue Mar 21, 2019 · 0 comments

Comments

@radolan71
Copy link

radolan71 commented Mar 21, 2019

Al mandar los siguientes parametros, the API breaks

Request

$params =[
    'q' => 'XAXX010101000'
    'date' => [
            'gte' => '2019-03-01'
            'lte' => '2019-03-31'
        ]
];

(new Facturapi($apiKey))->Invoices->all($params);

Response

stdClass Object
(
    [message] => Cast to date failed for value "{}" at path "created_at" for model "Invoice"
    [ok] => 
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant