shareRequisitionListByToken mutation
This mutation is part of the B2B Storefront Compatibility Package and is only available on Adobe Commerce as a Cloud Service.
The shareRequisitionListByToken mutation enables B2B customers to share a requisition list with colleagues within the same company using a shareable link generated on the storefront. The mutation requires requisitionListUid as an input parameter. This mutation returns the token assigned to the shared requisition list.
Syntax
Copied to your clipboard{shareRequisitionListByToken(requisitionListUid: ID!): ShareRequisitionListByTokenOutput}
Example usage
The following example provides a token for a shareable requisition list.
Request:
Copied to your clipboardmutation ShareRequisitionListByToken {shareRequisitionListByToken(requisitionListUid: "OTc5") {token}}
Response:
Copied to your clipboard{"data": {"shareRequisitionListByToken": {"token": "qEJD2aUhmYnf1jNoaOtlo7XwBP8BRof5GhF0L5kbdJxYMZ13OlFvy2VFy33NnUCp"}}}
