Páginas filhas
  • NGF - Customer Panel - Endpoint Movements

01. OVERVIEW

Return the monthly values of the pending bills. The next 12 months of the reference date will be considered for the query, returning the values agglutinated by month.

02. ENDPOINT

Method used: POST
Transactions: /api/tfc/v1/CustomerFinancialTransactions/Movements

03. REQUEST PARAMETERS

Body parameters:

Attribute

Type

Description

Default

customerId

Character

Customer code

-

storeId

Character

Customer store

-

date

Character

reference date in the format YYYYMMDD 

-

branchId

Array

system branches to be considered in the query

-

periods

Numeric

the number of months for the query, considering the current month

-

Example:

body

body = {
        customerId: "000001",
        storeId: "01",
        date: "20200805",
        branchId: ["D MG 01 ", "D MG 02 "],
        periods: 5
        }

04. API RESPONSE

Json Object

Attribute

Type

Description

period

Character

period YYYYMM

value

Numeric

sum of values

Example:

response

items:[

    {

        period: "202008",

        value: 4720.8

    },

    {

        period: "202009",

        value: 250.4

    },

    {
        period: "202011",
        value: 8734.85
    },
    {
        period: "202012",
        value: 218765.4
    }
]
  • Sem rótulos