Skip to main content
POST

Authorizations

X-API-KEY
string
header
required

The authorization key obtained from MarketONE.

Headers

X-B3-TraceId
string

The TraceId indicates the overall ID of the trace. Every span in a trace shares this ID. The X-B3-TraceId header is encoded as 32 or 16 lower-hex characters. For example, a 128-bit TraceId header might look like 463ac35c9f6413ad48485a3953bb6124.

X-B3-SpanId
string

The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree. The value should not be interpreted; it may or may not be derived from the value of the TraceId. The X-B3-SpanId header is encoded as 16 lower-hex characters. For example, a SpanId header might look like a2fb4a1d1a96d312. Unless propagating only the Sampling State, the X-B3-SpanId header is required.

X-B3-ParentSpanId
string

The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, there is no ParentSpanId. The X-B3-ParentSpanId header may be present on a child span and must be absent on the root span. It is encoded as 16 lower-hex characters. For example, a ParentSpanId header might look like 0020000000000001.

X-Aggregator-Code
string

The aggregator organization code. Organization code must be provided either via HTTP header or query parameter. If both are provided, HTTP header will be used.

Maximum string length: 16

Query Parameters

aggregatorCode
string

The aggregator organization code. Organization code must be provided either via HTTP header or query parameter. If both are provided, HTTP header will be used.

Maximum string length: 16

Body

application/json

Reseller (CSP) request for a stateless single-product pre-purchase eligibility check. partnerCode is not part of this request; PartnerSubscriptionMS resolves it from merchantProductCode (or commerceProductCode → merchantProductCode via SLM). At least one of commerceProductCode or merchantProductCode must be supplied as a scalar string; arrays are not supported and result in 400 invalid-request.

identifierType
enum<string>
required

Customer ID type for merchant eligibility. Accepted types are partnership-specific.

Available options:
email,
msisdn
identifier
string
required

Customer identifier value for merchant eligibility. Format validated per identifierType.

Maximum string length: 256
identifierEncoding
enum<string>
default:PLAIN

How the eligibility identifier is encoded. Accepted values are partnership-specific; unsupported values are rejected by the partner MS (400 invalid-request).

Available options:
PLAIN,
HASH,
ENCRYPTED
commerceProductCode
string

Commerce (reseller/service provider) product code. Used to resolve merchantProductCode via SLM when merchantProductCode is omitted. Scalar only.

Maximum string length: 128
merchantProductCode
string

Merchant product code for the merchant offer. Scalar only.

Maximum string length: 36
metadata
object

A set of key/value pairs that you can attach to an object. Useful for storing additional information.

Response

Eligibility decision (metadata is object string→string key/value pairs)

Reseller-facing eligibility decision.

eligible
boolean
required

true if the customer is eligible for the offer/merchantProductCode; false if not eligible.

reason
enum<string>

M1-normalized eligibility reason (kebab-case), typically when eligible is false. Merchant-native code remains in metadata.code.

Available options:
already-entitled,
already-entitled-redirect-required,
base-plan-missing,
merchant-other
metadata
object

A set of key/value pairs that you can attach to an object. Useful for storing additional information.