If using put_document call for recording sales orders or invoices, now there is a feature that enables verifying the unique customer's order number. Functionality is useful if the backend system does not perform order number validation. The unique order tag is particularly useful for delivery services that require uniqueness.



If case the sent document has a duplicate order number, the response will be received in the following format:


  • opr_code_app = 7
  • opr_desc_app = "Documents with some buyer order already exist"
  • duplicate_doc_list - list of sales orders, which have the same customer's order number


{    "opr_code": "6",    "opr_code_app": "7",    "opr_time_ms": "40840",    "opr_desc_app": "Documents with some buyer order already exist",    "partner": {        "mk_id": "1600129478"    },    "duplicate_doc_list": [        {            "count_code": "PP-26754",            "mk_id": "400000000159"        }    ]
}
JavaScript

Enabling in Additional Settings:



Limitation within the country 


If the "Verification of unique customer's order number" functionality is enabled, the "Limitation within the country" functionality can also be enabled. This will ensure that when creating new documents, the customer's orders will be validated separately for each country.