Spis treści

642

Jest to procedura, która zwraca faktury kontrahenta.

Plik input

<request>
  <proc_num>642</proc_num>
  <token>42dr43t54</token>
  <date_od>2016/01/01</date_od>
  <date_do>2016/03/08</date_do>
  <numrecpartnerpayer>14026</numrecpartnerpayer>
  <numrecpartner>9972</numrecpartner>
  <numrecpartneragent>80531</numrecpartneragent>
</request>

Plik output

{"Code_0642": {
  "HeadChk_List": [
    {
      "token": "42dr43t54",
      "text_ok": "",
      "flag_ok": true,
      "NumRecPartner": 9972,
      "NumRecHeadChk": 82275,
      "NumRecPartnerAgent": 80531,
      "HeadChkIdent": "FV\/00002\/2016",
      "DateGetWare": "2016-01-11",
      "DatePayMaybe": "2016-02-10",
      "Value_InMoney": 36.90000,
      "Value_Done_InMoney": 36.90000,
      "Value_Rest_InMoney": 0.00000
    },
    {
      "token": "42dr43t54",
      "text_ok": "",
      "flag_ok": true,
      "NumRecPartner": 9972,
      "NumRecHeadChk": 82272,
      "NumRecPartnerAgent": 80531,
      "HeadChkIdent": "FV\/00001\/2016",
      "DateGetWare": "2016-01-11",
      "DatePayMaybe": "2016-02-10",
      "Value_InMoney": 40.47000,
      "Value_Done_InMoney": 40.47000,
      "Value_Rest_InMoney": 0.00000
    },
    {
      "token": "42dr43t54",
      "text_ok": "",
      "flag_ok": true,
      "NumRecPartner": 9972,
      "NumRecHeadChk": 82341,
      "NumRecPartnerAgent": 80531,
      "HeadChkIdent": "FV\/00036\/2016",
      "DateGetWare": "2016-03-02",
      "DatePayMaybe": "2016-04-01",
      "Value_InMoney": 56.33000,
      "Value_Done_InMoney": 0.00000,
      "Value_Rest_InMoney": 56.33000
    }
  ]
}}

Poniżej znajduje się opis pól. Litera „W” oznacza, że pole będzie wyświetlane na Platformie.

Plik output z błędami

{"Code_0642": {
  "HeadChk_List": [
    {
      "token": "",
      "text_ok": "1) Nie podano: Token'a",
      "flag_ok": FALSE,
      "NumRecPartner": 0,
      "NumRecHeadChk": 0,
      "NumRecPartnerAgent": 0,
      "HeadChkIdent": "",
      "DateGetWare": NULL,
      "DatePayMaybe": NULL,
      "Value_InMoney": 0.00000,
      "Value_Done_InMoney": 0.00000,
      "Value_Rest_InMoney": 0.00000
    }
  ]
}}

Możliwe komunikaty błędów: