Checkout Sessions

Create a Checkout Session

Checkout sessions required to generate a session for our hosted checkout solution.

Request
header Parameters
Authorization
required
string

the access_token value returned from the JustiFi oauth/token endpoint (be sure to append Bearer before the token)

Example: Bearer {access_token}
Request Body schema: application/json
payment_intent_id
required
string <uuid>

payment intent you intend to capture with this checkout session

after_payment_url
required
string

a url to handle a redirect after successful checkout

back_url
string

a url to handle a redirect from the back button on our checkout form

Responses
201

Checkout session was create successfully

post/checkout_sessions
Request samples
application/json
{}
Response samples
application/json
{
  • "id": 1,
  • "type": "checkout_session",
  • "data": {
    },
  • "page_info": "string"
}