Document service for cancle/correct Product receipt of purchase order

Any way to create Document service for cancle/correct Product receipt of purchase order.

Can you be more specific ? Do you need outbound or inbound service?

Thanks for reply.

Looking Inbound Document service…