#Newbee - Hi
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Let's chat in this thread
Following my previous Q, REQ ID is req_iI2Ie1FXAPCwdQ
Okay so what's the Q about this customer?
when I use it in API, it says something like customer error.
Okay....do you have an example request with the error?
Let me recreate it.
it checked the error from the last message and it said: no such customer: cus_xxxxxx
Okay sounds like you've got a Connect issue.
The Request you did share with me shows that it is using the Stripe Account header
Here are the details:
error:
{
code: resource_missing,
doc_url: https://stripe.com/docs/error-codes/resource-missing,
message: No such customer: 'cus_M02qjIANf0nIG8',
param: customer,
type: invalid_request_error
}
So the customer exists on the account acct_1LI2ETG2vqpHCSlz
So my first instinct is that the failing request was not made on the account I just referenced
hmm ok
Can you share the request ID for the request that triggered the error so I can check?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_iI2Ie1FXAPCwdQ
that's not really a relevant id
that request is you manually loading the Customer in the Dashboard
How are you creating an Invoice example? Using code? Something else?
yes, I an creating invoice. IPaas has pre-built connectors
I have never heard of IPaas unfortunately, can you try and give more specific details about what you are doing exactly?
Sure, let me share what I have at my end.
Headers:
Accept application/json
Accept-Encoding gzip, deflate
User-Agent Workato 109b55a4
Authorization Bearer <MASKED>
Content-Length 61
Server nginx
Date Tue, 05 Jul 2022 06:39:18 GMT
Content-Type application/json
Content-Length 242
Connection keep-alive
Access-Control-Allow-Credentials true
Access-Control-Allow-Methods GET, POST, HEAD, OPTIONS, DELETE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
Access-Control-Max-Age 300
Cache-Control no-cache, no-store
Idempotency-Key 1930a361-dd7d-49aa-a671-21b53c581a18
Original-Request req_KMU8c5yWN1sl04
Request-Id req_KMU8c5yWN1sl04
Stripe-Account acct_1LI2V3DOzjPRNBem
Stripe-Version 2015-10-16
Strict-Transport-Security
Payload:
amount=100¤cy=aud&customer=cus_M02qjIANf0nIG8&metadata=
Response:
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such customer: 'cus_M02qjIANf0nIG8'",
"param": "customer",
"type": "invalid_request_error"
}
}
See Stripe-Account acct_1LI2V3DOzjPRNBem in the response?
you, or the application you use, are making the request on a different Stripe account
Ok, interesting.
BTW what should I set for: Is this connecting to a demo account?
last time I set my connection with demo account == yes
No idea sorry that's something they control on their end so I'd talk to their support team for that
ok
I am trying it now.
I will update you in 5 mins how I go
What is test mode BTW?
Should I use test mode or connect to an account?
I'm sorry I don't really understand the question ๐
I'm sorry but this is still so vague
this is all your third-party you're using, we've never seen it or used it ourselves
You might want to reach out to their support team directly for help
Test mode is Stripe's Test environment, where you can do fake transactions in Test mode to test our products and APIs
but that switch is purely a UI switch for the Dashboard, nothing else
whether you use Live or Test mode depends on the API keys you are using with your code
but here you're not using/writing code, you're using a third-party app that does this for you, so they are the ones controlling things
I understand
Can test mode send out invoices?
I am keen to see if we an see invoices can be sent to end clients?
๐
Let me try it agian
I need to fill this info:
Where do I get this?
Not sure if you know where is cus_xxxxx
That's a Customer id, so you would create one, either via the Dashboard or the API first?
ok
I am asked to activate accounts
it needs few financial details
I am still testing Stripe.
Can I skip it
if you see a skip button yes?