B2B feature. Learn more
addPurchaseOrderComment mutation
The addPurchaseOrderComment
mutation adds a comment to the specified purchase order. The response contains details about the comment.
Syntax
Copied to your clipboardmutation {addPurchaseOrderComment(input: AddPurchaseOrderCommentInput!) {AddPurchaseOrderCommentOutput}}
Reference
The addPurchaseOrderComment
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example adds a comment to the purchase order.
Request:
Copied to your clipboardmutation {addPurchaseOrderComment(input: {purchase_order_uid: "MQ==",comment: "Looks good to me"},) {comment {uidauthor {firstnamelastname}text}}}
Response:
Copied to your clipboard{"data": {"addPurchaseOrderComment": {"comment": {"uid": "Mw==","author": {"firstname": "John","lastname": "Doe","email": "john.doe@example.com"},"text": "Looks good to me."}}}}