Testing cycle 1 : PO Craetion Facing error: Error ...
# ask-stanley-ai
y
Testing cycle 1 : PO Craetion Facing error: Error message: { "type": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2", "title": "Unauthorized", "status": 401, "o:errorDetails": [ { "detail": "Invalid login attempt.", "o:errorCode": "INVALID_LOGIN_ATTEMPT" } ] } Url used for PO creation: https://9540558-sb1.app.netsuite.com/services/rest/record/v1/purchaseorder Payload: {"custbody_aljomaih_autorox_po_id":96919,"item":{"items":[{"item":{"id":3288},"quantity":1,"rate":100}]},"prevDate":"2024-12-31","customForm":"136","shipDate":"2024-12-31","subsidiary":"3","subtotal":115,"currency":1,"custbody_aljomaih_total_po":1,"location":"13","tranDate":"2024-12-31","custbody_aljomaih_autorox_tran_id":"65656-STOR000018","entity":"11"}
c
AI generated answer (using internal Slack threads):
The error message you're encountering indicates an "Invalid login attempt." This typically means that the credentials you're using to authenticate your request are incorrect. In the first thread, the user was trying to transform a Purchase Order to an Item Receipt using the REST API. They were encountering a "Bad Request" error because they were trying to use the line id as the key while creating the item receipt, which is not allowed. The correct way to do this is to use the 'orderLine' field for transform operations. In the second thread, the user was trying to patch data to the customer endpoint and was encountering a "401 Unauthorized" error. This could be due to incorrect credentials or the user not having the necessary permissions to perform the operation. Please double-check your credentials and ensure that you have the necessary permissions to perform the operation you're trying to execute. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858863354
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852573633
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852091789
Please provide your feedback on this answer.