Retrieve card payments - celdotro/marketplace GitHub Wiki

About

  • Retrieve information about monthly card payments

Class

celmarket\Payments\PaymentsReports

Method

getCardPayments

API

  • method: commissions
  • action: getCardOrdersByMonth

Parameters

  • month = luna

Response

An object with the following attributes

  • orders = orders -> array
    • (array element) = order -> object
      • orders_id = order's ID
      • status = order's status
      • nr_fact = invoice's number
      • serie = invoice's series
      • id_borderou = summary's ID
      • customers_name = client's name
      • order_total = order's total
  • total = orders' total

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Payments/1.getCardPayments.php

Example - JSON

{
"request": {
  "month": "X"
},

"response": {
  "orders": [
    {
      "orders_id": 1,
      "status": 1,
      "nr_fact": 1,
      "serie": "X",
      "id_borderou": 1,
      "customers_name": "X",
      "order_total": 1
    },
    "total": 1
  ]
}
}
⚠️ **GitHub.com Fallback** ⚠️