curl --request POST \
--url https://int-prodtest.m1amdocs.io/v1/merchant_eligibility/check \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"merchantProductCode": "PARTNER-STANDALONE-MONTHLY",
"identifierType": "email",
"identifier": "customer@example.com",
"identifierEncoding": "PLAIN",
"metadata": {
"country": "US"
}
}
'{
"eligible": true
}Check merchant pre-purchase eligibility
Pre-purchase check whether a customer is eligible for a merchant product/offer before creating a partner subscription or entitlement. Stateless single-product pre-purchase eligibility check. partnerCode is not on the request; PartnerSubscriptionMS resolves it from merchantProductCode (or commerceProductCode → merchantProductCode via SLM). At least one of commerceProductCode or merchantProductCode is required (scalar only; arrays → 400). metadata is an object with string→string key/value pairs ($ref METADATA).
curl --request POST \
--url https://int-prodtest.m1amdocs.io/v1/merchant_eligibility/check \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"merchantProductCode": "PARTNER-STANDALONE-MONTHLY",
"identifierType": "email",
"identifier": "customer@example.com",
"identifierEncoding": "PLAIN",
"metadata": {
"country": "US"
}
}
'{
"eligible": true
}Headers
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.
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.
Query Parameters
Body
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.
Response
Eligibility decision (metadata is object string→string key/value pairs)
Reseller-facing eligibility decision.
Was this page helpful?

