For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add or Edit a Party

Meant to add a new customer or supplier, or edit an existing one, in a single call. It takes exactly the same request as Create or Update a Party.

Known issue – this endpoint does not save anything. Every request is answered with Status: false and nothing is created or changed. Use Create or Update a Party (SaveParty) instead: it already adds a new party, or edits the customer or supplier that has the party code you send.

Endpoint

Name
Detail

Address

https://your-server/api/AddOrEditParty

Method

POST

Authorization

Basic Auth

The response and the common messages are explained in How Every API Call Works.

Request fields

The same fields as Create or Update a Party – Account_Name, Account_Type, User_Code, Cust_Sup_Details and so on. Because the request is never processed, none of them is checked or used.

Rules Logic ERP applies

  • The request is read and then refused before any party is looked up, validated or saved. The fields you send make no difference.

  • Nothing is recorded against the request, so request_ID is empty and the request cannot be traced by support.

  • Differences from SaveParty: both endpoints take the same request, but only SaveParty saves. SaveParty creates a party, or edits an existing customer or supplier found by its party code (or, without a code, by its name and city) – everything this endpoint was meant to do. See that page for how a party is matched and what an edit changes.

Example request

The same request as for SaveParty, for example:

Response

Field
Type
Meaning

Status

true / false

Always false.

Message

text

Why the request was refused – see below.

LastSavedCode

number

Always 0.

request_ID

text

Always empty.

Example response

Messages you may see

Message
Meaning
What to do

Unable to found License for Product : (usually), or another licence message

Logic ERP finds no licence for this endpoint, so it refuses the request.

Use SaveParty.

A message starting Unable to found Method_Name :

Seen on API sites where the licence check is skipped: Logic ERP has no save routine for this endpoint.

Use SaveParty.