Skip to content

Payments

Payment transactions forming the debit side of the sales order. The sum of payments (minus change, tip, cashback etc.) matches the sum of revenue (credit) from the order lines. Payments are embedded within the order document.

Fields

FieldTypeRequiredDescription
soptidintegerYesUnique payment transaction line ID.
payment_guidguidYesUnique GUID of the payment transaction.
payment_type_idintegerYesType of payment. Reference to PaymentType collection.
amountfloatYesThe amount paid. Note: may include change for certain payment types.
changefloatYesThe amount change given back.
roundingfloatYesAmount used to round to currency acceptable notation. Can be positive or negative.
tipfloatYesAmount registered as tip.
cashbackfloatYesAmount withdrawal as cash (for integrated bank terminals supporting pay and cashback).
account_idintegerYesReference to the Account debited for the payment.
account_numstringYesGeneral ledger accounting number of the debit account.
account_descriptionstringYesMunu Cloud description text for the account.
card_type_namestringNoName of card issuer/card type (e.g., Visa, MasterCard, BankAxept).
card_ident_stringstringNoNon-personal data from payment card used (masked card number).
psp_refstringNoPayment Service Provider transaction reference.
customer_client_card_refintegerNoID of CustomerClientCard used as payment method.
invoice_customer_client_guidguidNoGUID of CustomerClient for invoice payments.
invoice_refstringNoConcatenated reference fields and values for invoice payments. Split char is `
payment_cancel_for_guidguidNoIf cancellation, reference to the payment transaction it cancels. All zeros if not a cancellation.

Example - Card Payment (BankAxept)

json
{
  "soptid": 187434642,
  "payment_type_id": 2,
  "amount": 63,
  "change": 0,
  "rounding": 0,
  "tip": 0,
  "cashback": 0,
  "card_type_name": "BankAxept *",
  "payment_guid": "a17b1666-550b-4fbe-8ec8-a93a90fc5218",
  "account_id": 35068,
  "account_num": 1923,
  "account_description": "Bankkort",
  "card_ident_string": "957852********8872",
  "psp_ref": "010288059334402026012017688884740180476000001"
}

Example - Credit Card Payment (Visa)

json
{
  "soptid": 187434650,
  "payment_type_id": 2,
  "amount": 85,
  "change": 0,
  "rounding": 0,
  "tip": 0,
  "cashback": 0,
  "card_type_name": "Visa",
  "payment_guid": "9271088a-02c2-430a-9509-54ed33300cad",
  "account_id": 35064,
  "account_num": 1921,
  "account_description": "Kreditkort",
  "card_ident_string": "498468******2946",
  "psp_ref": "010288070478322026012017688889710084313000001"
}

Example - Cash Payment with Change

json
{
  "soptid": 187434700,
  "payment_type_id": 0,
  "amount": 100,
  "change": 37,
  "rounding": 0,
  "tip": 0,
  "cashback": 0,
  "payment_guid": "d4e5f6a7-b8c9-0123-def0-234567890123",
  "account_id": 35067,
  "account_num": 1901,
  "account_description": "Kontant"
}

Example - Vipps Payment

json
{
  "soptid": 187434800,
  "payment_type_id": 7,
  "amount": 148,
  "change": 0,
  "rounding": 0,
  "tip": 0,
  "cashback": 0,
  "payment_guid": "e5f6a7b8-c9d0-1234-ef01-345678901234",
  "account_id": 35066,
  "account_num": 1953,
  "account_description": "Vipps"
}

Common Payment Type IDs

IDNameDescription
0KontantCash payment
1KortCard (manual)
2Integrert bankterminalIntegrated bank terminal
7VippsVipps mobile payment
9FakturaInvoice
700Vipps eComVipps eCommerce
600Verifone eComVerifone eCommerce

See PaymentTypes for the complete list.

Technical documentation for partners and integrators