GET /v1/conversations/{id}/charges/context
const url = 'https://seu-endereco-da-api/v1/conversations/example/charges/context';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://seu-endereco-da-api/v1/conversations/example/charges/context \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Ler conversas (conversations:read) e Emitir e cancelar cobranças pelo Asaas (charges:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Responses
Seção intitulada “Responses”object
Whether the 24h service window of the conversation is open
object
Anything but null or approved blocks Asaas charges with asaas_account_in_analysis
object
Whether the contact already has a CPF or CNPJ on file
Most recent open deal of the contact
object
Products of the deal, usable as order items
object
object
Null for a manual charge
Methods the charge offers, in the order they are sent
Payment link: the Asaas invoice page, or the link typed for a manual charge
Pix copy and paste code
Boleto digitable line
Order items, only for a charge sent as order details
object
object
Asaas page with the proof of payment, known once the payment is confirmed
When the charge stops accepting payment
When the money became available in the Asaas account
How many times the payment message was sent again to the customer
Example
{ "asaas": { "environment": "sandbox", "accountStatus": "analysis" }, "defaultProvider": "asaas", "pixReceiver": { "keyType": "CPF" }, "openCharge": { "provider": "asaas", "status": "creating", "environment": "sandbox", "methods": [ "pix" ] }}Conversation not found