P_enableDeclaredStock
Enables the "Declared Stock" feature.
This action requires a successful "Declared Stock" integration in the Eneba sandbox. Please read the Testing the "Declared Stock" in the Eneba sandbox guide for additional details.
Supported arguments
The mutation does not support arguments.
Return type
The query returns theP_API_EnableDeclaredStockResponse
type.
Example usage
Mutation
The following mutation will check if your integration with Eneba sandbox is completed, and will enable the feature if so.
mutation {
P_enableDeclaredStock {
success
failureReason
}
}
Result
Here we have got the response, it says that we have the "Declared Stock" feature enabled.
{
"data": {
"P_enableDeclaredStock": {
"success": true,
"failureReason": null
}
}
}
P_API_DeclaredStockEnablingFailureEnum
The system might find some errors in your "Declared Stock" integration with Eneba Sandbox, here is an explanation that might help you to debug further:
Failure type | Description |
---|---|
NO_RESERVATION_FOUND | We have not found any triggered callbacks with type DECLARED_STOCK_RESERVATION |
NO_PROVISION_FOUND | We have not found any triggered callbacks with type DECLARED_STOCK_PROVISION |
LAST_RESERVATION_NOT_SUCCESSFUL | We have found that you've triggered DECLARED_STOCK_RESERVATION callback, but the result was not successful |
LAST_PROVISION_NOT_SUCCESSFUL | We have found that you've triggered DECLARED_STOCK_PROVISION callback, but the result was not successful |
You may want to revisit the Testing the "Declared Stock" in the Eneba sandbox guide
and get more details why some callback are failing by querying for
P_declaredStockResult
.