GET /v2/memberships/b2b/checkout/validate

Gets the updated pricing and dates prior to membership checkout.

Input

action:  Required. The membership action that is being performed.

Possible values:  MembershipPurchase, MembershipRenewal, MembershipUpgrade, MembershipDowngrade, MembershipCancel, MembershipPostTermRenewal, MembershipRejoin, MembershipRenewalUpgrade, MembershipPostTermRenewalUpgrade, MembershipRejoinUpgrade, MembershipPostTermRenewalDowngrade, MembershipRejoinDowngrade, MembershipRenewalDowngrade

NOTE: To find out which values are applicable for a specific membership, use the eligible options API.

levelId: optional. The membership level ID that is associated with the membership that is to be checked out.

offeringId: optional. The membership offering that is being checkout out.

pricepointId: optional. The pricepoint ID tied to the membership offering.

membershipId : optional. The ID of an existing membership.

For actions other than MembershipPurchase, the membershipId is required

Returns 

Returns a MembershipCheckoutValidationResult object. Throws a MEMBERSHIPID_DNE if the membership action is anything other than MembershipPurchase and membershipId is not passed.


Sample Request:

https://sand6-api.acmeticketing.com/v2/b2b/memberships/checkout/validate?action=MembershipPurchase&levelId=57742a012095d87d690c39bc&offeringId=c831571c7e844b8092639c3583d9af15&pricePointId=54248ac8e4b01cd228b007a4

HEADERS:

x-acme-session: XXXX
x-acme-api-version: 1
Content-Type: application/json


MembershipCheckoutValidationResult


Field
Type
Description
Notes
expirationDate
String (ISO8601)the expiration date computed by the rules engine
startDate
String (ISO8601)the start date computed by the rules engine
transactionDate
String (ISO8601)

retailPrice
Double

price
DoubleThe price computed by the rules engine.
nowString (ISO8601)

externalMembershipboolean

Sample response
1
2
3
4
5
6
7
8
9
{
  "expirationDate""2017-07-06T20:13:29-07:00",
  "startDate""2016-07-06T20:13:29-07:00",
  "transactionDate""2016-07-06T20:13:29-07:00",
  "retailPrice": 150,
  "price": 120,
  "now""2016-07-06T20:13:29-07:00",
  "externalMembership" false
}