curl --request POST \
--url https://mcp.arlohealth.ai/api/consultations/{id}/payment \
--header 'Authorization: Bearer <token>'import requests
url = "https://mcp.arlohealth.ai/api/consultations/{id}/payment"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mcp.arlohealth.ai/api/consultations/{id}/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.arlohealth.ai/api/consultations/{id}/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mcp.arlohealth.ai/api/consultations/{id}/payment"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.arlohealth.ai/api/consultations/{id}/payment")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.arlohealth.ai/api/consultations/{id}/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"paymentUrl": "<string>",
"sessionId": "<string>",
"priceCents": 123,
"price": 123,
"currency": "<string>",
"summaryLoading": true,
"instructions": "<string>",
"agentInstructions": [
"<string>"
],
"nextStep": "wait_for_reply",
"nextStepArgs": {}
}{
"error": "<string>",
"reason": "<string>",
"code": "<string>"
}{
"error": "<string>",
"needsAuth": true
}Approve Visit Payment
Returns the Stripe Checkout link where the patient approves a temporary hold for one visit. Nothing is charged until a doctor joins; the hold is released otherwise. Once approved, the conversation moves to MATCHING on its own. There is no card-setup step.
Requires the conversation to be in PAYMENT_REQUIRED (otherwise no_payment_gate). While the consultation summary is still generating the response is summary_loading; retry shortly. The link is valid for about 30 minutes; call again for a fresh one if it expires.
curl --request POST \
--url https://mcp.arlohealth.ai/api/consultations/{id}/payment \
--header 'Authorization: Bearer <token>'import requests
url = "https://mcp.arlohealth.ai/api/consultations/{id}/payment"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mcp.arlohealth.ai/api/consultations/{id}/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.arlohealth.ai/api/consultations/{id}/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mcp.arlohealth.ai/api/consultations/{id}/payment"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.arlohealth.ai/api/consultations/{id}/payment")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.arlohealth.ai/api/consultations/{id}/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"paymentUrl": "<string>",
"sessionId": "<string>",
"priceCents": 123,
"price": 123,
"currency": "<string>",
"summaryLoading": true,
"instructions": "<string>",
"agentInstructions": [
"<string>"
],
"nextStep": "wait_for_reply",
"nextStepArgs": {}
}{
"error": "<string>",
"reason": "<string>",
"code": "<string>"
}{
"error": "<string>",
"needsAuth": true
}Authorizations
OAuth 2.1 with PKCE
Path Parameters
Consultation/conversation ID
Response
Payment link created
Stripe-hosted approval page (short-lived, ~30 minutes)
Stripe Checkout session ID
True when the consultation summary was still generating; the link is valid regardless
wait_for_reply Was this page helpful?