# `MishkaPay.Ash.Customer.Sync`
[🔗](https://github.com/mishka-group/mishka_pay/blob/v0.0.1/lib/mishka_pay/ash/__customer/sync.ex#L6)

The `:register`, `:sync`, `:edit` and `:remove` actions of the `:customer` kind
(`MishkaPay.Ash.Resource`): asks the provider
before the action's transaction starts, writes the customer as the provider answered it, and
fires `mishka_pay:customer:changed` after. A customer the provider cannot give is an error on
the action, and nothing is written; one the provider deleted, by `:remove` or elsewhere, keeps
its row with `:deleted_at`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
