invoice

GET /v1/invoice/{handle}

Get invoice details

Request

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

Path parameters

handlestring required

Invoice handle

Response

Successful operation

idstring

Autogenerated Id

handlestring

Per account unique handle. Provided at on-demand invoice/charge creation or set to inv-<invoice_number> for automatically created subscription invoices

state'created' | 'pending' | 'dunning' | 'settled' | 'authorized' | 'cancelled' | 'failed'

The invoice state one of the following: created, pending, dunning, settled, cancelled, authorized, failed

amountinteger

The invoice amount including VAT

currencystring

Currency for the account in ISO 4217 three letter alpha code

createdstring date-time

When the invoice was created, in ISO-8601 extended offset date-time format.

customerstring required

Customer handle

subscriptionstring

Subscription handle, will be null for a one-time customer invoice

planstring

Subscription plan handle for the plan used to automatically create the invoice or the case that an on-demand subscription invoice has been created that should include a plan order line

processingboolean

For asynchronous payment methods, e.g. MobilePay subscriptions, this flag indicates that an invoice transaction is in state processing and is awaiting result.

type's' | 'so' | 'soi' | 'co' | 'ch' required

The type of invoice: s - subscription recurring, so - subscription one-time, soi - subscription one-time instant, co - customer one-time, ch - charge

numberinteger

Sequential invoice number. Only present for subscription and customer invoices.

duestring date-time required

When is the invoice due, in ISO-8601 extended offset date-time format.

failedstring date-time

When the invoice failed, in ISO-8601 extended offset date-time format.

settledstring date-time

When the invoice settled, in ISO-8601 extended offset date-time format.

cancelledstring date-time

When the invoice was cancelled, in ISO-8601 extended offset date-time format.

authorizedstring date-time

When the invoice was authorized, if the invoice went through an authorize and settle flow, in ISO-8601 extended offset date-time format.

plan_versioninteger

Subscription plan version

dunning_planstring

Dunning plan handle

discount_amountinteger required

The potential discount amount deducted from the invoice amount including VAT

org_amountinteger required

The invoice original amount including VAT, may differ from amount if adjustments have been applied for the invoice

amount_vatinteger required

The invoice vat amount calculated as rounded summed fractional vats for each orderline

amount_ex_vatinteger required

The invoice amount without vat

settled_amountinteger required

Settled amount

refunded_amountinteger required

Refunded amount

authorized_amountinteger

Authorized amount

credited_amountinteger

Credited amount

period_numberinteger

The subscription period this invoice is for

recurring_payment_methodstring

Optional reference to recurring payment method created in conjunction with charging

additional_costsstring[] required

Additional cost handles for any additional costs added to this invoice

dunning_startstring date-time

When dunning for the invoice was started, in ISO-8601 extended offset date-time format.

dunning_countinteger

Number of dunning events for invoice (number of reminders sent)

dunning_expiredstring date-time

When dunning for the invoice expired, in ISO-8601 extended offset date-time format.

period_fromstring date-time

The start of billing period if the invoice is for a specific billing period, in ISO-8601 extended offset date-time format.

period_tostring date-time

The end of billing period if the invoice is for a specific billing period, in ISO-8601 extended offset date-time format.

settle_laterboolean

Whether this is a customer one-time invoice that will be settled later

settle_later_payment_methodstring

The payment method to use for a later settle of a one-time customer invoice

accounting_numberstring

Accounting number

download_urlstring

Url to invoice pdf

Example response

{
  "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.