Create a customer session
POST {{baseUrl}}/v1/customer_sessions
Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
Request Body
[{"name"=>"components[buy_button][enabled]", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"components[pricing_table][enabled]", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"customer", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[1]", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |