Last active
July 11, 2022 20:36
-
-
Save tomascco/d5c5dfeb9760f6dd0b423a8be3aa8d1c to your computer and use it in GitHub Desktop.
Docgen webhook v 2.0.2.alpha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"document": { | |
"code": "DS-00319", | |
"status": "sent", | |
"created_at": "2022-07-11 16:01:55 -0300", | |
"updated_at": "2022-07-11 16:02:24 -0300", | |
"expiration_date": "2022-07-31", | |
"contract_start": "2022-07-11", | |
"contract_months": 12, | |
"contract_end": "2023-07-11", | |
"parcels_count": 12, | |
"due_day": 1, | |
"contact_name": "Nathalie DOCSALES", | |
"contact_role": "", | |
"contact_email": "nathalie.dias@docsales.com", | |
"deal_id": null, | |
"deal_name": null, | |
"deal_user_id": null, | |
"deal_crm_data": null, | |
"deal_pipeline": null, | |
"sign_initial": true, | |
"custom_municipio_de_prestacao_de_servicos": "Campinas", | |
"custom_meio_de_pagamento": "" | |
}, | |
"account": { | |
"name": "Demo DocSales Basic", | |
"document_number": "15.162.573/0001-99", | |
"address1": "Rua de Alphaville", | |
"address2": "Sala 2020", | |
"postal_code": "031650003", | |
"city": "São Paulo", | |
"state": "SP", | |
"legal_code2": "Docsales Inc.", | |
"phone1": null, | |
"phone2": null, | |
"district": "", | |
"financial_email": "", | |
"currency_iso_code": "BRL", | |
"address_number": "", | |
"country": "BR" | |
}, | |
"document_owner": { | |
"name": "Rodrigo Serradura", | |
"email": "rodrigo.serradura@docsales.com", | |
"phone_number": null, | |
"whatsapp_number": null | |
}, | |
"customer": { | |
"name": "Nathalie Dias", | |
"legal_code": null, | |
"city": "", | |
"state": "", | |
"customer_type": "company", | |
"legal_code2": "", | |
"postal_code": "", | |
"address": "", | |
"number": "", | |
"complement": "", | |
"district": "", | |
"phone1": "", | |
"phone2": "", | |
"contact_name": "Nathalie DOCSALES", | |
"contact_role": "", | |
"contact_email": "nathalie.dias@docsales.com", | |
"external_uuid": null, | |
"whatsapp_number": "", | |
"profession": "", | |
"civil_status": "stable_union", | |
"gender": "not_informed", | |
"nationality": "", | |
"id_crm_customer": "", | |
"DBA": "Nathalie Dias", | |
"custom_cargo": "" | |
}, | |
"payment_method": { | |
"name": "Débito Automático", | |
"uuid_smartbill": null, | |
"status_smartbill": null, | |
"priority": 0, | |
"external_uuid": null, | |
"payment_type": null, | |
"collect_cc_data": false, | |
"credit_card_data": null | |
}, | |
"signers": [ | |
{ | |
"name": "Nathalie DOCSALES", | |
"email": "nathalie.dias@docsales.com", | |
"role": "part", | |
"document_number": null, | |
"ip": null, | |
"status": "waiting", | |
"order_to_sign": 1, | |
"ask_for_credit_card": false, | |
"view_history": null, | |
"signed_at": null, | |
"url_to_sign": "http://localhost:3000/approval/b40a0ad5-46c4-4d12-81f9-9ae9adb3421b?uuid=1854b097-3651-43af-baae-00054ff4f19b" | |
} | |
], | |
"products_services": [ | |
{ | |
"name": "Assinatura Exemplo", | |
"obs": "", | |
"quantity": 1, | |
"code": "2", | |
"custom_moeda": "R$", | |
"custom_moeda_full_options": "R$,USD", | |
"periodicity": "monthly", | |
"unit_value_cents": 19900, | |
"subtotal_value_cents": 19900, | |
"unit_value_cents_with_adjustment": 17910, | |
"total_value_with_adjusment": 17910 | |
}, | |
{ | |
"name": "Produto Exemplo", | |
"obs": "", | |
"quantity": 1, | |
"code": "1", | |
"custom_moeda": "R$", | |
"custom_moeda_full_options": "R$,USD", | |
"periodicity": "once", | |
"unit_value_cents": 50000, | |
"subtotal_value_cents": 50000, | |
"unit_value_cents_with_adjustment": 40000, | |
"total_value_with_adjusment": 40000 | |
} | |
], | |
"parcels": [ | |
{ | |
"total_value_cents": 57910.0, | |
"payment_due_at": "2022-07-11" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2022-08-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2022-09-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2022-10-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2022-11-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2022-12-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2023-01-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2023-02-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2023-03-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2023-04-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2023-05-01" | |
}, | |
{ | |
"total_value_cents": 17910.0, | |
"payment_due_at": "2023-06-01" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment