JSON enviado para o webhook de pedido atualizado tem caracteres errados
-
Olá, o JSON enviado para o webhook de pedido atualizado do Woocommerce, tem alguns campos mal formatados incluídos pelo Asaas.
Como pode ver, dentro de value, temos um “{\, quando deveria ser apenas { e “}” ao invés de }.
Eu gostaria de ler o campo PAYLOAD, dentro de value (\”payload\”:\”00020101021226860014br.gov.bcb.pix2564qrpix.bradesco.com.br) para conseguir enviar o PIX copia e cola por WhatsApp, mas n?o consigo mapear o JSON com estes erros.
Por favor, vcs poderiam remover estes caracteres adicionais para que o JSON seja corretamente montado e possa ser utilizado em APIs?
{ "id": 28418, "key": "__ASAAS_ORDER", "value": "{\"object\":\"payment\",\"id\":\"pay_0578897622540468\",\"dateCreated\":\"2023-10-17\",\"customer\":\"cus_000065013894\",\"paymentLink\":null,\"value\":60.16,\"netValue\":59.17,\"originalValue\":null,\"interestValue\":null,\"description\":\"Pedido #92520\",\"billingType\":\"PIX\",\"pixTransaction\":null,\"status\":\"PENDING\",\"dueDate\":\"2023-10-20\",\"originalDueDate\":\"2023-10-20\",\"paymentDate\":null,\"clientPaymentDate\":null,\"installmentNumber\":null,\"invoiceUrl\":\"https:\\/\\/www.asaas.com\\/i\\/0578897622540468\",\"invoiceNumber\":\"300692928\",\"externalReference\":\"92520\",\"deleted\":false,\"anticipated\":false,\"anticipable\":false,\"creditDate\":null,\"estimatedCreditDate\":null,\"transactionReceiptUrl\":null,\"nossoNumero\":null,\"bankSlipUrl\":null,\"lastInvoiceViewedDate\":null,\"lastBankSlipViewedDate\":null,\"discount\":{\"value\":0,\"limitDate\":null,\"dueDateLimitDays\":0,\"type\":\"FIXED\"},\"fine\":{\"value\":0,\"type\":\"FIXED\"},\"interest\":{\"value\":0,\"type\":\"PERCENTAGE\"},\"postalService\":false,\"custody\":null,\"refunds\":null,\"success\":true,\"encodedImage\":\"iVBORw0KGgoAAAANSUhEUgAAAYsAAAGLCAIAAAC5gincAAAOTklEQVR42u3bUY4jORIDUN\\/\\/0r03GGBRCjKkfPx1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/\\/4gFKEIRShCEYpQhCIUoQhFKEIRilCEIhSh7haq9c0tGecGOnb4Y83mkpMzV7DObUqrJG35RShCEYpQhCIUoQhFKEIRilCEIhShCEUoQr0lVKzNaVUwMXMPvmCsNYuVhjv9ir3Rkj6dUIQiFKEIRShCEYpQhCIUoQhFKEIRilCEItQyoVrbPzdJrdpoSXe5pCOOSdE6oa2LgVCEIhShCEUoQhGKUIQiFKEIRShCEYpQhCLUibW74ojuHNm5djL2Q7GHXFIpzlW3hCIUoQhFKEIRilCEIhShCEUoQhGKUIQiFKHmm5Gd3\\/w8hQefau4Az5WkMZIODtKSdSYUoQhFKEIRilCEIhShCEUoQhGKUIQiFKEI1W6vYue5NWexb15SdbUOcKvqaq3GzhuIUIQiFKEIRShCEYpQhCIUoQhFKEIRilCEelooERFCiQihREQIJSJCKBEhlIgIoUSEUCIihBIRIZSIEEpEhFAiQigREUKJiBBKRAglIkIoESGUiAihREQIJSKEEhEhlIgQSkSEUCIihBKR\\/fkf2izA8lW4tK8AAAAASUVORK5CYII=\",\"payload\":\"00020101021226860014br.gov.bcb.pix2564qrpix.bradesco.com.br\\/qr\\/v2\\/82ce7eef-247b-4c81-aaee-8c745b983cff520400005303986540560.165802BR5905ASAAS6009JOINVILLE62070503***630494BF\",\"expirationDate\":\"2023-10-17 23:59:59\"}" },
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘JSON enviado para o webhook de pedido atualizado tem caracteres errados’ is closed to new replies.