Get unbilled commissions - celdotro/marketplace GitHub Wiki

About

  • Get unbilled commissions

Class

celmarket\Payments\PaymentsReports

Method

getUnbilledCommissions

API

  • method: Commissions
  • action: getComosioaneNefacturate

Parameters

  • (none)

Response

An object with the following attributes

  • orders = orders -> object
    • (attribute) = month (formatted as MM-YYYY, where MM stands for the 2 digits month and YYYY for the 4 digits year) -> object
      • (attribute) = order -> object
        • total = order's total
        • cardPayment = card payment
        • products = products -> array
          • (array element) = product
            • tva = VAT percentage
            • price = price
            • topay = payment remainder
            • name = product's name
            • qty = product's quantity
            • model = product's model
            • comision = product's commission
            • valoareComision = absolute value of commission
        • date = date
  • totalToPay = payment's total
  • totalComissions = commission's total
  • currentTVA = current VAT percentage
  • cardPay = paid by card

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Payments/4.getUnbilledCommissions.php

Example - JSON

{
  "request": {
    
  },
  
  "response": {
    "orders": {
      "X": {
        "1": {
          "tva": 1,
          "price": 1,
          "topay": 1,
          "name": "X",
          "qty": 1,
          "model": "X",
          "comision": 1,
          "valoareComision": 1
        }
      }
    },
    "totalToPay": 1,
    "totalComissions": 1,
    "currentTVA": 1,
    "cardPay": 0
  }
}
⚠️ **GitHub.com Fallback** ⚠️