API reference · Console
Gateway accounts
Per-merchant PSP accounts with their own priority, currencies, schemes, methods and countries. An account activates only after a passing Test Connection. Credentials are write-only.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
List gateway accounts
GET/api/v1/merchants/{merchantId}/gateway-accounts
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)required
Query parameters
environmentstringoptionalgatewayNamestringoptionalincludeDeletedbooleanoptionalDefault:
falselimitinteger (int32)optionalDefault:
50offsetinteger (int32)optionalDefault:
0
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts");
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/merchants/<merchantId>/gateway-accounts", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.get(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Create a gateway account
POST/api/v1/merchants/{merchantId}/gateway-accounts
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)required
Headers
AuthorizationstringrequiredContent-TypestringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request bodyapplication/json · CreateGatewayAccountRequest
gatewayNamestringnullabledisplayNamestringnullableenvironmentstringnullableregionstringnullablecountrystringnullableapiEndpointstringnullablefieldsmap<string, string>nullablecallbackUrlstringnullablereturnUrlstringnullableenabledCurrenciesarray<string>nullableenabledCardSchemesarray<string>nullableenabledPaymentMethodsarray<string>nullableenabledCountriesarray<string>nullablepriorityinteger (int32)nullablecustomEndpointApprovedbooleancustomEndpointJustificationstringnullable
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/merchants/<merchantId>/gateway-accounts" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"gatewayName": "<gatewayName>",
"displayName": "<displayName>",
"environment": "<environment>",
"region": "<region>",
"country": "<country>",
"apiEndpoint": "<apiEndpoint>",
"fields": {
"key": "value"
},
"callbackUrl": "https://shop.example.com/return",
"returnUrl": "https://shop.example.com/return",
"enabledCurrencies": [
"<enabledCurrencie>"
],
"enabledCardSchemes": [
"<enabledCardScheme>"
],
"enabledPaymentMethods": [
"<enabledPaymentMethod>"
],
"enabledCountries": [
"<enabledCountrie>"
],
"priority": 1,
"customEndpointApproved": false,
"customEndpointJustification": "<customEndpointJustification>"
}'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/merchants/<merchantId>/gateway-accounts")
{
Content = JsonContent.Create(new
{
gatewayName = "<gatewayName>",
displayName = "<displayName>",
environment = "<environment>",
region = "<region>",
country = "<country>",
apiEndpoint = "<apiEndpoint>",
fields = new
{
key = "value",
},
callbackUrl = "https://shop.example.com/return",
returnUrl = "https://shop.example.com/return",
enabledCurrencies = new[] { "<enabledCurrencie>" },
enabledCardSchemes = new[] { "<enabledCardScheme>" },
enabledPaymentMethods = new[] { "<enabledPaymentMethod>" },
enabledCountries = new[] { "<enabledCountrie>" },
priority = 1,
customEndpointApproved = false,
customEndpointJustification = "<customEndpointJustification>",
})
};
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/merchants/<merchantId>/gateway-accounts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
gatewayName: "<gatewayName>",
displayName: "<displayName>",
environment: "<environment>",
region: "<region>",
country: "<country>",
apiEndpoint: "<apiEndpoint>",
fields: {
key: "value",
},
callbackUrl: "https://shop.example.com/return",
returnUrl: "https://shop.example.com/return",
enabledCurrencies: ["<enabledCurrencie>"],
enabledCardSchemes: ["<enabledCardScheme>"],
enabledPaymentMethods: ["<enabledPaymentMethod>"],
enabledCountries: ["<enabledCountrie>"],
priority: 1,
customEndpointApproved: false,
customEndpointJustification: "<customEndpointJustification>",
}),
});
console.log(res.status, await res.text());// Generated from the OpenAPI schema.
type CreateGatewayAccountRequest = {
gatewayName?: string | null;
displayName?: string | null;
environment?: string | null;
region?: string | null;
country?: string | null;
apiEndpoint?: string | null;
fields?: (Record<string, string | null>) | null;
callbackUrl?: string | null;
returnUrl?: string | null;
enabledCurrencies?: string[] | null;
enabledCardSchemes?: string[] | null;
enabledPaymentMethods?: string[] | null;
enabledCountries?: string[] | null;
priority?: number | null;
customEndpointApproved?: boolean;
customEndpointJustification?: string | null;
};
const body: CreateGatewayAccountRequest = {
gatewayName: "<gatewayName>",
displayName: "<displayName>",
environment: "<environment>",
region: "<region>",
country: "<country>",
apiEndpoint: "<apiEndpoint>",
fields: {
key: "value",
},
callbackUrl: "https://shop.example.com/return",
returnUrl: "https://shop.example.com/return",
enabledCurrencies: ["<enabledCurrencie>"],
enabledCardSchemes: ["<enabledCardScheme>"],
enabledPaymentMethods: ["<enabledPaymentMethod>"],
enabledCountries: ["<enabledCountrie>"],
priority: 1,
customEndpointApproved: false,
customEndpointJustification: "<customEndpointJustification>",
};
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts", {
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/merchants/<merchantId>/gateway-accounts",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
json={
"gatewayName": "<gatewayName>",
"displayName": "<displayName>",
"environment": "<environment>",
"region": "<region>",
"country": "<country>",
"apiEndpoint": "<apiEndpoint>",
"fields": {
"key": "value",
},
"callbackUrl": "https://shop.example.com/return",
"returnUrl": "https://shop.example.com/return",
"enabledCurrencies": ["<enabledCurrencie>"],
"enabledCardSchemes": ["<enabledCardScheme>"],
"enabledPaymentMethods": ["<enabledPaymentMethod>"],
"enabledCountries": ["<enabledCountrie>"],
"priority": 1,
"customEndpointApproved": False,
"customEndpointJustification": "<customEndpointJustification>",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Retrieve a gateway account
GET/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>");
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/merchants/<merchantId>/gateway-accounts/<accountId>", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.get(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Update a gateway account
PUT/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Headers
AuthorizationstringrequiredContent-TypestringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request bodyapplication/json · UpdateGatewayAccountRequest
versioninteger (int32)gatewayNamestringnullableenvironmentstringnullabledisplayNamestringnullableregionstringnullablecountrystringnullableapiEndpointstringnullablefieldsmap<string, string>nullablecallbackUrlstringnullablereturnUrlstringnullableenabledCurrenciesarray<string>nullableenabledCardSchemesarray<string>nullableenabledPaymentMethodsarray<string>nullableenabledCountriesarray<string>nullablepriorityinteger (int32)nullablecustomEndpointApprovedbooleannullablecustomEndpointJustificationstringnullable
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 PUT "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"gatewayName": "<gatewayName>",
"environment": "<environment>",
"displayName": "<displayName>",
"region": "<region>",
"country": "<country>",
"apiEndpoint": "<apiEndpoint>",
"fields": {
"key": "value"
},
"callbackUrl": "https://shop.example.com/return",
"returnUrl": "https://shop.example.com/return",
"enabledCurrencies": [
"<enabledCurrencie>"
],
"enabledCardSchemes": [
"<enabledCardScheme>"
],
"enabledPaymentMethods": [
"<enabledPaymentMethod>"
],
"enabledCountries": [
"<enabledCountrie>"
],
"priority": 1,
"customEndpointApproved": false,
"customEndpointJustification": "<customEndpointJustification>"
}'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.Put, "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>")
{
Content = JsonContent.Create(new
{
version = 1,
gatewayName = "<gatewayName>",
environment = "<environment>",
displayName = "<displayName>",
region = "<region>",
country = "<country>",
apiEndpoint = "<apiEndpoint>",
fields = new
{
key = "value",
},
callbackUrl = "https://shop.example.com/return",
returnUrl = "https://shop.example.com/return",
enabledCurrencies = new[] { "<enabledCurrencie>" },
enabledCardSchemes = new[] { "<enabledCardScheme>" },
enabledPaymentMethods = new[] { "<enabledPaymentMethod>" },
enabledCountries = new[] { "<enabledCountrie>" },
priority = 1,
customEndpointApproved = false,
customEndpointJustification = "<customEndpointJustification>",
})
};
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/merchants/<merchantId>/gateway-accounts/<accountId>", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
version: 1,
gatewayName: "<gatewayName>",
environment: "<environment>",
displayName: "<displayName>",
region: "<region>",
country: "<country>",
apiEndpoint: "<apiEndpoint>",
fields: {
key: "value",
},
callbackUrl: "https://shop.example.com/return",
returnUrl: "https://shop.example.com/return",
enabledCurrencies: ["<enabledCurrencie>"],
enabledCardSchemes: ["<enabledCardScheme>"],
enabledPaymentMethods: ["<enabledPaymentMethod>"],
enabledCountries: ["<enabledCountrie>"],
priority: 1,
customEndpointApproved: false,
customEndpointJustification: "<customEndpointJustification>",
}),
});
console.log(res.status, await res.text());// Generated from the OpenAPI schema.
type UpdateGatewayAccountRequest = {
version?: number;
gatewayName?: string | null;
environment?: string | null;
displayName?: string | null;
region?: string | null;
country?: string | null;
apiEndpoint?: string | null;
fields?: (Record<string, string | null>) | null;
callbackUrl?: string | null;
returnUrl?: string | null;
enabledCurrencies?: string[] | null;
enabledCardSchemes?: string[] | null;
enabledPaymentMethods?: string[] | null;
enabledCountries?: string[] | null;
priority?: number | null;
customEndpointApproved?: boolean | null;
customEndpointJustification?: string | null;
};
const body: UpdateGatewayAccountRequest = {
version: 1,
gatewayName: "<gatewayName>",
environment: "<environment>",
displayName: "<displayName>",
region: "<region>",
country: "<country>",
apiEndpoint: "<apiEndpoint>",
fields: {
key: "value",
},
callbackUrl: "https://shop.example.com/return",
returnUrl: "https://shop.example.com/return",
enabledCurrencies: ["<enabledCurrencie>"],
enabledCardSchemes: ["<enabledCardScheme>"],
enabledPaymentMethods: ["<enabledPaymentMethod>"],
enabledCountries: ["<enabledCountrie>"],
priority: 1,
customEndpointApproved: false,
customEndpointJustification: "<customEndpointJustification>",
};
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>", {
method: "PUT",
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.put(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
json={
"version": 1,
"gatewayName": "<gatewayName>",
"environment": "<environment>",
"displayName": "<displayName>",
"region": "<region>",
"country": "<country>",
"apiEndpoint": "<apiEndpoint>",
"fields": {
"key": "value",
},
"callbackUrl": "https://shop.example.com/return",
"returnUrl": "https://shop.example.com/return",
"enabledCurrencies": ["<enabledCurrencie>"],
"enabledCardSchemes": ["<enabledCardScheme>"],
"enabledPaymentMethods": ["<enabledPaymentMethod>"],
"enabledCountries": ["<enabledCountrie>"],
"priority": 1,
"customEndpointApproved": False,
"customEndpointJustification": "<customEndpointJustification>",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Delete a gateway account
DELETE/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Query parameters
forcebooleanoptionalDefault:
false
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl -X DELETE "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>");
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/merchants/<merchantId>/gateway-accounts/<accountId>", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.delete(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Test a gateway account connection
POST/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}/test-connection
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
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/merchants/<merchantId>/gateway-accounts/<accountId>/test-connection" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
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/merchants/<merchantId>/gateway-accounts/<accountId>/test-connection");
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/merchants/<merchantId>/gateway-accounts/<accountId>/test-connection", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/test-connection", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/test-connection",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Activate a gateway account
POST/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}/activate
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
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/merchants/<merchantId>/gateway-accounts/<accountId>/activate" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
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/merchants/<merchantId>/gateway-accounts/<accountId>/activate");
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/merchants/<merchantId>/gateway-accounts/<accountId>/activate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/activate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/activate",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Deactivate a gateway account
POST/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}/deactivate
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
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/merchants/<merchantId>/gateway-accounts/<accountId>/deactivate" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
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/merchants/<merchantId>/gateway-accounts/<accountId>/deactivate");
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/merchants/<merchantId>/gateway-accounts/<accountId>/deactivate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/deactivate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/deactivate",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Bind legacy attempts to an account
POST/api/v1/merchants/{merchantId}/gateway-accounts/{accountId}/bind-legacy-attempts
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)requiredaccountIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
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/merchants/<merchantId>/gateway-accounts/<accountId>/bind-legacy-attempts" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
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/merchants/<merchantId>/gateway-accounts/<accountId>/bind-legacy-attempts");
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/merchants/<merchantId>/gateway-accounts/<accountId>/bind-legacy-attempts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/bind-legacy-attempts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-accounts/<accountId>/bind-legacy-attempts",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Set merchant gateway credentials
POST/api/v1/merchants/{merchantId}/gateway-credentials
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
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/merchants/<merchantId>/gateway-credentials" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
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/merchants/<merchantId>/gateway-credentials");
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/merchants/<merchantId>/gateway-credentials", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-credentials", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-credentials",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
List merchant gateway credentials
GET/api/v1/merchants/{merchantId}/gateway-credentials
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
merchantIdstring (uuid)required
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-credentials" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-credentials");
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/merchants/<merchantId>/gateway-credentials", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-credentials", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.get(
"https://api.sandbox.meem-dev.example/api/v1/merchants/<merchantId>/gateway-credentials",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Set platform gateway credentials
POST/api/v1/platform/gateway-credentials
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
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/platform/gateway-credentials" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
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/platform/gateway-credentials");
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/platform/gateway-credentials", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/platform/gateway-credentials", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.post(
"https://api.sandbox.meem-dev.example/api/v1/platform/gateway-credentials",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
List platform gateway credentials
GET/api/v1/platform/gateway-credentials
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl "https://api.sandbox.meem-dev.example/api/v1/platform/gateway-credentials" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/platform/gateway-credentials");
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/platform/gateway-credentials", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/platform/gateway-credentials", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.get(
"https://api.sandbox.meem-dev.example/api/v1/platform/gateway-credentials",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
List legacy gateway connections
GET/api/v1/platform/legacy-gateway-connections
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Headers
AuthorizationstringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request body
No request body.
Status codes
The spec lists only 200 OK. The codes below follow the platform's status mapping. Errors guide
Example request
curl "https://api.sandbox.meem-dev.example/api/v1/platform/legacy-gateway-connections" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN"using System.Net.Http.Headers;
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MEEM_ACCESS_TOKEN"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sandbox.meem-dev.example/api/v1/platform/legacy-gateway-connections");
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/platform/legacy-gateway-connections", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/platform/legacy-gateway-connections", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
},
});
console.log(res.status, await res.text());import os
import requests
response = requests.get(
"https://api.sandbox.meem-dev.example/api/v1/platform/legacy-gateway-connections",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
Adopt a legacy gateway connection
POST/api/v1/platform/legacy-gateway-connections/{id}/adopt
ConsoleBearer token
Bearer token. The required permission isn't published in the spec.
Used by the Meem console. Not part of the merchant integration surface and may change without notice.
Path parameters
idstring (uuid)required
Headers
AuthorizationstringrequiredContent-TypestringrequiredX-Correlation-IdstringoptionalX-Merchant-Contextstringoptional
Request bodyapplication/json · AdoptLegacyConnectionRequest
merchantIdstring (uuid)displayNamestringnullableenvironmentOverridestringnullablepriorityinteger (int32)nullableconfirmboolean
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/platform/legacy-gateway-connections/<id>/adopt" \
-H "Authorization: Bearer $MEEM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"merchantId": "<merchantId>",
"displayName": "<displayName>",
"environmentOverride": "<environmentOverride>",
"priority": 1,
"confirm": false
}'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/platform/legacy-gateway-connections/<id>/adopt")
{
Content = JsonContent.Create(new
{
merchantId = "<merchantId>",
displayName = "<displayName>",
environmentOverride = "<environmentOverride>",
priority = 1,
confirm = false,
})
};
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/platform/legacy-gateway-connections/<id>/adopt", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MEEM_ACCESS_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
merchantId: "<merchantId>",
displayName: "<displayName>",
environmentOverride: "<environmentOverride>",
priority: 1,
confirm: false,
}),
});
console.log(res.status, await res.text());// Generated from the OpenAPI schema.
type AdoptLegacyConnectionRequest = {
merchantId?: string;
displayName?: string | null;
environmentOverride?: string | null;
priority?: number | null;
confirm?: boolean;
};
const body: AdoptLegacyConnectionRequest = {
merchantId: "<merchantId>",
displayName: "<displayName>",
environmentOverride: "<environmentOverride>",
priority: 1,
confirm: false,
};
const res = await fetch("https://api.sandbox.meem-dev.example/api/v1/platform/legacy-gateway-connections/<id>/adopt", {
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/platform/legacy-gateway-connections/<id>/adopt",
headers={
"Authorization": f"Bearer {os.environ['MEEM_ACCESS_TOKEN']}",
},
json={
"merchantId": "<merchantId>",
"displayName": "<displayName>",
"environmentOverride": "<environmentOverride>",
"priority": 1,
"confirm": False,
},
timeout=30,
)
print(response.status_code, response.text)Example response
The response schema isn't published in the spec yet.
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.