Jump to content

Accounting Department

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation

0 Neutral
  1. Just, I would like to indicate it came out that I do not need such an endpoint at the moment, so this issue can be closed on my part. Thanks, Tamas
  2. Hi, What is the API endpoint for the " VAT Payment" transaction type in Sage Cloud Accounting? thanks, Tamas
  3. Hi Mark, First of all, thank you very much for the internal ticket. I agree with you that it would always be a one-to-many relationship between invoice lines and ledger entries. You are correct in correcting my previous statement, which was inaccurate and confusing regarding the relationships between ledger entry lines and the original documents (such as purchase and sales invoices) and their lines. Let me try again, and please don't hesitate to correct me if I'm still wrong somewhere: We are discussing the relationship between two API endpoints for a specific transaction type, which can be a purchase invoice, a sales invoice, or any other type (let's abstract from the others for now). For simplicity, I will refer to one endpoint as GL (General Ledger) and the corresponding origin endpoint as INV (Invoice). An INV has a total that has a one-to-one relationship with the corresponding GL. No INV line ID can be assigned to the GL because it represents the total. On the other hand, an INV line has an ID, and most frequently, it has a one-to-many relationship with the corresponding GL -s. For example, an INV line with a standard VAT creates at least one GL for the expense account and another GL for the VAT account. I know you understood my point earlier (again, thanks for that), but let me repeat for the sake of others: I am interested in connecting the GL-s with their origins and using that to control the necessary API calls by restricting them with the "updated_or_created_since" filter. Taking your example with 100 expense, 20 tax, and 120 control accounts, if there were a retrospective correction to, let's say, only 5 expense accounts, then we would be able to refresh with API calls only for those 5 instead of the whole. In summary, the GL -s can either have an INV line ID or not, depending on whether they correspond to an INV total or an INV line. The absence of an INV line ID in the GL would indicate the GL-INV connection at the total (header) level, while the presence of an INV line ID, along with the "ledger_account" in the GL, would properly connect the GL with the relevant part of the INV. Kind regards, Tamas
  4. Hi Mark, I appreciate your prompt answer. Thank you for confirming that ".. the API’s do not expose invoice_lines other than in the invoice_lines array of the artefact." I think, we can agree that a ledger entry having its unique {key} identifier should correspond to one and only one artefact's line {key} identifier. And, this is perfectly working on the DB level. Is it possible/viable for the future to change the ledger_entries endpoint to include also the artefact's line {key} identifier (besides the already included transaction {key} and origin {key} identifiers)? I think this would be beneficial for both: the Sage and the customers sides as well. The customers could build custom-made applications that would make much fewer API calls having this unambiguous connection between the ledger entries and the artefacts' lines which then could promote the use of the updated_or_created_since filter at the endpoints. Thanks and regards, Tamas (Becsak, Tamas)
  5. In general, there is a need to achieve the purpose described in the title. Could you please help me with how I can achieve this purpose on the specific example of a purchase invoice line? On the one hand, I have a get query for the https://api.accounting.sage.com/v3.1/ledger_entries/{key}?nested_attributes=all endpoint and, on the other, hand I have a get query for the https://api.accounting.sage.com/v3.1/purchase_invoices/{key}?nested_attributes=all endpoint I can establish a connection between the above two endpoints for a single invoice, if in the second query, the {key} parameter equals the "origin"-s "id" {key} parameter of the first query's result. In the second one, I have several "invoice_lines" that are identified with unique id-s like "id": {key}. Now I would like to establish a one-to-one connection between the first query and the proper invoice line of the second query. I was looking for something like the origin's line id parameter in the first query but unfortunately, I could not find such. Could you please advise how can I achieve an unambiguous one-to-one match?
×
×
  • Create New...