© 2024 Clarivate
PUT /api/.../polineitems/{id}/segments?action=receive
Receive one or more purchase order line item segments.
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the purchase order line item. |
action | String | Yes. Value should be 'receive' | action identifier |
A JSON array of purchase order line item segment identifiers represented as numbers.
Property | Type | Nullable | Description |
---|---|---|---|
POLineItemSegmentID | Integer | No | POLI segment identifier. |
[7,395769]
Returns a result object with how many records are succeeded (RecordsAffected), a success or failure message (Message) and list of JSON objects (Details)
Property | Type | Description |
---|---|---|
ID | Integer | PO line item identifier. |
Succeeded | Boolean | Indicates if the item is received successfully. |
ErrorMessage | String | Description of error |
ErrorCode | Integer | Error code |
AdditionalInfo | String | Segment line number |
{
"RecordsAffected": 2,
"Message": "The purchase order line item segments were received successfully Line 3: There are 1 request(s) for 'Blood of angels : a novel'.
",
"Details": [
{
"Id": 7,
"Succeeded": true,
"ErrorMessage": null,
"ErrorCode": 0,
"AdditionalInfo": "1"
},
{
"Id": 395769,
"Succeeded": true,
"ErrorMessage": null,
"ErrorCode": 0,
"AdditionalInfo": "2"
}
]
}
Code | Description |
---|---|
200 | OK. Success |
400 |
FAILURE.
|
404 |
FAILURE.
|
Permission IDs found here.
CR_AccessAcquisitions_Allow (), CR_PurchaseOrders_Access (based on owner ID), CR_PurchaseOrders_ReleaseReceiveCancelClosePO (based on owner ID)