We are creating order objects like this sample:
{"createdDate":"2021-04-28T00:00:00+00:00","tranDate":"2021-04-28UTC00:00:000","total":2289.91,"entity":{"id":"1354"},"salesRep":{"id":"1008"},"item":{"items":[{"rate":299.99,"amount":599.98,"quantity":2,"item":{"id":"250"}},{"rate":29.99,"amount":89.97,"quantity":3,"item":{"id":"252"}},{"rate":399.99,"amount":1599.96,"quantity":4,"item":{"id":"126"}}]}}
And getting a success response:
{"is_error": false,"status": 204,"result": {"status": 204,"response_header": "HTTP/1.1 204 No Content\r\nX-N-OperationId: 97ac8128-ace2-4f7b-a718-383bd0b24344\r\nNS_RTIMER_COMPOSITE: 1823631409:706172746E6572733034372E70726F642E7376616C652E6E65746C65646765722E636F6D:80\r\nStrict-Transport-Security: max-age=31536000\r\nPragma: No-Cache\r\nCache-Control: No-Cache\r\nExpires: 0\r\nX-NetSuite-JobId: 73e3a7e3-5857-4bd2-91b9-1ba5ff548fb4\r\nLocation: https://tstdrv2303782.suitetalk.api.netsuite.com/services/rest/record/v1/salesorder/13412\r\nP3P: CP=\"CAO PSAa OUR BUS PUR\"\r\nVary: User-Agent\r\nDate: Fri, 04 Jun 2021 06:19:08 GMT\r\nConnection: keep-alive\r\nSet-Cookie: NS_ROUTING_VERSION=LAGGING; path=/\r\nAkamai-GRN: 0.df523617.1622787474.d042811e\r\n\r\n","return_response": null,"return_id": "13412"}}
But when we try to read the created object (via the return_id) we get an error:
Array([0] => Array(
[type] => https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1
[title] => Internal Server Error
[status] => 500
[o:errorDetails] => Array (
[0] => Array ( [detail] => An unexpected error occurred. Error ID: kphxt6wu11wamqtdpgu04
[o:errorCode] => UNEXPECTED_ERROR ) ) ))
Anyone have any suggestions?
@Erick Dela Rosa-Oracle ? ?
thanks!
Ari