API reference · Integration
Hosted fields
Card entry in one iframe per field. Sandbox only today; production card capture needs PSP tokenization.
Start a hosted-fields session
POST/api/v1/hosted-fields/sessions
IntegrationBearer tokenPermission: payments.authorize
Start a hosted-fields session (sandbox only; 501 otherwise).
Headers
AuthorizationstringrequiredContent-TypestringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request bodyapplication/json · CreateSessionRequest
parentOriginstringnullable
The spec marks no fields as required. Constraints are enforced server-side and reported as 422.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl -X POST "https://api.sandbox.meem-dev.example/api/v1/hosted-fields/sessions" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"parentOrigin": "<parentOrigin>"
}'using System.Net.Http.Headers;
using System.Net.Http.Json;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/hosted-fields/sessions")
{
Content = JsonContent.Create(new
{
parentOrigin = "<parentOrigin>",
})
};
using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/hosted-fields/sessions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
parentOrigin: "<parentOrigin>",
}),
});
console.log(res.status, await res.text());// Generated from the OpenAPI schema.
type CreateSessionRequest = {
parentOrigin?: string | null;
};
const body: CreateSessionRequest = {
parentOrigin: "<parentOrigin>",
};
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/hosted-fields/sessions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/hosted-fields/sessions",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
json={
"parentOrigin": "<parentOrigin>",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet. See the guide for what it returns. Guide
Tokenize hosted fields
POST/api/v1/hosted-fields/tokens
IntegrationPublic
Tokenize card fields from the hosted iframes (sandbox only).
No API token: called by the hosted checkout page or the customer's browser.
Headers
Content-TypestringrequiredX-Correlation-Idstringoptional
Request bodyapplication/json · HostedFieldsTokenizeRequest
sessionTokenstringnullableparentOriginstringnullablecardNumberstringnullablecardHolderstringnullableexpiryMonthinteger (int32)expiryYearinteger (int32)cvvstringnullable
The spec marks no fields as required. Constraints are enforced server-side and reported as 422.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl -X POST "https://api.sandbox.meem-dev.example/api/v1/hosted-fields/tokens" \
-H "Content-Type: application/json" \
-d '{
"sessionToken": "<sessionToken>",
"parentOrigin": "<parentOrigin>",
"cardNumber": "<cardNumber>",
"cardHolder": "<cardHolder>",
"expiryMonth": 1,
"expiryYear": 1,
"cvv": "<cvv>"
}'using System.Net.Http.Headers;
using System.Net.Http.Json;
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sandbox.meem-dev.example/api/v1/hosted-fields/tokens")
{
Content = JsonContent.Create(new
{
sessionToken = "<sessionToken>",
parentOrigin = "<parentOrigin>",
cardNumber = "<cardNumber>",
cardHolder = "<cardHolder>",
expiryMonth = 1,
expiryYear = 1,
cvv = "<cvv>",
})
};
using var response = await http.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/hosted-fields/tokens", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
sessionToken: "<sessionToken>",
parentOrigin: "<parentOrigin>",
cardNumber: "<cardNumber>",
cardHolder: "<cardHolder>",
expiryMonth: 1,
expiryYear: 1,
cvv: "<cvv>",
}),
});
console.log(res.status, await res.text());// Generated from the OpenAPI schema.
type HostedFieldsTokenizeRequest = {
sessionToken?: string | null;
parentOrigin?: string | null;
cardNumber?: string | null;
cardHolder?: string | null;
expiryMonth?: number;
expiryYear?: number;
cvv?: string | null;
};
const body: HostedFieldsTokenizeRequest = {
sessionToken: "<sessionToken>",
parentOrigin: "<parentOrigin>",
cardNumber: "<cardNumber>",
cardHolder: "<cardHolder>",
expiryMonth: 1,
expiryYear: 1,
cvv: "<cvv>",
};
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/hosted-fields/tokens", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
console.log(res.status, await res.text());import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/hosted-fields/tokens",
json={
"sessionToken": "<sessionToken>",
"parentOrigin": "<parentOrigin>",
"cardNumber": "<cardNumber>",
"cardHolder": "<cardHolder>",
"expiryMonth": 1,
"expiryYear": 1,
"cvv": "<cvv>",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet. See the guide for what it returns. Guide
Documentation reflects the platform as verified on 3 December 2026. Placeholder hosts and credentials are used throughout; your real sandbox host and keys are provided at onboarding.