Hatch

Start paying for a plan

On this page

Answers the address of the payment page to send the person to.

POST/api/billing/checkout

Authorization

  • session: Authorization: Bearer <token>. The session token from signing in (or the session cookie in a browser on the same origin).

Request body

  • plan string: At most 40 characters
  • returnTo string: At most 2000 characters

Response

200: It worked

  • url string (required): At most 2000 characters

Other answers:

  • 4XX: Refused, with a message to show the person