sales

GET /companies/{companySlug}/sales/{saleId}/payments/{paymentId}

Changed on

Returns payment with specified id.

Request

  • Base URL
    https://api.fiken.no/api/v2
  • URL
    https://api.fiken.no/api/v2/companies/{companySlug}/sales/{saleId}/payments/{paymentId}
  • Auth
    OAuth 2
    Authorization code: https://fiken.no/oauth/authorize
    Token URL: https://fiken.no/oauth/token

Response

OK

paymentIdinteger

Id of given payment.

datestring date required

Payment date, format yyyy-mm-dd

accountstring required

Account associated with payment.

amountinteger required

Amount paid in the specified currency. If no currency is provided then currency defaults to "NOK". Formatted in cents (34000 = 340.00)

amountInNokinteger

Attribute of a foreign payment only. Is required if amount is provided in currency other than NOK and should be the actual amount that was received in the bank account. Fiken calculates the value based on the exchange rate for the given date if no amountInNok is sent. Formatted in cents (500000 = 5000.00)

currencystring

Only specify the currency if other than "NOK", otherwise default currency is "NOK". ISO 4217 currency code

feeinteger

Any fees additional to the amount paid in the specified currency. This is always a "NOK" amount even if the sale currency is a different currency.

Example response

{
  "paymentId": 2888156,
  "date": "2018-04-03",
  "account": "1920:10001",
  "amount": 34000,
  "amountInNok": 500000,
  "currency": "NOK"
}

Changes