#vitorhugoclz
1 messages · Page 1 of 1 (latest)
Do you have a request ID for that failed request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Request req_8XADC8urcypm9R
You said you tested these exact values?
Yes this is my object Tax ID
My object Tax ID
<TaxId tax_id id=txi_1NzkRkGtJLg1UiB7ehqEmFzA at 0x7fe4ba3763e0> JSON: {
"country": "BR",
"created": 1696961660,
"customer": "cus_OnL7gtAh2e8yoi",
"id": "txi_1NzkRkGtJLg1UiB7ehqEmFzA",
"livemode": false,
"object": "tax_id",
"type": "br_cpf",
"value": "000.000.000-00",
"verification": {
"status": "unavailable",
"verified_address": null,
"verified_name": null
}
}
and this is my python code
stripe.PaymentMethod.create(
type="boleto",
boleto={
"tax_id": tax_data.get("id")
},
billing_details={
"address": customer_stripe.get("address"),
"email": customer_stripe.get("email"),
"name": customer_stripe.get("name"),
"phone": customer_stripe.get("phone")
}
)
Can you try passing it in without the periods and the hyphen? In other words, just use a tax id of 00000000000
no chances and my python for Tax ID is:
stripe.Customer.create_tax_id(
customer.integration_id,
type=type_tax,
value="00000000000",
)
stripe.error.InvalidRequestError: Request req_WCKVUHSUrQAYIv: The provided Brazilian tax id does not appear to be valid. Please provide a valid CPF or CNPJ.
This seems like a bug. Can you write into support to create an email papertrail, then DM me your email address so I can pick it up and file a bug report with the product team?
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
If you choose "API integration" then check the developer checkbox we add a bit of structure to the contact for to ask for example objects and code snippets etc
I will try to update the python package, I will send a response if the error persists
the error persisted
stripe.error.InvalidRequestError: Request req_Wurb1ztYrfrLAL: The provided Brazilian tax id does not appear to be valid. Please provide a valid CPF or CNP
Gotcha, then writing in would be a good next step
@idle coral is already taking a look at this so let us know and they can find your message
I sent an email with a question as suggested previously, but the stripe account's email is in the corporate email, which is
dev@irricontrol.com.br
my last attempt was the one that got this error
stripe.error.InvalidRequestError: Request req_Wurb1ztYrfrLAL: The Brazilian tax identification number provided does not appear to be valid. Provide a valid CPF or CNPJ.
Digging for your thread now