Skip to content

Instantly share code, notes, and snippets.

@philiplambok
Last active June 22, 2020 02:19
Show Gist options
  • Save philiplambok/79dc9e651f0b3b04310dfa9eb500a7ff to your computer and use it in GitHub Desktop.
Save philiplambok/79dc9e651f0b3b04310dfa9eb500a7ff to your computer and use it in GitHub Desktop.

GET /api/v2/summaries/manual_confirmations

Query Params:

  • group[optional], Group of data (daily, monthly, yearly), the default was daily
  • status[optional], Status of manual confirmation
  • start_date[optional], Start date of transaction date manual confirmation, the default was current date.
  • end_date[optional], End date of transaction date manual confirmation, the default was current date.
  • page[optional], the page of api. The default was 1

Fetch manual confirmations data by daily

GET /api/v2/summaries/manual_confirmations?group=daily&start_date=2020-01-01

{
  "data": [
    {
      "start_date": "2020-01-01",
      "end_date": "2020-01-01",
      "total_items": 5, 
      "amount": 500000,
      "amount_formatted": "Rp 50.000,00"
    },
    {
      "start_date": "2020-01-02",
      "end_date": "2020-01-02",
      "total_items": 1, 
      "amount": 200000,
      "amount_formatted": "Rp 20.000,00"
    },
  ],
  "meta": {
    "total_pages": 1,
    "total_items": 2,
    "total_amounts": 700000,
    "total_amounts_formated": "Rp 700.000,00"
  }
}

Fetch manual confirmations data by weekly

GET /api/v2/summaries/manual_confirmations?group=weekly&start_date=2020-01-01

{
  "data": [
    {
      "start_date": "2020-01-01",
      "end_date": "2020-01-07",
      "total_items": 5, 
      "amount": 500000,
      "amount_formatted": "Rp 50.000,00"
    },
    {
      "start_date": "2020-01-08",
      "end_date": "2020-01-15",
      "total_items": 1, 
      "amount": 200000,
      "amount_formatted": "Rp 20.000,00"
    },
  ],
  "meta": {
    "total_pages": 1,
    "total_items": 2,
    "total_amounts": 700000,
    "total_amounts_formated": "Rp 700.000,00"
  }
}

Fetch manual confirmations data by monthly

GET /api/v2/summaries/manual_confirmations?group=monthly&start_date=2020-01-01

{
  "data": [
    {
      "start_date": "2020-01-01",
      "end_date": "2020-01-31",
      "total_items": 5, 
      "amount": 500000,
      "amount_formatted": "Rp 50.000,00"
    },
    {
      "start_date": "2020-02-01",
      "end_date": "2020-02-30",
      "total_items": 1, 
      "amount": 200000,
      "amount_formatted": "Rp 20.000,00"
    },
  ],
  "meta": {
    "total_pages": 1,
    "total_items": 2,
    "total_amounts": 700000,
    "total_amounts_formated": "Rp 700.000,00"
  }
}

Fetch manual confirmations data by yearly

GET /api/v2/summaries/manual_confirmations?group=yearly&start_date=2019-01-01

{
  "data": [
    {
      "start_date": "2019-01-01",
      "end_date": "2019-12-31",
      "total_items": 5, 
      "amount": 500000,
      "amount_formatted": "Rp 50.000,00"
    },
    {
      "start_date": "2020-01-01",
      "end_date": "2020-12-31",
      "total_items": 1, 
      "amount": 200000,
      "amount_formatted": "Rp 20.000,00"
    },
  ],
  "meta": {
    "total_pages": 1,
    "total_items": 2,
    "total_amounts": 700000,
    "total_amounts_formated": "Rp 700.000,00"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment