Skip to content

Checks to see whether or not a person is eligible based on specified criteria

Request

This method takes in an order that has not yet been placed, and returns information about order pricing and available options

Security
knox-authorizer
Path
tenantIdstringrequired

The id of the tenant being accessed

customerTypestringrequired

The type of customer

contactOrOrganizationIdstringrequired

The contact or organization ID

Bodyapplication/jsonrequired

The order that you would like to be saved.

object
curl -i -X POST \
  'https://docs.api.rhythmsoftware.com/_mock/apis/commerce/commerce-v1/orders/{tenantId}/checkEligibility/{customerType}/{contactOrOrganizationId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

The order preview was successful

Headers
Access-Control-Allow-Headersstring
Access-Control-Allow-Methodsstring
Access-Control-Allow-Originstring
Bodyapplication/json
eligibleboolean(Eligible)

Whether the contact is eligible

reasonstring(Reason)

The reason for ineligibility

Response
{ "eligible": true, "reason": "string" }