RejectFulfillmentRequest
Rejects a pending fulfillment request sent to the fulfillment service, optionally including a rejection message.
Input
| Name | Type | Description |
| Id | String | The unique identifier of the fulfillment order associated with the fulfillment request being rejected. |
| Message | String | An optional message providing context or an explanation for rejecting the fulfillment request. |
| Reason | String | Specifies the reason for rejection, such as an incorrect address or an item being out of stock.
The allowed values are INCORRECT_ADDRESS, INELIGIBLE_PRODUCT, INVENTORY_OUT_OF_STOCK, OTHER, UNDELIVERABLE_DESTINATION. |
| LineItems | String | An optional array of line item rejection details. If not provided, all line items are assumed to be unfulfillable. Example: [{fulfillmentOrderLineItemId: 'xxx', message: 'xx'}]. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the fulfillment rejection operation completed successfully. |
| Details | String | Additional information or diagnostic details describing the outcome of the fulfillment rejection process. |
| FulfillmentOrderID | String | The globally unique identifier of the fulfillment order associated with the rejected fulfillment request. |
| RequestStatus | String | The final status of the stored procedure after execution, such as 'completed', 'failed', or 'pending'. |