subscription

GET /v1/subscription/{handle}

Get subscription details

Request

  • Base URL
    https://customer-portal-api.frisbii.com
  • URL
    https://customer-portal-api.frisbii.com/v1/subscription/{handle}
  • Auth
    none declared

Path parameters

handlestring required

Subscription handle

Query parameters

languagestring

Supported language for translation in lower case

Example:en

Response

Successful operation

handlestring

Per account unique handle for subscription

customerstring

Customer handle

plan_versioninteger

Subscription plan version

statestring

State of the subscription, one of the following: active, expired, on_hold or pending. Active subscriptions can be cancelled and will expire at the end of the current billing period, or later depending on optional notice and fixation periods, this can be checked using the is_cancelled parameter and expires.

testboolean

Test flag

amountinteger

Optional custom plan price. If defined the plan price billed for each billing period will be overridden by this price.

amount_incl_vatboolean

If optional custom plan price this parameter tells whether the amount is including VAT

quantityinteger

Quantity of the plan product for this subscription.

start_datestring date-time

Date and time from which the subscription is eligible to schedule invoices. Either from create or from the latest reactivate or subscription change. In ISO-8601 extended offset date-time format.

end_datestring date-time

Fixed end date and time. In ISO-8601 extended offset date-time format.

grace_durationinteger

Grace duration in seconds from the creation of a subscription where no dunning process is started for a failing invoice. This allows a certain amount of time for the customer to sign up with a payment method.

current_period_startstring date-time

Start date and time for the current billing period. In ISO-8601 extended offset date-time format.

next_period_startstring date-time

Start date and time for the next billing period, and also end date and time for the current billing period. Is also the date and time for next invoice if the subscription is renewing. In ISO-8601 extended offset date-time format.

first_period_startstring date-time

Start date and time for the first ever billing period. In ISO-8601 extended offset date-time format.

last_period_startstring date-time

Start date and time for the previous billing period. In ISO-8601 extended offset date-time format.

trial_startstring date-time

Start date and time of free trial period. In ISO-8601 extended offset date-time format.

trial_endstring date-time

End date and time of free trial period. In ISO-8601 extended offset date-time format.

is_cancelledboolean

Whether the subscription has been cancelled. Cancelled subscriptions will expire at the end of the current billing period.

is_withdrawal_eligibleboolean

Whether the customer can currently withdraw from the subscription under the EU statutory right of withdrawal. True when the customer has no VAT ID, the customer's country is an EU member state or not set, and no more than 14 days have passed since the subscription was activated (or started). The subscription state is not taken into account.

in_trialboolean

Whether the subscription is in its trial period, or if the subscription will start a trial period at a start date in the future. See has_started to determine if the actual trial period has started or not.

has_startedboolean

If subscription has a later start date, this parameter tells if the subscription has started. Use this in connection with state to determine if a subscription is active.

renewal_countinteger

Number of renewals for the subscription (number of invoices)

cancelled_datestring date-time

Date when the subscription was cancelled. In ISO-8601 extended offset date-time format.

expiresstring date-time

Fixed date when the subscription will expire because of cancellation. In ISO-8601 extended offset date-time format.

expired_datestring date-time

Date when the subscription expired. ISO-8601 extended offset date-time format.

expire_reasonstring

Reason for expire. Can be ondemand, cancelled, dunning or fixed

on_hold_datestring date-time

Date when the subscription was put on hold. ISO-8601 extended offset date-time format.

reactivatedstring date-time

Date when the subscription was reactivated from on hold. ISO-8601 extended offset date-time format.

on_hold_reasonstring

Reason for on hold. Can be ondemand or dunning

timezonestring

Time zone for the subscription as standard time zone id. See Wikipedia

payment_method_addedboolean

Whether the customer at some point has added payment information to the subscription

createdstring date-time

Date when the subscription was created. In ISO-8601 extended offset date-time format.

activatedstring date-time

Date when the subscription was activated. Will only differ from created in a two step prepared -> activated subscription create scenario. In ISO-8601 extended offset date-time format.

reminder_email_sentstring date-time

If defined the date a reminder email was sent for the current billing period. In ISO-8601 extended offset date-time format.

renewingboolean

If the subscription renews at current period end. Also true for subscriptions with manual scheduling.

failed_invoicesinteger

Number of failed invoices for this subscription

failed_amountinteger

Summed amount for failed invoices

cancelled_invoicesinteger

Number of cancelled invoices for this subscription

cancelled_amountinteger

Summed amount for cancelled invoices

pending_invoicesinteger

Number of pending invoices for this subscription

pending_amountinteger

Summed amount for pending invoices

dunning_invoicesinteger

Number of dunning invoices for this subscription

dunning_amountinteger

Summed amount for dunning invoices

settled_invoicesinteger

Number of settled invoices for this subscription

settled_amountinteger

Summed settled amount

refunded_amountinteger

Summed refunded amount

pending_additional_costsinteger

Number of pending additional costs

pending_additional_cost_amountinteger

Summed amount of pending additional costs incl vat

transferred_additional_costsinteger

Number of additional costs that have been applied to invoices

transferred_additional_cost_amountinteger

Summed amount of additional costs that have been applied to invoices

pending_creditsinteger

Number of credits that have not fully been applied to invoices

pending_credit_amountinteger

Summed credit amount not yet applied to invoices

transferred_creditsinteger

Number of credits that have fully been applied to invoices

transferred_credit_amountinteger

Summed credit amount that have been applied to invoices

couponsstring[]

List of coupon handles redeemed for the subscription

Example response

