Skip to main content

CRM / ERP Integration

Your CRM/ERP is the source of truth for the sale, parties, commission split, and deed (escrituração). Play2sell PAY issues the boleto, custodies funds, and distributes commissions. The two systems stay in sync via webhooks + write-backs.

How the flow works

1

The CRM/ERP creates the contract

The CRM/ERP registers the sale and sends value, beneficiaries, number of installments and due dates.
2

Play2sell issues the boleto

Play2sell PAY originates the sale and emits a BOLEPIX boleto per installment to the consumer.
3

Play2sell returns the boleto to the CRM/ERP

The issued boleto (digitable line) is written back to the reservation in your CRM/ERP.
4

Consumer pays → Play2sell informs the CRM/ERP

On payment confirmation, Play2sell writes the paid status back to your CRM/ERP.
5

The CRM/ERP registers the deed → release

When the sale is deeded, the commission is released and split to beneficiaries.
6

Play2sell distributes

Proportional split + payout (PIX/TED) to each beneficiary; rescission refunds the consumer.

Setup (per tenant)

1

Configure credentials

Add your CRM/ERP credentials (domain, email, token) under Integrations → CRM/ERP. They are stored per tenant and never shared.
2

Map statuses to actions

Configure the status map so Play2sell knows which CRM/ERP status means sold, deeded, or rescinded. This varies per CRM/ERP instance, so it must be set explicitly.
ActionMeaningDrives
SoldReservation soldSale origination + boleto
DeededDeed registeredCommission release + split
RescindedContract undoneRefund to consumer
3

Enable the CRM/ERP webhooks

Point the Reservation (sold/cancelled), Deed/Status, and Rescission webhooks at your Play2sell webhook endpoint.

How sync works

CRM/ERP webhooks are typically thin (they carry only an identifier). Play2sell classifies the event by status, enqueues it, and pulls the full record back from the CRM/ERP API before acting — so a forged webhook cannot inject data.
PropertyBehavior
IdempotencyEach contract maps to a stable key derived from the CRM/ERP reservation id; re-delivery never duplicates a sale.
OrderingIf a deed event arrives before origination completes, it is deferred and retried automatically.
IdentityBuyers and beneficiaries are resolved by CPF/CNPJ (document), never by email.
Write-backsBoleto created and boleto paid are delivered to the CRM/ERP with retry until acknowledged.

Error contract

Non-2xx responses follow { code, message, hint? }. A 4xx is a rejection (e.g., misconfiguration — fix and retry); a 5xx is a transient error (retried automatically).
Need help mapping statuses for your CRM/ERP instance? Contact support with your domain and the list of statuses you use for sold / deeded / rescinded.