Credits/Overpayments/Prepayments dates differ depending on how individual invoice is requested from API #266
Labels
Status: Completed
Describe solution, include code snippets, link, indicate version #
Type: API not Specification
This issue can not be solved via the specifications
Type: Bug - Confirmed
It seems that when using the Invoices endpoint the applied credit/overpayments/credits date returned via JSON and XML is different based on how the an individual invoice is requested.
A direct invoice request returns the "allocation" date as the invoice date whereas other type of querystring request (which is what the https://github.com/XeroAPI/xero-php-oauth2 uses as it's uri request type) returns the date the "creditnote / prepayment or overpayment was originally created not allocated.
Is this on purpose for any reason?
For example:
https://api.xero.com/api.xro/2.0/invoices/4766401f-5957-4a0e-9e55-54b79bc543bb
results in the "allocations" being returned with each date being the same as the invoice date
however https://api.xero.com/api.xro/2.0/Invoices?IDs=4766401f-5957-4a0e-9e55-54b79bc543bb returns the "allocations" with their original creation date.
The text was updated successfully, but these errors were encountered: