#Newbee - Hi

1 messages ยท Page 1 of 1 (latest)

soft bay
#

Hi ๐Ÿ‘‹

#

Let's chat in this thread

#

Following my previous Q, REQ ID is req_iI2Ie1FXAPCwdQ

gritty path
#

sure

#

I asked a question and didn't have time to reply. I was asked for REQ ID

soft bay
#

Okay so what's the Q about this customer?

gritty path
#

when I use it in API, it says something like customer error.

soft bay
#

Okay....do you have an example request with the error?

gritty path
#

Let me recreate it.

#

it checked the error from the last message and it said: no such customer: cus_xxxxxx

soft bay
#

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

gritty path
#

Here are the details:

soft bay
#

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

gritty path
#

hmm ok

soft bay
gritty path
#

req_iI2Ie1FXAPCwdQ

quaint jewel
#

that's not really a relevant id

#

that request is you manually loading the Customer in the Dashboard

gritty path
#

Hmm, ok

#

Let me double check.

#

Apologies, I am new to Stripe.

quaint jewel
#

All good

#

Are you using Stripe Connect maybe? Or mixing up yourAPI keys?

gritty path
#

I am using IPaaS

#

No logs for failed Post Req

#

I am trying to create an invoice.

quaint jewel
#

How are you creating an Invoice example? Using code? Something else?

gritty path
#

yes, I an creating invoice. IPaas has pre-built connectors

quaint jewel
#

I have never heard of IPaas unfortunately, can you try and give more specific details about what you are doing exactly?

gritty path
#

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&currency=aud&customer=cus_M02qjIANf0nIG8&metadata=

#

Response:

quaint jewel
#

See Stripe-Account acct_1LI2V3DOzjPRNBem in the response?

#

you, or the application you use, are making the request on a different Stripe account

gritty path
#

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

quaint jewel
#

No idea sorry that's something they control on their end so I'd talk to their support team for that

gritty path
#

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?

quaint jewel
#

I'm sorry I don't really understand the question ๐Ÿ˜…

gritty path
#

ok

#

When doing OAuth2 connection to my test client, i am asked few Q's

quaint jewel
#

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

gritty path
#

ok

#

what is test mode if you may know

quaint jewel
#

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

gritty path
#

Can test mode send out invoices?

#

I am keen to see if we an see invoices can be sent to end clients?

quaint jewel
#

you can test all of this in Test mode in the Dashboard yes

gritty path
#

๐Ÿ‘

#

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

quaint jewel
#

That's a Customer id, so you would create one, either via the Dashboard or the API first?

gritty path
#

ok

#

I am asked to activate accounts

#

it needs few financial details

#

I am still testing Stripe.

#

Can I skip it

quaint jewel
#

if you see a skip button yes?