Live data from Hacker News

Building the Brex API

building.brex.com

11–20 of 29 posts

Re: Building the Brex API

#11
post #9

How does Brex compare to Mercury?

Another thing Mercury is missing is basic expense management like attaching receipts to transactions.

If you signed up for Mercury today, you’d look at Brex and think, “Eugh, I should have signed up for Brex”.

A sweeping generalization is that Mercury and Brex are the same thing, but Brex is further ahead in terms of basic features to manage a small SaaS business. Mercury will hopefully deploy their capital to build out these features.

Re: Building the Brex API

#12
post #10
post #9

How does Brex compare to Mercury?

They're both good and much better than old-school banks like SVB / FRB etc. Brex also offers charge cards which Mercury doesn't (not sure if they have debit cards) so Brex has a broader set of things to offer. Satchel a SaaS buying-guide (kinda like Wirecutter for startups) wrote an in-depth guide here https://satchel.com/store-of-money/#recommendations and recommends Brex Cash.

Mercury has physical and virtual debit cards. No credit card products yet.

Re: Building the Brex API

#13
post #10
post #9

How does Brex compare to Mercury?

They're both good and much better than old-school banks like SVB / FRB etc. Brex also offers charge cards which Mercury doesn't (not sure if they have debit cards) so Brex has a broader set of things to offer. Satchel a SaaS buying-guide (kinda like Wirecutter for startups) wrote an in-depth guide here https://satchel.com/store-of-money/#recommendations and recommends Brex Cash.

what do you guys think about ramp or divvy ?

https://ramp.com/ramp-vs-brex

https://getdivvy.com/divvy-vs-brex/

Re: Building the Brex API

#14
post #5

Earlier quoted context omitted.

The “bearer” prefix indicates the token is a “bearer” type token, as defined in RFC6750. As opposed to, for example, a “mac” token type. The bearer token can be a JWT, but can also be a different format of bearer token as long as it conforms to the requirements in the spec (ie, only certain characters are allowed). A “bearer” token means whoever has the token has authorization to perform the action. (Section 1.2 of t…

Isn't that just fancy phrasing for a username/password? Most APIs just have you set a key in the "Authorization" header. I don't get what value the "Bearer " prefix adds. That RFC is strange and seems it can be summarized in one line: Include header "Authorization: Bearer [API key]" for authenticating API calls.

> Isn't that just fancy phrasing for a username/password?

Not quite. username/password authenticate who or what something is; bearer tokens permit what actions can be taken by the holder of that token, and tend to be short-lived in nature and ideally for very specific actions.

Re: Building the Brex API

#17
> One of the best decisions we made was to auto generate the OpenAPI specs from our code.

I'm curious as to what they used to do this. It's been a major pain point for me for five-odd years that Elixir Phoenix (don't know if Brex used Phoenix for this) doesn't have an OpenAPI autogenerator, and, now, this is my third job where I'm building an OpenAPI API in Elixir, so I got permission to open source our solution later this year.

Would have been nice to collaborate, but I guess Brex is leaving Elixir, so, there's that. They kind of had a bit of a reputation for not contributing much code back to the ecosystem =(

Re: Building the Brex API

#18
This is really cool to see. At the start of my YC batch, when I was still dabbling with building general accounting ledger systems as a service, I discovered that the GraphQL API Brex itself was using was, actually, pretty usable. Schema introspection worked. I was able to write scripts with it. Looks like they went with REST for the truly public one, but it's good to see it at all frankly.

Re: Building the Brex API

#19

> One of the best decisions we made was to auto generate the OpenAPI specs from our code. I'm curious as to what they used to do this. It's been a major pain point for me for five-odd years that Elixir Phoenix (don't know if Brex used Phoenix for this) doesn't have an OpenAPI autogenerator , and, now, this is my third job where I'm building an OpenAPI API in Elixir, so I got permission to open source our solution lat…

I no longer work at Brex, but I believe they did this using Kotlin rather than Elixir.

Re: Building the Brex API

#20
post #19

> One of the best decisions we made was to auto generate the OpenAPI specs from our code. I'm curious as to what they used to do this. It's been a major pain point for me for five-odd years that Elixir Phoenix (don't know if Brex used Phoenix for this) doesn't have an OpenAPI autogenerator , and, now, this is my third job where I'm building an OpenAPI API in Elixir, so I got permission to open source our solution lat…

I no longer work at Brex, but I believe they did this using Kotlin rather than Elixir.

thanks for the insight. either way, would be nice of them to either open source their solution (or if they are using someone else's point us to which one they picked)
Post reply on HN