{
  "plan": {
    "name": "Fitness",
    "description": "Fitness 149/month subscription",
    "vat": 0.25,
    "amount": 25000,
    "quantity": 3,
    "prepaid": true,
    "handle": "plan02",
    "version": 1,
    "state": "active",
    "currency": "DKK",
    "dunning_plan": "dunning_plan_02",
    "tax_policy": "default_tax_policy_handle",
    "renewal_reminder_email_days": 7,
    "trial_reminder_email_days": 7,
    "partial_period_handling": "bill_prorated",
    "include_zero_amount": true,
    "setup_fee": 10000,
    "setup_fee_text": "Subscription setup fee",
    "setup_fee_handling": "first",
    "setup_fee_vat": 0.2,
    "setup_fee_tax_policy": "setup_fee_tax_policy_handle",
    "setup_fee_amount_incl_vat": true,
    "partial_proration_days": true,
    "fixed_trial_days": true,
    "minimum_prorated_amount": 100,
    "account_funding": true,
    "cost_object": "KT-4711",
    "amount_incl_vat": true,
    "fixed_count": 12,
    "fixed_life_time_unit": "months",
    "fixed_life_time_length": 12,
    "trial_interval_unit": "months",
    "trial_interval_length": 1,
    "interval_length": 12,
    "schedule_type": "month_startdate",
    "schedule_fixed_day": 12,
    "base_month": 1,
    "notice_periods": 1,
    "fixation_periods": 3,
    "fixation_period_unit_type": "month",
    "notice_period_unit_type": "month",
    "contract_period": 12,
    "contract_period_unit_type": "month",
    "contract_period_after_renewal_period": 6,
    "contract_period_after_renewal_unit_type": "month",
    "subscription_duration_type": "auto_renew",
    "effective_setup_fee_vat": 0.25,
    "effective_setup_fee_amount_incl_vat": true
  },
  "payment_method": {
    "id": "ca_fcfac2016614418f969fa5697383e47c",
    "state": "active",
    "customer": "customer00069",
    "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
    "failed": "2015-06-04T12:40:56.656Z",
    "created": "2015-04-04T12:40:56.656Z",
    "card": {
      "gateway": "nets",
      "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
      "reactivated": "2015-05-14T00:00:00Z",
      "gw_ref": "657e86162633415a9e6b715248c84da4",
      "card_type": "visa_dk",
      "transaction_card_type": "visa",
      "card_agreement": "2b18c5d1f4dc640d9ff91bfbb2cbcce0",
      "exp_date": "09-18",
      "masked_card": "457111XXXXXX3777",
      "last_success": "2015-05-14T00:00:00Z",
      "last_failed": "2015-05-14T00:00:00Z",
      "first_fail": "2015-05-14T00:00:00Z",
      "error_code": "credit_card_expired",
      "error_state": "hard_declined",
      "declined_count": 2,
      "strong_authentication_status": "secured_by_nets",
      "three_d_secure_status": "Y",
      "card_country": "US",
      "token_state": "active",
      "cardholder_name": "Jane Doe"
    },
    "applepay": {
      "gateway": "nets",
      "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
      "reactivated": "2015-05-14T00:00:00Z",
      "gw_ref": "657e86162633415a9e6b715248c84da4",
      "card_type": "visa_dk",
      "transaction_card_type": "visa",
      "card_agreement": "2b18c5d1f4dc640d9ff91bfbb2cbcce0",
      "exp_date": "09-18",
      "masked_card": "457111XXXXXX3777",
      "last_success": "2015-05-14T00:00:00Z",
      "last_failed": "2015-05-14T00:00:00Z",
      "first_fail": "2015-05-14T00:00:00Z",
      "error_code": "credit_card_expired",
      "error_state": "hard_declined",
      "declined_count": 2,
      "strong_authentication_status": "secured_by_nets",
      "three_d_secure_status": "Y",
      "card_country": "US",
      "token_state": "active",
      "cardholder_name": "Jane Doe"
    },
    "googlepay": {
      "gateway": "nets",
      "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
      "reactivated": "2015-05-14T00:00:00Z",
      "gw_ref": "657e86162633415a9e6b715248c84da4",
      "card_type": "visa_dk",
      "transaction_card_type": "visa",
      "card_agreement": "2b18c5d1f4dc640d9ff91bfbb2cbcce0",
      "exp_date": "09-18",
      "masked_card": "457111XXXXXX3777",
      "last_success": "2015-05-14T00:00:00Z",
      "last_failed": "2015-05-14T00:00:00Z",
      "first_fail": "2015-05-14T00:00:00Z",
      "error_code": "credit_card_expired",
      "error_state": "hard_declined",
      "declined_count": 2,
      "strong_authentication_status": "secured_by_nets",
      "three_d_secure_status": "Y",
      "card_country": "US",
      "token_state": "active",
      "cardholder_name": "Jane Doe"
    },
    "payment_type": "card",
    "mps_subscription": {
      "external_id": "mps_sub_001"
    },
    "sepa_mandate": {
      "iban": "DE89370400440532013000",
      "sepa_mandate_bank_reference": "sr-39ef3e95179640db01aa382e0b117e8a"
    },
    "sepa_ebics_mandate": {
      "iban": "DE89370400440532013000",
      "sepa_mandate_bank_reference": "se-39ef3e95179640db01aa382e0b117e8a"
    },
    "stripe_mandate": {
      "bic": "DEUTDEDB",
      "sepa_last4": "3000"
    }
  },
  "invoices": {
    "size": 50,
    "count": 50,
    "to": "2021-10-06T13:02:23.190",
    "from": "2021-09-06T13:02:23.190",
    "content": [
      {
        "id": "dafba2016614418f969fa5697383e47c",
        "handle": "inv-311",
        "state": "pending",
        "amount": 10000,
        "currency": "DKK",
        "created": "2015-04-04T12:40:56.656Z",
        "type": "pending",
        "transactions": [
          {
            "id": "dafba2016614418f969fa5697383e47c",
            "state": "settled",
            "invoice": "order-1234",
            "type": "settle",
            "amount": 10000,
            "currency": "DKK",
            "settled": "2015-04-04T12:40:56.656Z",
            "failed": "2015-04-04T12:40:56.656Z",
            "refunded": "2015-04-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "payment_type": "card",
            "payment_method": "sr_4f3b975246e6acb7f569297d67830d64",
            "card_transaction": {
              "card": {
                "id": "ca_fcfac2016614418f969fa5697383e47c",
                "state": "active",
                "customer": "customer00069",
                "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
                "failed": "2015-06-04T12:40:56.656Z",
                "created": "2015-04-04T12:40:56.656Z",
                "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
                "reactivated": "2015-05-14T00:00:00Z",
                "gw_ref": "657e86162633415a9e6b715248c84da4",
                "card_type": "visa_dk",
                "transaction_card_type": "visa",
                "exp_date": "09-18",
                "masked_card": "457111XXXXXX3777",
                "last_success": "2015-05-14T00:00:00Z",
                "last_failed": "2015-05-14T00:00:00Z",
                "first_fail": "2015-05-14T00:00:00Z",
                "error_code": "credit_card_expired",
                "error_state": "hard_declined",
                "strong_authentication_status": "secured_by_nets",
                "three_d_secure_status": "Y",
                "card_country": "US"
              },
              "error": "credit_card_expired",
              "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
              "provider": "clearhaus",
              "frictionless": true,
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "gw_id": "28fc559a229e4fd3a134297a478a0075",
              "last_failed": "2015-04-04T12:40:56.656Z",
              "first_failed": "2015-04-04T12:40:56.656Z",
              "error_state": "hard_declined",
              "card_type": "visa_dk",
              "transaction_card_type": "visa",
              "exp_date": "09-18",
              "masked_card": "457111XXXXXX3777",
              "card_country": "US",
              "strong_authentication_status": "secured_by_nets",
              "three_d_secure_status": "Y",
              "acquirer_code": "40135",
              "acquirer_message": "Card expired",
              "acquirer_reference": "Card expired",
              "text_on_statement": "myshop.com 123",
              "surcharge_fee": 123,
              "cardholder_name": "Jane Doe"
            },
            "mpo_transaction": {
              "card": {
                "id": "ca_fcfac2016614418f969fa5697383e47c",
                "state": "active",
                "customer": "customer00069",
                "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
                "failed": "2015-06-04T12:40:56.656Z",
                "created": "2015-04-04T12:40:56.656Z",
                "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
                "reactivated": "2015-05-14T00:00:00Z",
                "gw_ref": "657e86162633415a9e6b715248c84da4",
                "card_type": "visa_dk",
                "transaction_card_type": "visa",
                "exp_date": "09-18",
                "masked_card": "457111XXXXXX3777",
                "last_success": "2015-05-14T00:00:00Z",
                "last_failed": "2015-05-14T00:00:00Z",
                "first_fail": "2015-05-14T00:00:00Z",
                "error_code": "credit_card_expired",
                "error_state": "hard_declined",
                "strong_authentication_status": "secured_by_nets",
                "three_d_secure_status": "Y",
                "card_country": "US"
              },
              "error": "credit_card_expired",
              "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
              "provider": "clearhaus",
              "frictionless": true,
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "gw_id": "28fc559a229e4fd3a134297a478a0075",
              "last_failed": "2015-04-04T12:40:56.656Z",
              "first_failed": "2015-04-04T12:40:56.656Z",
              "error_state": "hard_declined",
              "card_type": "visa_dk",
              "transaction_card_type": "visa",
              "exp_date": "09-18",
              "masked_card": "457111XXXXXX3777",
              "card_country": "US",
              "strong_authentication_status": "secured_by_nets",
              "three_d_secure_status": "Y",
              "acquirer_code": "40135",
              "acquirer_message": "Card expired",
              "acquirer_reference": "Card expired",
              "text_on_statement": "myshop.com 123",
              "surcharge_fee": 123,
              "cardholder_name": "Jane Doe"
            },
            "vipps_transaction": {
              "card": {
                "id": "ca_fcfac2016614418f969fa5697383e47c",
                "state": "active",
                "customer": "customer00069",
                "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
                "failed": "2015-06-04T12:40:56.656Z",
                "created": "2015-04-04T12:40:56.656Z",
                "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
                "reactivated": "2015-05-14T00:00:00Z",
                "gw_ref": "657e86162633415a9e6b715248c84da4",
                "card_type": "visa_dk",
                "transaction_card_type": "visa",
                "exp_date": "09-18",
                "masked_card": "457111XXXXXX3777",
                "last_success": "2015-05-14T00:00:00Z",
                "last_failed": "2015-05-14T00:00:00Z",
                "first_fail": "2015-05-14T00:00:00Z",
                "error_code": "credit_card_expired",
                "error_state": "hard_declined",
                "strong_authentication_status": "secured_by_nets",
                "three_d_secure_status": "Y",
                "card_country": "US"
              },
              "error": "credit_card_expired",
              "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
              "provider": "clearhaus",
              "frictionless": true,
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "gw_id": "28fc559a229e4fd3a134297a478a0075",
              "last_failed": "2015-04-04T12:40:56.656Z",
              "first_failed": "2015-04-04T12:40:56.656Z",
              "error_state": "hard_declined",
              "card_type": "visa_dk",
              "transaction_card_type": "visa",
              "exp_date": "09-18",
              "masked_card": "457111XXXXXX3777",
              "card_country": "US",
              "strong_authentication_status": "secured_by_nets",
              "three_d_secure_status": "Y",
              "acquirer_code": "40135",
              "acquirer_message": "Card expired",
              "acquirer_reference": "Card expired",
              "text_on_statement": "myshop.com 123",
              "surcharge_fee": 123,
              "cardholder_name": "Jane Doe"
            },
            "applepay_transaction": {
              "card": {
                "id": "ca_fcfac2016614418f969fa5697383e47c",
                "state": "active",
                "customer": "customer00069",
                "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
                "failed": "2015-06-04T12:40:56.656Z",
                "created": "2015-04-04T12:40:56.656Z",
                "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
                "reactivated": "2015-05-14T00:00:00Z",
                "gw_ref": "657e86162633415a9e6b715248c84da4",
                "card_type": "visa_dk",
                "transaction_card_type": "visa",
                "exp_date": "09-18",
                "masked_card": "457111XXXXXX3777",
                "last_success": "2015-05-14T00:00:00Z",
                "last_failed": "2015-05-14T00:00:00Z",
                "first_fail": "2015-05-14T00:00:00Z",
                "error_code": "credit_card_expired",
                "error_state": "hard_declined",
                "strong_authentication_status": "secured_by_nets",
                "three_d_secure_status": "Y",
                "card_country": "US"
              },
              "error": "credit_card_expired",
              "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
              "provider": "clearhaus",
              "frictionless": true,
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "gw_id": "28fc559a229e4fd3a134297a478a0075",
              "last_failed": "2015-04-04T12:40:56.656Z",
              "first_failed": "2015-04-04T12:40:56.656Z",
              "error_state": "hard_declined",
              "card_type": "visa_dk",
              "transaction_card_type": "visa",
              "exp_date": "09-18",
              "masked_card": "457111XXXXXX3777",
              "card_country": "US",
              "strong_authentication_status": "secured_by_nets",
              "three_d_secure_status": "Y",
              "acquirer_code": "40135",
              "acquirer_message": "Card expired",
              "acquirer_reference": "Card expired",
              "text_on_statement": "myshop.com 123",
              "surcharge_fee": 123,
              "cardholder_name": "Jane Doe"
            },
            "googlepay_transaction": {
              "card": {
                "id": "ca_fcfac2016614418f969fa5697383e47c",
                "state": "active",
                "customer": "customer00069",
                "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
                "failed": "2015-06-04T12:40:56.656Z",
                "created": "2015-04-04T12:40:56.656Z",
                "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
                "reactivated": "2015-05-14T00:00:00Z",
                "gw_ref": "657e86162633415a9e6b715248c84da4",
                "card_type": "visa_dk",
                "transaction_card_type": "visa",
                "exp_date": "09-18",
                "masked_card": "457111XXXXXX3777",
                "last_success": "2015-05-14T00:00:00Z",
                "last_failed": "2015-05-14T00:00:00Z",
                "first_fail": "2015-05-14T00:00:00Z",
                "error_code": "credit_card_expired",
                "error_state": "hard_declined",
                "strong_authentication_status": "secured_by_nets",
                "three_d_secure_status": "Y",
                "card_country": "US"
              },
              "error": "credit_card_expired",
              "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
              "provider": "clearhaus",
              "frictionless": true,
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "gw_id": "28fc559a229e4fd3a134297a478a0075",
              "last_failed": "2015-04-04T12:40:56.656Z",
              "first_failed": "2015-04-04T12:40:56.656Z",
              "error_state": "hard_declined",
              "card_type": "visa_dk",
              "transaction_card_type": "visa",
              "exp_date": "09-18",
              "masked_card": "457111XXXXXX3777",
              "card_country": "US",
              "strong_authentication_status": "secured_by_nets",
              "three_d_secure_status": "Y",
              "acquirer_code": "40135",
              "acquirer_message": "Card expired",
              "acquirer_reference": "Card expired",
              "text_on_statement": "myshop.com 123",
              "surcharge_fee": 123,
              "cardholder_name": "Jane Doe"
            },
            "manual_transaction": {
              "method": "cash",
              "comment": "Paid by cash in the shop",
              "reference": "231"
            },
            "viabill_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "viabill_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "anyday_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "anyday_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "santander_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "santander_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "resurs_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "resurs_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "klarna_transaction": {
              "error": "credit_card_expired",
              "type": "klarna_pay_later",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "klarna_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "swish_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "swish_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "paypal_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "paypal_id": "28fc559a229e4fd3a134297a478a0075"
            },
            "bancontact_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "bancontact_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "blik_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "blik_id": "28fc559a229e4fd3a134297a478a0070"
            },
            "giropay_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "giropay_id": "28fc559a229e4fd3a134297a478a0070"
            },
            "ideal_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "ideal_id": "28fc559a229e4fd3a134297a478a0070"
            },
            "p24_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "p24_id": "28fc559a229e4fd3a134297a478a0070"
            },
            "sepa_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "sepa_id": "28fc559a229e4fd3a134297a478a0070",
              "sepa_mandate": {
                "iban": "DE89370400440532013000",
                "sepa_mandate_bank_reference": "sr-39ef3e95179640db01aa382e0b117e8a"
              }
            },
            "trustly_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "trustly_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "verkkopankki_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "verkkopankki_id": "28fc559a229e4fd3a134297a478a0070"
            },
            "eps_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "eps_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "estonia_banks_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "estonia_banks_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "latvia_banks_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "latvia_banks_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "lithuania_banks_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "lithuania_banks_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "mbway_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "mb_way_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "multibanco_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "multibanco_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "mybank_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "mybank_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "payconiq_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "payconiq_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "paysafecard_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "paysafecard_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "paysera_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "paysera_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "postfinance_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "postfinance_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "satispay_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "satispay_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "wechatpay_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "wechatpay_id": "aa8400fd1245e991ce1ee20780168839"
            },
            "mps_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "mps_subscription": {
                "id": "ca_fcfac2016614418f969fa5697383e47c",
                "state": "active",
                "customer": "customer00069",
                "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
                "failed": "2015-06-04T12:40:56.656Z",
                "created": "2015-04-04T12:40:56.656Z",
                "external_id": "mps_sub_001"
              }
            },
            "vipps_recurring_transaction": {
              "error": "credit_card_expired",
              "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
              "error_state": "hard_declined",
              "acquirer_message": "Rejected",
              "vipps_recurring_id": "28fc559a229e4fd3a134297a478a0075"
            }
          }
        ],
        "accounting_number": "2023/00005",
        "download_url": "https://example.com/123"
      }
    ],
    "next_page_token": "MTYzMjkxNDc4NTAwMDoxMA"
  },
  "additional_costs": [
    {
      "invoice": "1f71771bfbfc40eabf6df4cc2e31d853",
      "state": "pending",
      "subscription": "sub000219",
      "handle": "cost032",
      "ordertext": "Yoga mat",
      "quantity": 1,
      "amount": 10000,
      "vat": 0.25,
      "created": "2015-04-04T12:40:56.656Z",
      "amount_incl_vat": true,
      "amount_vat": 2000,
      "amount_ex_vat": 8000,
      "tax_policy": "default_tax_policy_handle"
    }
  ],
  "credits": [
    {
      "subscription": "sub000219",
      "handle": "credit02",
      "amount": 20000,
      "text": "Credit for lower bandwidth",
      "state": "transferred",
      "valid_from": "2015-07-01",
      "credit_invoices": [
        {
          "credit": "credit002",
          "amount": 10000,
          "created": "2015-04-04T12:40:56.656Z",
          "text": "Credit for lower bandwidth"
        }
      ],
      "invoice_credit_note": {
        "id": "c33fbb06a00e4dc0b9055f6fb509c0ed",
        "invoice": "inv-2021",
        "transaction": "082ebeb1b5864e019b6bf13cad7c535b",
        "credit": "credit-234",
        "amount": 15000,
        "created": "2015-04-04T12:40:56.656Z",
        "currency": "DKK",
        "customer": "customer006",
        "subscription": "sub010",
        "amount_vat": 2000,
        "amount_ex_vat": 1323,
        "credit_note_lines": [
          {
            "amount": 15000,
            "text": "Refund product X",
            "description": "Product X",
            "quantity": 1,
            "vat": 0.25,
            "created": "2015-04-04T12:40:56.656Z",
            "origin": "plan",
            "order_line_id": "7f014d7f5d9e4ee89f1741a8cfe214d7",
            "amount_incl_vat": 1230,
            "amount_ex_vat": 1230,
            "unit_amount": 230,
            "unit_amount_vat": 230,
            "unit_amount_ex_vat": 230,
            "amount_incl_vat_defined": true,
            "period_from": "2015-04-04T12:40:56.656Z",
            "period_to": "2015-05-04T12:40:56.656Z",
            "cost_object": "KT-4711"
          }
        ],
        "accounting_number": "CN-2024-03-00005",
        "debtor_id": 10001,
        "download_url": "https://example.com/123",
        "accounting_created_date": "2015-04-04T12:40:56.656Z",
        "sales_rep_id": "sales-rep-001",
        "order_id": "order-12345",
        "invoice_file_type": "pdf"
      }
    }
  ],
  "hosted_page_links": {
    "payment_info": "https://checkout.reepay.com/#/subscription/pay/en_GB/4bc5f5f5536146a8b745aeab555162df/sub-0001"
  },
  "subscription_discounts": [
    {
      "handle": "sub002_discount001",
      "discount": "discount001",
      "state": "active",
      "coupon": "coupon0002",
      "name": "Gold member discount",
      "description": "Discount for members part of the Gold programme",
      "amount": 10000,
      "currency": "USD",
      "percentage": 25,
      "count": 2,
      "discount_dto": {
        "name": "Gold member discount",
        "description": "Discount for members part of the Gold programme",
        "amount": 10000,
        "currency": "DKK",
        "percentage": 25,
        "handle": "discount001",
        "metadata": {
          "key": "value"
        },
        "state": "active",
        "apply_to": [
          "all"
        ],
        "fixed_count": 12,
        "fixed_period_unit": "months",
        "fixed_period": 12
      },
      "apply_to": [
        "all"
      ],
      "fixed_count": 12,
      "fixed_period_unit": "months",
      "fixed_period": 12
    }
  ],
  "pending_change": {
    "plan": "plan0003",
    "amount": 20000,
    "quantity": 3,
    "pending": true,
    "applied": "2015-02-04T12:40:56.656Z",
    "updated": "2015-02-04T12:40:56.656Z",
    "created": "2015-02-04T12:40:56.656Z",
    "plan_version": 3,
    "subscription_add_ons": [
      {
        "handle": "sub002_addon001",
        "quantity": 1,
        "amount": 20000,
        "name": "Extra storage with special price",
        "description": "Special price given to vip customer",
        "currency": "DKK",
        "add_on": {
          "name": "Additional users",
          "description": "Add-on for adding additional users to subscription",
          "amount": 5000,
          "vat": 0.25,
          "type": "quantity",
          "handle": "add_on_001",
          "state": "active",
          "currency": "DKK",
          "amount_incl_vat": true,
          "tax_policy": "default_tax_policy_handle",
          "min_units": 1,
          "max_units": 10,
          "pricing": {
            "pricing_model": "per_unit",
            "unit_label": "seats",
            "unit_handle": "seat",
            "unit_label_plural": "seats",
            "unit_ranges": [
              {
                "to": 100,
                "price_per_unit": "10.0"
              }
            ]
          },
          "cost_object": "KT-4711",
          "billing_period": "month",
          "billing_interval_length": 1
        },
        "amount_incl_vat": true,
        "total_amount": 40000,
        "billing_period": "month",
        "billing_interval_length": 1,
        "pricing": {
          "pricing_model": "per_unit",
          "unit_label": "seats",
          "unit_handle": "seat",
          "unit_label_plural": "seats",
          "unit_ranges": [
            {
              "to": 100,
              "price_per_unit": "10.0"
            }
          ]
        },
        "cost_object": "KT-4711",
        "pricing_strategy": "fixed"
      }
    ],
    "compensation_method": "prorated",
    "notice_periods": 1,
    "notice_period_unit_type": "month",
    "contract_period_after_renewal_period": 6,
    "contract_period_after_renewal_unit_type": "month"
  },
  "subscription_changes": [
    {
      "plan": "plan0003",
      "amount": 20000,
      "quantity": 3,
      "pending": true,
      "applied": "2015-02-04T12:40:56.656Z",
      "updated": "2015-02-04T12:40:56.656Z",
      "created": "2015-02-04T12:40:56.656Z",
      "plan_version": 3,
      "subscription_add_ons": [
        {
          "handle": "sub002_addon001",
          "quantity": 1,
          "amount": 20000,
          "name": "Extra storage with special price",
          "description": "Special price given to vip customer",
          "currency": "DKK",
          "add_on": {
            "name": "Additional users",
            "description": "Add-on for adding additional users to subscription",
            "amount": 5000,
            "vat": 0.25,
            "type": "quantity",
            "handle": "add_on_001",
            "state": "active",
            "currency": "DKK",
            "amount_incl_vat": true,
            "tax_policy": "default_tax_policy_handle",
            "min_units": 1,
            "max_units": 10,
            "pricing": {
              "pricing_model": "per_unit",
              "unit_label": "seats",
              "unit_handle": "seat",
              "unit_label_plural": "seats",
              "unit_ranges": [
                {
                  "to": 100,
                  "price_per_unit": "10.0"
                }
              ]
            },
            "cost_object": "KT-4711",
            "billing_period": "month",
            "billing_interval_length": 1
          },
          "amount_incl_vat": true,
          "total_amount": 40000,
          "billing_period": "month",
          "billing_interval_length": 1,
          "pricing": {
            "pricing_model": "per_unit",
            "unit_label": "seats",
            "unit_handle": "seat",
            "unit_label_plural": "seats",
            "unit_ranges": [
              {
                "to": 100,
                "price_per_unit": "10.0"
              }
            ]
          },
          "cost_object": "KT-4711",
          "pricing_strategy": "fixed"
        }
      ],
      "compensation_method": "prorated",
      "notice_periods": 1,
      "notice_period_unit_type": "month",
      "contract_period_after_renewal_period": 6,
      "contract_period_after_renewal_unit_type": "month"
    }
  ],
  "subscription_add_ons": [
    {
      "handle": "sub002_addon001",
      "quantity": 1,
      "amount": 20000,
      "name": "Extra storage with special price",
      "description": "Special price given to vip customer",
      "currency": "DKK",
      "add_on": {
        "name": "Additional users",
        "description": "Add-on for adding additional users to subscription",
        "amount": 5000,
        "vat": 0.25,
        "type": "quantity",
        "handle": "add_on_001",
        "state": "active",
        "currency": "DKK",
        "amount_incl_vat": true,
        "tax_policy": "default_tax_policy_handle",
        "min_units": 1,
        "max_units": 10,
        "pricing": {
          "pricing_model": "per_unit",
          "unit_label": "seats",
          "unit_handle": "seat",
          "unit_label_plural": "seats",
          "unit_ranges": [
            {
              "to": 100,
              "price_per_unit": "10.0"
            }
          ]
        },
        "cost_object": "KT-4711",
        "billing_period": "month",
        "billing_interval_length": 1
      },
      "amount_incl_vat": true,
      "total_amount": 40000,
      "billing_period": "month",
      "billing_interval_length": 1,
      "pricing": {
        "pricing_model": "per_unit",
        "unit_label": "seats",
        "unit_handle": "seat",
        "unit_label_plural": "seats",
        "unit_ranges": [
          {
            "to": 100,
            "price_per_unit": "10.0"
          }
        ]
      },
      "cost_object": "KT-4711",
      "pricing_strategy": "fixed"
    }
  ],
  "next_invoice_preview": {
    "id": "dafba2016614418f969fa5697383e47c",
    "handle": "inv-311",
    "state": "pending",
    "amount": 10000,
    "currency": "DKK",
    "created": "2015-04-04T12:40:56.656Z",
    "customer": "customer006",
    "subscription": "sub010",
    "plan": "a7a7195c54f644369922d0dfe794dd0c",
    "type": "pending",
    "number": 1002,
    "due": "2015-04-04T12:40:56.656Z",
    "failed": "2015-04-04T12:40:56.656Z",
    "settled": "2015-04-04T12:40:56.656Z",
    "cancelled": "2015-04-04T12:40:56.656Z",
    "authorized": "2015-04-04T12:40:56.656Z",
    "credits": [
      {
        "credit": "credit002",
        "amount": 10000,
        "created": "2015-04-04T12:40:56.656Z",
        "text": "Credit for lower bandwidth"
      }
    ],
    "plan_version": 1,
    "dunning_plan": "dunning_plan_02",
    "discount_amount": 20000,
    "org_amount": 10000,
    "amount_vat": 2000,
    "amount_ex_vat": 8000,
    "settled_amount": 50000,
    "refunded_amount": 50000,
    "authorized_amount": 50000,
    "credited_amount": 50000,
    "period_number": 1,
    "recurring_payment_method": "ca_0d53b3c057ac262647b482184d5fd574",
    "order_lines": [
      {
        "id": "c33fbb06a00e4dc0b9055f6fb509c0ed",
        "ordertext": "Product X",
        "amount": 15000,
        "vat": 0.25,
        "quantity": 1,
        "origin": "plan",
        "timestamp": "2015-04-04T12:40:56.656Z",
        "amount_vat": 3000,
        "amount_ex_vat": 12000,
        "discounted_amount": 2000,
        "discounted_amount_ex_vat": 1500,
        "unit_amount": 15000,
        "unit_amount_vat": 3000,
        "unit_amount_ex_vat": 12000,
        "amount_defined_incl_vat": true,
        "applied_tax_rule": "reverse_charge",
        "origin_handle": "c33fbb06a00e4dc0b9055f6fb509c0ed",
        "period_from": "2015-04-04T12:40:56.656Z",
        "period_to": "2015-05-04T12:40:56.656Z",
        "discount_percentage": 25,
        "discounted_order_line": "423434534252345sdafsdfa5435",
        "cost_object": "KT-4711"
      }
    ],
    "transactions": [
      {
        "id": "dafba2016614418f969fa5697383e47c",
        "state": "settled",
        "invoice": "order-1234",
        "type": "settle",
        "amount": 10000,
        "currency": "DKK",
        "settled": "2015-04-04T12:40:56.656Z",
        "failed": "2015-04-04T12:40:56.656Z",
        "refunded": "2015-04-04T12:40:56.656Z",
        "created": "2015-04-04T12:40:56.656Z",
        "payment_type": "card",
        "payment_method": "sr_4f3b975246e6acb7f569297d67830d64",
        "card_transaction": {
          "card": {
            "id": "ca_fcfac2016614418f969fa5697383e47c",
            "state": "active",
            "customer": "customer00069",
            "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
            "failed": "2015-06-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
            "reactivated": "2015-05-14T00:00:00Z",
            "gw_ref": "657e86162633415a9e6b715248c84da4",
            "card_type": "visa_dk",
            "transaction_card_type": "visa",
            "exp_date": "09-18",
            "masked_card": "457111XXXXXX3777",
            "last_success": "2015-05-14T00:00:00Z",
            "last_failed": "2015-05-14T00:00:00Z",
            "first_fail": "2015-05-14T00:00:00Z",
            "error_code": "credit_card_expired",
            "error_state": "hard_declined",
            "strong_authentication_status": "secured_by_nets",
            "three_d_secure_status": "Y",
            "card_country": "US"
          },
          "error": "credit_card_expired",
          "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
          "provider": "clearhaus",
          "frictionless": true,
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "gw_id": "28fc559a229e4fd3a134297a478a0075",
          "last_failed": "2015-04-04T12:40:56.656Z",
          "first_failed": "2015-04-04T12:40:56.656Z",
          "error_state": "hard_declined",
          "card_type": "visa_dk",
          "transaction_card_type": "visa",
          "exp_date": "09-18",
          "masked_card": "457111XXXXXX3777",
          "card_country": "US",
          "strong_authentication_status": "secured_by_nets",
          "three_d_secure_status": "Y",
          "acquirer_code": "40135",
          "acquirer_message": "Card expired",
          "acquirer_reference": "Card expired",
          "text_on_statement": "myshop.com 123",
          "surcharge_fee": 123,
          "cardholder_name": "Jane Doe"
        },
        "mpo_transaction": {
          "card": {
            "id": "ca_fcfac2016614418f969fa5697383e47c",
            "state": "active",
            "customer": "customer00069",
            "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
            "failed": "2015-06-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
            "reactivated": "2015-05-14T00:00:00Z",
            "gw_ref": "657e86162633415a9e6b715248c84da4",
            "card_type": "visa_dk",
            "transaction_card_type": "visa",
            "exp_date": "09-18",
            "masked_card": "457111XXXXXX3777",
            "last_success": "2015-05-14T00:00:00Z",
            "last_failed": "2015-05-14T00:00:00Z",
            "first_fail": "2015-05-14T00:00:00Z",
            "error_code": "credit_card_expired",
            "error_state": "hard_declined",
            "strong_authentication_status": "secured_by_nets",
            "three_d_secure_status": "Y",
            "card_country": "US"
          },
          "error": "credit_card_expired",
          "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
          "provider": "clearhaus",
          "frictionless": true,
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "gw_id": "28fc559a229e4fd3a134297a478a0075",
          "last_failed": "2015-04-04T12:40:56.656Z",
          "first_failed": "2015-04-04T12:40:56.656Z",
          "error_state": "hard_declined",
          "card_type": "visa_dk",
          "transaction_card_type": "visa",
          "exp_date": "09-18",
          "masked_card": "457111XXXXXX3777",
          "card_country": "US",
          "strong_authentication_status": "secured_by_nets",
          "three_d_secure_status": "Y",
          "acquirer_code": "40135",
          "acquirer_message": "Card expired",
          "acquirer_reference": "Card expired",
          "text_on_statement": "myshop.com 123",
          "surcharge_fee": 123,
          "cardholder_name": "Jane Doe"
        },
        "vipps_transaction": {
          "card": {
            "id": "ca_fcfac2016614418f969fa5697383e47c",
            "state": "active",
            "customer": "customer00069",
            "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
            "failed": "2015-06-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
            "reactivated": "2015-05-14T00:00:00Z",
            "gw_ref": "657e86162633415a9e6b715248c84da4",
            "card_type": "visa_dk",
            "transaction_card_type": "visa",
            "exp_date": "09-18",
            "masked_card": "457111XXXXXX3777",
            "last_success": "2015-05-14T00:00:00Z",
            "last_failed": "2015-05-14T00:00:00Z",
            "first_fail": "2015-05-14T00:00:00Z",
            "error_code": "credit_card_expired",
            "error_state": "hard_declined",
            "strong_authentication_status": "secured_by_nets",
            "three_d_secure_status": "Y",
            "card_country": "US"
          },
          "error": "credit_card_expired",
          "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
          "provider": "clearhaus",
          "frictionless": true,
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "gw_id": "28fc559a229e4fd3a134297a478a0075",
          "last_failed": "2015-04-04T12:40:56.656Z",
          "first_failed": "2015-04-04T12:40:56.656Z",
          "error_state": "hard_declined",
          "card_type": "visa_dk",
          "transaction_card_type": "visa",
          "exp_date": "09-18",
          "masked_card": "457111XXXXXX3777",
          "card_country": "US",
          "strong_authentication_status": "secured_by_nets",
          "three_d_secure_status": "Y",
          "acquirer_code": "40135",
          "acquirer_message": "Card expired",
          "acquirer_reference": "Card expired",
          "text_on_statement": "myshop.com 123",
          "surcharge_fee": 123,
          "cardholder_name": "Jane Doe"
        },
        "applepay_transaction": {
          "card": {
            "id": "ca_fcfac2016614418f969fa5697383e47c",
            "state": "active",
            "customer": "customer00069",
            "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
            "failed": "2015-06-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
            "reactivated": "2015-05-14T00:00:00Z",
            "gw_ref": "657e86162633415a9e6b715248c84da4",
            "card_type": "visa_dk",
            "transaction_card_type": "visa",
            "exp_date": "09-18",
            "masked_card": "457111XXXXXX3777",
            "last_success": "2015-05-14T00:00:00Z",
            "last_failed": "2015-05-14T00:00:00Z",
            "first_fail": "2015-05-14T00:00:00Z",
            "error_code": "credit_card_expired",
            "error_state": "hard_declined",
            "strong_authentication_status": "secured_by_nets",
            "three_d_secure_status": "Y",
            "card_country": "US"
          },
          "error": "credit_card_expired",
          "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
          "provider": "clearhaus",
          "frictionless": true,
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "gw_id": "28fc559a229e4fd3a134297a478a0075",
          "last_failed": "2015-04-04T12:40:56.656Z",
          "first_failed": "2015-04-04T12:40:56.656Z",
          "error_state": "hard_declined",
          "card_type": "visa_dk",
          "transaction_card_type": "visa",
          "exp_date": "09-18",
          "masked_card": "457111XXXXXX3777",
          "card_country": "US",
          "strong_authentication_status": "secured_by_nets",
          "three_d_secure_status": "Y",
          "acquirer_code": "40135",
          "acquirer_message": "Card expired",
          "acquirer_reference": "Card expired",
          "text_on_statement": "myshop.com 123",
          "surcharge_fee": 123,
          "cardholder_name": "Jane Doe"
        },
        "googlepay_transaction": {
          "card": {
            "id": "ca_fcfac2016614418f969fa5697383e47c",
            "state": "active",
            "customer": "customer00069",
            "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
            "failed": "2015-06-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
            "reactivated": "2015-05-14T00:00:00Z",
            "gw_ref": "657e86162633415a9e6b715248c84da4",
            "card_type": "visa_dk",
            "transaction_card_type": "visa",
            "exp_date": "09-18",
            "masked_card": "457111XXXXXX3777",
            "last_success": "2015-05-14T00:00:00Z",
            "last_failed": "2015-05-14T00:00:00Z",
            "first_fail": "2015-05-14T00:00:00Z",
            "error_code": "credit_card_expired",
            "error_state": "hard_declined",
            "strong_authentication_status": "secured_by_nets",
            "three_d_secure_status": "Y",
            "card_country": "US"
          },
          "error": "credit_card_expired",
          "fingerprint": "cst_64e8a26cc0e85bc3f5ce7c5b366b4096",
          "provider": "clearhaus",
          "frictionless": true,
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "gw_id": "28fc559a229e4fd3a134297a478a0075",
          "last_failed": "2015-04-04T12:40:56.656Z",
          "first_failed": "2015-04-04T12:40:56.656Z",
          "error_state": "hard_declined",
          "card_type": "visa_dk",
          "transaction_card_type": "visa",
          "exp_date": "09-18",
          "masked_card": "457111XXXXXX3777",
          "card_country": "US",
          "strong_authentication_status": "secured_by_nets",
          "three_d_secure_status": "Y",
          "acquirer_code": "40135",
          "acquirer_message": "Card expired",
          "acquirer_reference": "Card expired",
          "text_on_statement": "myshop.com 123",
          "surcharge_fee": 123,
          "cardholder_name": "Jane Doe"
        },
        "manual_transaction": {
          "method": "cash",
          "comment": "Paid by cash in the shop",
          "reference": "231"
        },
        "viabill_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "viabill_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "anyday_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "anyday_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "santander_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "santander_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "resurs_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "resurs_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "klarna_transaction": {
          "error": "credit_card_expired",
          "type": "klarna_pay_later",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "klarna_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "swish_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "swish_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "paypal_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "paypal_id": "28fc559a229e4fd3a134297a478a0075"
        },
        "bancontact_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "bancontact_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "blik_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "blik_id": "28fc559a229e4fd3a134297a478a0070"
        },
        "giropay_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "giropay_id": "28fc559a229e4fd3a134297a478a0070"
        },
        "ideal_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "ideal_id": "28fc559a229e4fd3a134297a478a0070"
        },
        "p24_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "p24_id": "28fc559a229e4fd3a134297a478a0070"
        },
        "sepa_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "sepa_id": "28fc559a229e4fd3a134297a478a0070",
          "sepa_mandate": {
            "iban": "DE89370400440532013000",
            "sepa_mandate_bank_reference": "sr-39ef3e95179640db01aa382e0b117e8a"
          }
        },
        "trustly_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "trustly_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "verkkopankki_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "verkkopankki_id": "28fc559a229e4fd3a134297a478a0070"
        },
        "eps_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "eps_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "estonia_banks_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "estonia_banks_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "latvia_banks_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "latvia_banks_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "lithuania_banks_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "lithuania_banks_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "mbway_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "mb_way_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "multibanco_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "multibanco_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "mybank_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "mybank_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "payconiq_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "payconiq_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "paysafecard_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "paysafecard_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "paysera_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "paysera_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "postfinance_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "postfinance_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "satispay_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "satispay_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "wechatpay_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "wechatpay_id": "aa8400fd1245e991ce1ee20780168839"
        },
        "mps_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "mps_subscription": {
            "id": "ca_fcfac2016614418f969fa5697383e47c",
            "state": "active",
            "customer": "customer00069",
            "reference": "cs_6be90a4babc3c57ef7e6e477ac97ed3b",
            "failed": "2015-06-04T12:40:56.656Z",
            "created": "2015-04-04T12:40:56.656Z",
            "external_id": "mps_sub_001"
          }
        },
        "vipps_recurring_transaction": {
          "error": "credit_card_expired",
          "ref_transaction": "a7a7195c54f644369922d0dfe794dd0c",
          "error_state": "hard_declined",
          "acquirer_message": "Rejected",
          "vipps_recurring_id": "28fc559a229e4fd3a134297a478a0075"
        }
      }
    ],
    "credit_notes": [
      {
        "id": "c33fbb06a00e4dc0b9055f6fb509c0ed",
        "invoice": "inv-2021",
        "transaction": "082ebeb1b5864e019b6bf13cad7c535b",
        "credit": "credit-234",
        "amount": 15000,
        "created": "2015-04-04T12:40:56.656Z",
        "currency": "DKK",
        "customer": "customer006",
        "subscription": "sub010",
        "amount_vat": 2000,
        "amount_ex_vat": 1323,
        "credit_note_lines": [
          {
            "amount": 15000,
            "text": "Refund product X",
            "description": "Product X",
            "quantity": 1,
            "vat": 0.25,
            "created": "2015-04-04T12:40:56.656Z",
            "origin": "plan",
            "order_line_id": "7f014d7f5d9e4ee89f1741a8cfe214d7",
            "amount_incl_vat": 1230,
            "amount_ex_vat": 1230,
            "unit_amount": 230,
            "unit_amount_vat": 230,
            "unit_amount_ex_vat": 230,
            "amount_incl_vat_defined": true,
            "period_from": "2015-04-04T12:40:56.656Z",
            "period_to": "2015-05-04T12:40:56.656Z",
            "cost_object": "KT-4711"
          }
        ],
        "accounting_number": "CN-2024-03-00005",
        "debtor_id": 10001,
        "download_url": "https://example.com/123",
        "accounting_created_date": "2015-04-04T12:40:56.656Z",
        "sales_rep_id": "sales-rep-001",
        "order_id": "order-12345",
        "invoice_file_type": "pdf"
      }
    ],
    "dunning_start": "2015-04-04T12:40:56.656Z",
    "dunning_count": 1,
    "dunning_expired": "2015-04-04T12:40:56.656Z",
    "period_from": "2015-04-04T12:40:56.656Z",
    "period_to": "2015-05-04T12:40:56.656Z",
    "settle_later": true,
    "settle_later_payment_method": "ca_608698b783382bccc4e23b3a024631f0",
    "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"
    },
    "accounting_number": "2023/00005",
    "download_url": "https://example.com/123"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.