session
Create subscription session
post/v1/session/subscription
Request
- Base URLhttps://checkout-api.frisbii.com
- URLhttps://checkout-api.frisbii.com/v1/session/subscription
- AuthHTTP basic
Request body
Example request
{
"locale": "en_US",
"ttl": "PT3H",
"phone": "+4531313131",
"accept_url": "https://myshow.com/success/order-343",
"cancel_url": "https://myshow.com/cancel/order-343",
"recurring_average_amount": 10000,
"sca_data": {
"name": "John Doe",
"email": "mail@example.com",
"home_phone": {
"cc": "45",
"subscriber": "56565656"
},
"mobile_phone": {
"cc": "45",
"subscriber": "56565656"
},
"work_phone": {
"cc": "45",
"subscriber": "56565656"
},
"billing_address": {
"address1": "Grove Street 12",
"address2": "Ganton",
"address3": "Apartment 10",
"city": "Los Santos",
"country": "US",
"postal_code": "4531",
"state_or_province": "WA"
},
"shipping_address": {
"address1": "Grove Street 12",
"address2": "Ganton",
"address3": "Apartment 10",
"city": "Los Santos",
"country": "US",
"postal_code": "4531",
"state_or_province": "WA"
},
"address_match": true,
"account_id": "123456",
"challenge_indicator": "preference",
"risk_indicator": {
"delivery_email": "mail@example.com",
"delivery_timeframe": "overnight_shipping",
"gift_card_amount": 123,
"gift_card_count": 5,
"gift_card_currency": "USD",
"pre_order_date": "2020-11-05",
"pre_order_purchase_indicator": "merchandise_available",
"reorder_items_indicator": "first_time_ordered",
"shipping_indicator": "billing_address"
},
"account_info": {
"created": "2020-11-03",
"changed": "2020-11-03",
"age_indicator": "this_transaction",
"change_indicator": "more_than_60_days",
"password_change": "2020-11-03",
"password_change_indicator": "no_change",
"purchase_count": 2,
"transactions_day": 2,
"transactions_year": 32,
"card_age": "2020-10-02",
"card_age_indicator": "more_than_60_days",
"shipping_address_usage": "2020-09-21",
"shipping_address_usage_indicator": "more_than_60_days",
"shipping_name_indicator": true
}
},
"session_data": {
"ssn": "200519903345",
"account_holder_name": "John Doe",
"mps_amount": 20000,
"mps_plan": "Premium Subscription",
"mps_description": "Free access",
"mps_frequency": "monthly",
"mps_external_id": "sub-0021",
"mps_payment_description": "Welcome package",
"mps_cancel_redirect_url": "https://merchant.com/my-mps-cancel-page.html",
"mpo_flow": "dual",
"applepay_recurring_payment_start_date": "2022-06-01",
"applepay_recurring_payment_end_date": "2022-12-01",
"applepay_recurring_payment_interval_unit": "year",
"applepay_recurring_payment_interval_count": 12,
"applepay_recurring_trial_label": "Premium Subscription",
"applepay_recurring_trial_amount": 100,
"applepay_recurring_label": "Premium Subscription",
"applepay_recurring_amount": 20000,
"applepay_supported_countries": [
"EU"
],
"sepa_debtor_name": "Michael Schmidt",
"sepa_debtor_address": "Mainzer Landstrasse 51",
"sepa_debtor_postal_code": "60329",
"sepa_debtor_city": "Frankfurt am Main",
"sepa_debtor_country": "DE",
"sepa_debtor_iban": "DE12345678901234567890",
"sepa_debtor_bic": "DEUTDEFFXXX",
"sepa_mandate_amount": 20000,
"klarna_recurring_amount": 20000,
"klarna_recurring_product_name": "Premier subscription",
"klarna_recurring_interval_count": 12,
"klarna_recurring_interval_unit": "year",
"vipps_recurring_amount": 20000,
"vipps_recurring_product_name": "Premier subscription",
"vipps_recurring_pricing_type": "variable",
"vipps_recurring_product_description": "Access to all games",
"vipps_recurring_interval_count": 12,
"vipps_recurring_interval_unit": "year",
"vipps_recurring_initial_payment_description": "Welcome package",
"vipps_recurring_merchant_cancel_url": "https://www.reepay.com/vipps-recurring-cancel-page.html",
"vipps_recurring_campaign_amount": 20000,
"vipps_recurring_campaign_interval_count": 30,
"vipps_recurring_campaign_interval_unit": "day",
"vipps_recurring_campaign_end_date": "2024-05-14T05:03:56.656Z",
"vipps_recurring_campaign_event_text": "Christmas",
"anyday_webshop_url": "https://www.mywebshop.com",
"vipps_epayment_blocked_sources": [
"[commercial_cards]"
]
},
"payment_method_reference": "order-3424",
"account_funding": true,
"account_funding_information": {
"sender_country": "DK",
"sender_date_of_birth": "1990-07-01"
},
"allowed_ip": "1.2.3.4",
"wallet_cardholder_name": "John Doe",
"prepare_subscription": {
"customer": "cust_0001",
"plan": "plan0001",
"amount": 20000,
"quantity": 3,
"test": true,
"handle": "sub0002",
"metadata": {
"key": "value"
},
"create_customer": {
"email": "carl@leone.com",
"title": "Mr",
"address": "Grove Street 12",
"address2": "Ganton",
"city": "Los Santos",
"country": "US",
"phone": "555-gotcars",
"company": "Leones Cars",
"vat": "US123456789",
"language": "en",
"handle": "customer006",
"test": true,
"metadata": {
"key": "value"
},
"invoice_email": "carl@leone.com",
"dunning_email": "carl@leone.com",
"first_name": "Carl",
"last_name": "Johnson",
"date_of_birth": "1990-05-15",
"postal_code": "4531",
"debtor_id": 10001,
"sales_rep_id": "sales-rep-001",
"order_id": "order-12345",
"shipping_first_name": "Carl",
"shipping_last_name": "Johnson",
"shipping_company": "Leones Cars",
"shipping_vat": "US123456789",
"shipping_attention": "Receiving dept.",
"shipping_address": "Grove Street 12",
"shipping_address2": "Ganton",
"shipping_city": "Los Santos",
"shipping_state_or_province": "SA",
"shipping_postal_code": "4531",
"shipping_country": "US",
"shipping_email": "receiving@leone.com",
"shipping_phone": "555-gotcars",
"generate_handle": true
},
"plan_version": 2,
"generate_handle": true,
"start_date": "2015-05-14T00:00:00",
"end_date": "2015-12-01",
"grace_duration": 172800,
"no_trial": true,
"no_setup_fee": true,
"trial_period": "P7D",
"subscription_discounts": [
{
"handle": "sub002_discount001",
"discount": "discount001",
"name": "Gold member discount",
"description": "Discount for members part of the Gold programme",
"amount": 10000,
"percentage": 25,
"apply_to": [
"all"
],
"fixed_count": 12,
"fixed_period_unit": "months",
"fixed_period": 12
}
],
"add_ons": [
{
"handle": "sub002_addon001",
"quantity": 3,
"amount": 20000,
"name": "Extra storage with special price",
"description": "Special price given to vip customer",
"add_on": "addon_001",
"fixed_amount": true,
"cost_object": "KT-4711",
"pricing_strategy": "fixed",
"pricing": {
"pricing_model": "per_unit",
"unit_label": "seats",
"unit_handle": "seat",
"unit_label_plural": "seats",
"unit_ranges": [
{
"to": 100,
"price_per_unit": "10.0"
}
]
}
}
],
"additional_costs": [
{
"handle": "cost032",
"ordertext": "Yoga mat",
"quantity": 1,
"amount": 10000,
"vat": 0.25,
"tax_policy": "default_tax_policy_handle"
}
],
"metered_billing_products": [
{
"vat": 0.25,
"metered_billing_product_handle": "storage",
"cost_object": "KT-4711",
"unit_label": "API Calls",
"unit_handle": "gb",
"included_units": 10,
"minimum_fee": "100",
"pricing_model": "per_unit",
"amount_incl_vat": true,
"tax_policy": "tp_handle",
"unit_ranges": [
{
"to": 100,
"price_per_unit": "10.0"
}
]
}
],
"fixation_period_end_date": "2015-05-14T00:00:00",
"notice_periods": 1,
"notice_period_unit_type": "month",
"contract_period_start_date": "2015-05-14T00:00:00",
"contract_period_end_date": "2015-05-14T00:00:00",
"contract_period_after_renewal_period": 6,
"contract_period_after_renewal_unit_type": "month",
"cost_object": "KT-4711",
"sales_rep_id": "sales-rep-001",
"order_id": "order-12345",
"billing_address": {
"company": "Leones Cars",
"vat": "US123456789",
"attention": "Mary Schmidt",
"address": "Grove Street 12",
"address2": "Ganton",
"city": "Los Santos",
"country": "US",
"email": "carl@leone.com",
"phone": "555-gotcars",
"first_name": "Carl",
"last_name": "Johnson",
"postal_code": "4531",
"state_or_province": "WA"
},
"shipping_address": {
"company": "Leones Cars",
"vat": "US123456789",
"attention": "Mary Schmidt",
"address": "Grove Street 12",
"address2": "Ganton",
"city": "Los Santos",
"country": "US",
"email": "carl@leone.com",
"phone": "555-gotcars",
"first_name": "Carl",
"last_name": "Johnson",
"postal_code": "4531",
"state_or_province": "WA"
}
}
}Response
Successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.