Some useful information about Slice system (under construction).

  • We call "slice" a new transaction whose value is a fraction of an originating transaction.

    All slices created are given a new unique identifier, called "TID" (Transaction ID). And each of them also has 2 other TIDs: the TID of the parent transaction and the "top TID", which is the TID of it's oldest ancestor.

  • First thing to do is to get the first JWT using /gethash and the credentials (client_id and client_key) you received from Slice.

    On every other requests (except /gethash) you'll need to send a Header called "jwt" with the JWT hash.

    Each JWT will be valid for 1 hour.

    On every response you receive, it will return a new JWT to be used on next request.

  • In Brazil, it is common for consumers to pay using "installments on a credit card". In these cases, you currently have two Slice operating options:

    1. You send a list of payment dates through the "dueDates" field
      Or..
    2. You send only the "dueDate" field with the first transaction's installment and Slice calculates the other installment dates automatically adding 30 days.

  • Receivers are: the MERCHANTs, the MARKETPLACE, UNLIMINT and SLICE.

    The "slice" receiver block it's automatically setted by our system on newTransaction request, but it's present on request's example for better understanding.

    Most infos are optional. Except: receivers's DOCUMENT and receivers's AMOUNT.

    There's a special field called "info" that you can use to send any useful data, or additional information, that you want, such as some information that helps with reconciliation, for example.

Requests

https://api.slice.global/v1/gethash

This is the first request you'll do to get the JWT for use on all other requests!

Returns the first JWT access hashcode to be used on subsequent requests.

Example with CURL:

                        curl "https://api.slice.global/v1/gethash" \
                        -X POST \
                        -d "clientid=<client_id  provided by Slice>&clientkey=<client_key provided by Slice>" \
                        -H "Content-Type: application/x-www-form-urlencoded" 
                    

Request example with jQuery:

                        var url = "https://api.slice.global/v1/gethash";
                        var data = {
                                // Please use this credentials for testing :-) 
                                clientid: "<client_id  provided by Slice>",
                                clientkey: "<client_key provided by Slice>"
                            };
                        $.post(url, data, function(response){
                            console.log({url: url, data: data, response: response});
        
                            if (!response || response == 'undefined') {
                                alert('Error: no response received!');
                                return;
                            }
                            if (response.err && response.err > 0) {
                                alert('Error ' + response.err + ': ' + response.errmsg);
                                return;
                            }
        
                            // Setup HEADERS to be sent on all future requests made with $.post or $.get ...
                            $.ajaxSetup({
                                headers: {
                                'Content-type': 'application/json; charset=UTF-8',
                                'jwt': response.jwt;
                                }
                            });
                            
                        });
                    

Response example:

                        {
                            "id1": "MlhDSQ==",
                            "id2": 0,
                            "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTA3NjgsImV4cCI6MTYxNjI5NDM2OCwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.a_V5i8twAUaRt5qYF3SD3fczGKhLlZscRbgZ9ebyDJE"
                            }                        
                    

https://api.slice.global/v1/newtransaction

Send a new transaction with spliting infos to generate new slices.

* Remember to get the first JWT using the request /gethash. Then, send it on next request's header. On each response you will always receive a new JWT to be used in your next request's header.

Transaction Status Codes:

0On hold
1Enabled
2Advance Payment Requested
4Settlement Processing
5Settlement Error
8Settled
9Canceled

Example with CURL:

                        curl "https://api.slice.global/v1/newtransaction" \
                        -X POST \
                        -d "{\"profile\":\"UNLIMINT\",\"transaction\":{\"status\":\"1\",\"capture\":\"ecommerce\",..}" \
                        -H "Content-Type: application/json" \
                        -H "jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyNjcwNzUsImV4cCI6MTYxNjI3MDY3NSwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.tRLXw3P0Wwt9BEgOnk41_xTtblLLCr52DGH_L-kXbHI"
                    

Example with jQuery:

                        var url = "https://api.slice.global/v1/newtransaction";
                        var data = {
                            "profile": "UNLIMINT",
                            "transaction": {
                                "status": "1",
                                "capture": "ecommerce",
                                "paytype": "CREDIT",
                                "paybrand": "MASTERCARD",
                                "date": "2021-04-10 23:23:23",
                                "reference": "OLS-1XXXXX",
                                "amount": 1000.00,
                                "installments": 2,
                                "infos": {
                                    "maskedpan": "123456******1234",
                                    "TID": "111122223333444455556666"
                                },
                                "customer": {
                                    "document": "22200022200",
                                    "name": "JOHN SMITH",
                                    "phone": "11998765432",
                                    "email": "johnsmith_testing@gmail.com"
                                },
                                "cart": [
                                    {
                                        "merchant": {
                                            "document": "55000555000500",
                                            "name": "MARYS WEBSITE",
                                            "amount": 400.00,
                                            "dueDates": ["2021-05-12", "2021-06-14"],
                                            "account": {
                                                "code": "MARYS-ACC",
                                                "description": "Marys Account",
                                                "bank": {
                                                    "ted": "237",
                                                    "pix": "60746948",
                                                    "name": "BRADESCO",
                                                    "agency": "0987-6",
                                                    "account": "54.321-0",
                                                    "owner": "Mary Common"
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "merchant": {
                                            "document": "66000666000600",
                                            "name": "POPPINS WEBSITE",
                                            "amount": 400.00,
                                            "dueDates": ["2021-05-12", "2021-06-14"],
                                            "account": {
                                                "code": "POPPINS-ACC",
                                                "description": "Poppins Account",
                                                "bank": {
                                                    "ted": "001",
                                                    "pix": "00000000",
                                                    "name": "BANCO DO BRASIL",
                                                    "agency": "0123-4",
                                                    "account": "56.789-0",
                                                    "owner": "Poppins Sport Club"
                                                }
                                            }
                                        }
                                    }
                                ],
                                "marketplace-escrow": {
                                    "document": "UNL-18552346000168",
                                    "name": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                    "account": {
                                        "code": "OLIST-ESCROW",
                                        "description": "Internal Escrow Account",
                                        "bank": {
                                            "ted": "000",
                                            "pix": "00000000",
                                            "name": "ESCROW",
                                            "agency": "0000",
                                            "account": "000000",
                                            "owner": "Unlimint Internal Account"
                                        }
                                    }
                                },
                                "marketplace": {
                                    "document": "18552346000168",
                                    "name": "OLIST SERVICOS DIGITAIS LTDA",
                                    "alias": "OLISTSHOPS",
                                    "percentToAmount": 20.00,
                                    "dueDates": ["2021-05-10", "2021-06-10"],
                                    "account": {
                                        "code": "OLIST-ACC",
                                        "description": "Olist Account",
                                        "bank": {
                                            "ted": "001",
                                            "pix": "00000000",
                                            "name": "BANCO DO BRASIL",
                                            "agency": "0123-4",
                                            "account": "56.789-0",
                                            "owner": "Olist Serviços Digitais Ltda"
                                        }
                                    },
                                    "unlimint": {
                                        "document": "35542555000140",
                                        "name": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                        "percentBase": "total",
                                        "percentToAmount": 2.30,
                                        "dueDates": ["2021-05-07", "2021-06-07"],
                                        "slice": {
                                            "document": "40599957000110",
                                            "name": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                            "percentBase": "total",
                                            "percentToAmount": 0.20,
                                            "dueDates": ["2021-05-07", "2021-06-07"],
                                            "account": {
                                                "code": "SLICE-ACC",
                                                "description": "Slice Account",
                                                "bank": {
                                                    "ted": "341",
                                                    "pix": "60701190",
                                                    "name": "BANCO ITAU",
                                                    "agency": "5555-5",
                                                    "account": "555555-0",
                                                    "owner": "Slice Tecnologia da Informacao Ltda"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        };
                        $.post(url, data, function(response){
                            console.log({url: url, data: data, response: response});
        
                            if (!response || response == 'undefined') {
                                alert('Error: no response received!');
                                return;
                            }
                            if (response.err > 0) {
                                alert('Error ' + response.err + ': ' + response.errmsg);
                                return;
                            }
                            //...
                        });
                    

Response example:

                        {
                            "err": 0,
                            "errmsg": "",
                            "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyNjY0NjAsImV4cCI6MTYxNjI3MDA2MCwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.0PUSvRKpE82ayLrfq6d7Brn_75c5Lg2gdlWkwSQ4seM",
                            "data":                         
                            [
                                {
                                "TID": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                "SLICEDAMOUNT": "800.00",
                                "CANCELEDAMOUNT": "0.00",
                                "DUEAMOUNT": "200.00",
                                "DOCUMENT": "UNL-18552346000168",
                                "ACCOUNT": "OLIST-ESCROW",
                                "ROLE": "OLIST-ESCROW",
                                "DESCRIPTION": null,
                                "NAME": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                "REFERENCE": "OLS-1XXXXX",
                                "COUNTER": 0,
                                "LEVEL": 0,
                                "INSTALLMENTS": 2,
                                "DATE": "2021-04-10 23:23:23",
                                "AMOUNT": "1,000.00",
                                "STATUS": "1",
                                "created": "2021-03-21 03:54:52",
                                "created_by": "35542555000140",
                                "updated": "2021-03-21 03:54:52",
                                "updated_by": null
                                },
                                {
                                "TID": "75df8856-2745-5246-8e77-dc924e6c5534",
                                "SLICEDAMOUNT": "0.00",
                                "CANCELEDAMOUNT": "0.00",
                                "DUEAMOUNT": "400.00",
                                "DOCUMENT": "55000555000500",
                                "ACCOUNT": "MARYS-ACC",
                                "ROLE": "MERCHANT",
                                "DESCRIPTION": null,
                                "NAME": "MARYS WEBSITE",
                                "REFERENCE": "OLS-1XXXXX",
                                "COUNTER": 1,
                                "LEVEL": 1,
                                "INSTALLMENTS": 2,
                                "DATE": "2021-04-10 23:23:23",
                                "AMOUNT": "400.00",
                                "STATUS": "1",
                                "created": "2021-03-21 03:54:52",
                                "created_by": "35542555000140",
                                "updated": "2021-03-21 03:54:52",
                                "updated_by": null
                                },
                                {
                                "TID": "978a279b-e931-5f02-8b4f-8db16c72a508",
                                "SLICEDAMOUNT": "0.00",
                                "CANCELEDAMOUNT": "0.00",
                                "DUEAMOUNT": "400.00",
                                "DOCUMENT": "66000666000600",
                                "ACCOUNT": "POPPINS-ACC",
                                "ROLE": "MERCHANT",
                                "DESCRIPTION": null,
                                "NAME": "POPPINS WEBSITE",
                                "REFERENCE": "OLS-1XXXXX",
                                "COUNTER": 2,
                                "LEVEL": 1,
                                "INSTALLMENTS": 2,
                                "DATE": "2021-04-10 23:23:23",
                                "AMOUNT": "400.00",
                                "STATUS": "1",
                                "created": "2021-03-21 03:54:52",
                                "created_by": "35542555000140",
                                "updated": "2021-03-21 03:54:52",
                                "updated_by": null
                                },
                                {
                                "TID": "291e15e9-7861-5ce5-a0fc-f8592a61216a",
                                "SLICEDAMOUNT": "0.00",
                                "CANCELEDAMOUNT": "0.00",
                                "DUEAMOUNT": "200.00",
                                "DOCUMENT": "18552346000168",
                                "ACCOUNT": "OLIST-ACC",
                                "ROLE": "MARKETPLACE",
                                "DESCRIPTION": null,
                                "NAME": "OLIST SERVICOS DIGITAIS LTDA",
                                "REFERENCE": "OLS-1XXXXX",
                                "COUNTER": 3,
                                "LEVEL": 1,
                                "INSTALLMENTS": 2,
                                "DATE": "2021-04-10 23:23:23",
                                "AMOUNT": "200.00",
                                "STATUS": "1",
                                "created": "2021-03-21 03:54:52",
                                "created_by": "35542555000140",
                                "updated": "2021-03-21 03:54:52",
                                "updated_by": null
                                },
                                {
                                "TID": "1f3b03ef-73fe-525b-b2c1-14433f5c5a3d",
                                "SLICEDAMOUNT": "0.00",
                                "CANCELEDAMOUNT": "0.00",
                                "DUEAMOUNT": "23.00",
                                "DOCUMENT": "35542555000140",
                                "ACCOUNT": "100016",
                                "ROLE": "UNLIMINT",
                                "DESCRIPTION": null,
                                "NAME": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                "REFERENCE": "OLS-1XXXXX",
                                "COUNTER": 4,
                                "LEVEL": 2,
                                "INSTALLMENTS": 2,
                                "DATE": "2021-04-10 23:23:23",
                                "AMOUNT": "23.00",
                                "STATUS": "1",
                                "created": "2021-03-21 03:54:52",
                                "created_by": "35542555000140",
                                "updated": "2021-03-21 03:54:52",
                                "updated_by": null
                                },
                                {
                                "TID": "7089c2a0-70d0-5629-9b52-965ba0974a1e",
                                "SLICEDAMOUNT": "0.00",
                                "CANCELEDAMOUNT": "0.00",
                                "DUEAMOUNT": "2.00",
                                "DOCUMENT": "40599957000110",
                                "ACCOUNT": "100017",
                                "ROLE": "SLICE",
                                "DESCRIPTION": null,
                                "NAME": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                "REFERENCE": "OLS-1XXXXX",
                                "COUNTER": 5,
                                "LEVEL": 3,
                                "INSTALLMENTS": 2,
                                "DATE": "2021-04-10 23:23:23",
                                "AMOUNT": "2.00",
                                "STATUS": "1",
                                "created": "2021-03-21 03:54:52",
                                "created_by": "35542555000140",
                                "updated": "2021-03-21 03:54:52",
                                "updated_by": null
                                }
                            ]
                        }                        
                    

https://api.slice.global/v1/transactionlist

Returns a list of transactions based on filters.

Example with CURL:

                        curl "https://api.slice.global/v1/transactionlist" \
                        -X POST \
                        -d "installments=2" \
                        -H "jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTg4NjMsImV4cCI6MTYxNjMwMjQ2MywiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.Y3DqQWe8iKk4m8Sdjatx9OeGMmCyi7VM583QZUfUqQk" 
                    

Example with jQuery:

                        var url = "https://api.slice.global/v1/transactionlist";

                        /******************************
                        Optional parameters to FILTER results:
                        
                        date:         Filter by Date (Example: 2021-03-17)
                        date1:        Filter by Date interval - begin (Ex: 2021-03-17 00:00:00)
                        date2:        Filter by Date interval - end   (Ex: 2021-11-30 23:59:59)
                       
                        dueDate:      Filter by first dueDate or transaction. 
                        dueDate1:     Filter by dueDate interval - begin. 
                        dueDate2:     Final dueDate interval - end.
                       
                        document:     Filter by Recipient's Document. 
        
                        status:       Filter by Status. 
                        reference:    Filter by Transaction's Reference. 
                        installments: Filter by Installments.
                        level:        Filter by Level. 
                        role:         Filter by Slicer Role. 
                        tid:          Filter by TID. 
                        toptid:       Filter by Top TID, that is, the TID of the first transaction that originated this Slice.
                       ********************************/
        
                        var data = {
                                date1: "2021-03-17 00:00:00",
                                date2: "2021-12-31 23:59:59"
                            };
        
                        $.post(url, data, function(response){
                            console.log({url: url, data: data, response: response});
        
                            if (!response || response == 'undefined') {
                                alert('Error: no response received!');
                                return;
                            }
                            if (response.err > 0) {
                                alert('Error ' + response.err + ': ' + response.errmsg);
                                return;
                            }
                            //...
                        });
                    

Response example:

                        {
                            "err": 0,
                            "errmsg": "",
                            "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTkxMTQsImV4cCI6MTYxNjMwMjcxNCwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.c1D787wEjYT2FP3mENMNqgUgB62WTH90tDM-6q01Vjk",
                            "data": 
                            [
                               {
                                    "TID": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                    "DUEDATE": "2021-04-10 23:23:23",
                                    "SLICEDAMOUNT": "800.00",
                                    "CANCELEDAMOUNT": "0.00",
                                    "DUEAMOUNT": "200.00",
                                    "DOCUMENT": "UNL-18552346000168",
                                    "ACCOUNT": "OLIST-ESCROW",
                                    "ROLE": "OLIST-ESCROW",
                                    "DESCRIPTION": null,
                                    "NAME": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                    "REFERENCE": "OLS-1XXXXX",
                                    "COUNTER": 0,
                                    "LEVEL": 0,
                                    "INSTALLMENTS": 2,
                                    "DATE": "2021-04-10 23:23:23",
                                    "AMOUNT": "1,000.00",
                                    "STATUS": "1",
                                    "created": "2021-03-21 03:54:52",
                                    "created_by": "35542555000140",
                                    "updated": "2021-03-21 03:54:52",
                                    "updated_by": null
                                    },
                               {
                                    "TID": "75df8856-2745-5246-8e77-dc924e6c5534",
                                    "DUEDATE": "2021-05-12 00:00:00",
                                    "SLICEDAMOUNT": "0.00",
                                    "CANCELEDAMOUNT": "0.00",
                                    "DUEAMOUNT": "400.00",
                                    "DOCUMENT": "55000555000500",
                                    "ACCOUNT": "MARYS-ACC",
                                    "ROLE": "MERCHANT",
                                    "DESCRIPTION": null,
                                    "NAME": "MARYS WEBSITE",
                                    "REFERENCE": "OLS-1XXXXX",
                                    "COUNTER": 1,
                                    "LEVEL": 1,
                                    "INSTALLMENTS": 2,
                                    "DATE": "2021-04-10 23:23:23",
                                    "AMOUNT": "400.00",
                                    "STATUS": "1",
                                    "created": "2021-03-21 03:54:52",
                                    "created_by": "35542555000140",
                                    "updated": "2021-03-21 03:54:52",
                                    "updated_by": null
                                    },
                               {
                                    "TID": "978a279b-e931-5f02-8b4f-8db16c72a508",
                                    "DUEDATE": "2021-05-12 00:00:00",
                                    "SLICEDAMOUNT": "0.00",
                                    "CANCELEDAMOUNT": "0.00",
                                    "DUEAMOUNT": "400.00",
                                    "DOCUMENT": "66000666000600",
                                    "ACCOUNT": "POPPINS-ACC",
                                    "ROLE": "MERCHANT",
                                    "DESCRIPTION": null,
                                    "NAME": "POPPINS WEBSITE",
                                    "REFERENCE": "OLS-1XXXXX",
                                    "COUNTER": 2,
                                    "LEVEL": 1,
                                    "INSTALLMENTS": 2,
                                    "DATE": "2021-04-10 23:23:23",
                                    "AMOUNT": "400.00",
                                    "STATUS": "1",
                                    "created": "2021-03-21 03:54:52",
                                    "created_by": "35542555000140",
                                    "updated": "2021-03-21 03:54:52",
                                    "updated_by": null
                                    },
                               {
                                    "TID": "291e15e9-7861-5ce5-a0fc-f8592a61216a",
                                    "DUEDATE": "2021-05-10 00:00:00",
                                    "SLICEDAMOUNT": "0.00",
                                    "CANCELEDAMOUNT": "0.00",
                                    "DUEAMOUNT": "200.00",
                                    "DOCUMENT": "18552346000168",
                                    "ACCOUNT": "OLIST-ACC",
                                    "ROLE": "MARKETPLACE",
                                    "DESCRIPTION": null,
                                    "NAME": "OLIST SERVICOS DIGITAIS LTDA",
                                    "REFERENCE": "OLS-1XXXXX",
                                    "COUNTER": 3,
                                    "LEVEL": 1,
                                    "INSTALLMENTS": 2,
                                    "DATE": "2021-04-10 23:23:23",
                                    "AMOUNT": "200.00",
                                    "STATUS": "1",
                                    "created": "2021-03-21 03:54:52",
                                    "created_by": "35542555000140",
                                    "updated": "2021-03-21 03:54:52",
                                    "updated_by": null
                                    },
                               {
                                    "TID": "1f3b03ef-73fe-525b-b2c1-14433f5c5a3d",
                                    "DUEDATE": "2021-05-07 00:00:00",
                                    "SLICEDAMOUNT": "0.00",
                                    "CANCELEDAMOUNT": "0.00",
                                    "DUEAMOUNT": "23.00",
                                    "DOCUMENT": "35542555000140",
                                    "ACCOUNT": "100016",
                                    "ROLE": "UNLIMINT",
                                    "DESCRIPTION": null,
                                    "NAME": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                    "REFERENCE": "OLS-1XXXXX",
                                    "COUNTER": 4,
                                    "LEVEL": 2,
                                    "INSTALLMENTS": 2,
                                    "DATE": "2021-04-10 23:23:23",
                                    "AMOUNT": "23.00",
                                    "STATUS": "1",
                                    "created": "2021-03-21 03:54:52",
                                    "created_by": "35542555000140",
                                    "updated": "2021-03-21 03:54:52",
                                    "updated_by": null
                                    },
                               {
                                    "TID": "7089c2a0-70d0-5629-9b52-965ba0974a1e",
                                    "DUEDATE": "2021-05-07 00:00:00",
                                    "SLICEDAMOUNT": "0.00",
                                    "CANCELEDAMOUNT": "0.00",
                                    "DUEAMOUNT": "2.00",
                                    "DOCUMENT": "40599957000110",
                                    "ACCOUNT": "100017",
                                    "ROLE": "SLICE",
                                    "DESCRIPTION": null,
                                    "NAME": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                    "REFERENCE": "OLS-1XXXXX",
                                    "COUNTER": 5,
                                    "LEVEL": 3,
                                    "INSTALLMENTS": 2,
                                    "DATE": "2021-04-10 23:23:23",
                                    "AMOUNT": "2.00",
                                    "STATUS": "1",
                                    "created": "2021-03-21 03:54:52",
                                    "created_by": "35542555000140",
                                    "updated": "2021-03-21 03:54:52",
                                    "updated_by": null
                                    }
                            ]
                        }                    
                    

https://api.slice.global/v1/agendalist

Returns the scheduled financial entries based on filters.

Example with CURL:

                        curl "https://api.slice.global/v1/agendalist" \
                        -X POST \
                        -d "dueDate1=2021-03-17&dueDate2=2021-05-30" \
                        -H "jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTg4NjMsImV4cCI6MTYxNjMwMjQ2MywiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.Y3DqQWe8iKk4m8Sdjatx9OeGMmCyi7VM583QZUfUqQk" 
                    

Example with jQuery:

                        var url = "https://api.slice.global/v1/agendalist";

                        /******************************
                        Optional parameters to FILTER results:
                        
                        date:         Filter by Date (Example: 2021-03-17)
                        date1:        Filter by Date interval - begin (Ex: 2021-03-17 00:00:00)
                        date2:        Filter by Date interval - end   (Ex: 2021-11-30 23:59:59)
                       
                        dueDate:      Filter by first dueDate or transaction. 
                        dueDate1:     Filter by dueDate interval - begin. 
                        dueDate2:     Final dueDate interval - end.
                       
                        document:     Filter by Recipient's Document. 
        
                        status:       Filter by Status. 
                        reference:    Filter by Transaction's Reference. 
                        installments: Filter by Installments.
                        level:        Filter by Level. 
                        role:         Filter by Slicer Role. 
                        tid:          Filter by TID. 
                        toptid:       Filter by Top TID, that is, the TID of the first transaction that originated this Slice.
                       ********************************/
        
                        var data = {
                                date1: "2021-03-17 00:00:00",
                                date2: "2021-12-31 23:59:59"
                            };
        
                        $.post(url, data, function(response){
                            console.log({url: url, data: data, response: response});
        
                            if (!response || response == 'undefined') {
                                alert('Error: no response received!');
                                return;
                            }
                            if (response.err > 0) {
                                alert('Error ' + response.err + ': ' + response.errmsg);
                                return;
                            }
                            //...
                        });
                    

Response example:

                        {
                            "err": 0,
                            "errmsg": "",
                            "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTk1MTYsImV4cCI6MTYxNjMwMzExNiwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.bfP3r31-fLIXbj09vzbdLD-3QqLex5qXNNlYaOACyBY",
                            "data": 
                                [
                                    {
                                        "dueDate": "2021-04-10",
                                        "debCred": "D",
                                        "dueAmount": "500.00",
                                        "slicerRole": "CUSTOMER",
                                        "slicerDocument": "22200022200",
                                        "slicerName": "JOHN SMITH",
                                        "TID": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 0
                                        },
                                    {
                                        "dueDate": "2021-04-10",
                                        "debCred": "C",
                                        "dueAmount": "500.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 0
                                    },
                                    {
                                        "dueDate": "2021-05-07",
                                        "debCred": "D",
                                        "dueAmount": "11.50",
                                        "slicerRole": "MARKETPLACE",
                                        "slicerDocument": "18552346000168",
                                        "slicerName": "OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "1f3b03ef-73fe-525b-b2c1-14433f5c5a3d",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 2
                                    },
                                    {
                                        "dueDate": "2021-05-07",
                                        "debCred": "C",
                                        "dueAmount": "11.50",
                                        "slicerRole": "UNLIMINT",
                                        "slicerDocument": "35542555000140",
                                        "slicerName": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                        "TID": "1f3b03ef-73fe-525b-b2c1-14433f5c5a3d",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 2
                                    },
                                    {
                                        "dueDate": "2021-05-07",
                                        "debCred": "D",
                                        "dueAmount": "1.00",
                                        "slicerRole": "UNLIMINT",
                                        "slicerDocument": "35542555000140",
                                        "slicerName": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                        "TID": "7089c2a0-70d0-5629-9b52-965ba0974a1e",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 3
                                    },
                                    {
                                        "dueDate": "2021-05-07",
                                        "debCred": "C",
                                        "dueAmount": "1.00",
                                        "slicerRole": "SLICE",
                                        "slicerDocument": "40599957000110",
                                        "slicerName": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                        "TID": "7089c2a0-70d0-5629-9b52-965ba0974a1e",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 3
                                    },
                                    {
                                        "dueDate": "2021-05-10",
                                        "debCred": "D",
                                        "dueAmount": "100.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "291e15e9-7861-5ce5-a0fc-f8592a61216a",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-05-10",
                                        "debCred": "C",
                                        "dueAmount": "100.00",
                                        "slicerRole": "MARKETPLACE",
                                        "slicerDocument": "18552346000168",
                                        "slicerName": "OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "291e15e9-7861-5ce5-a0fc-f8592a61216a",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-05-10",
                                        "debCred": "D",
                                        "dueAmount": "500.00",
                                        "slicerRole": "CUSTOMER",
                                        "slicerDocument": "22200022200",
                                        "slicerName": "JOHN SMITH",
                                        "TID": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 0
                                    },
                                    {
                                        "dueDate": "2021-05-10",
                                        "debCred": "C",
                                        "dueAmount": "500.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 0
                                    },
                                    {
                                        "dueDate": "2021-05-12",
                                        "debCred": "D",
                                        "dueAmount": "200.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "75df8856-2745-5246-8e77-dc924e6c5534",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-05-12",
                                        "debCred": "C",
                                        "dueAmount": "200.00",
                                        "slicerRole": "MERCHANT",
                                        "slicerDocument": "55000555000500",
                                        "slicerName": "MARYS WEBSITE",
                                        "TID": "75df8856-2745-5246-8e77-dc924e6c5534",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-05-12",
                                        "debCred": "D",
                                        "dueAmount": "200.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "978a279b-e931-5f02-8b4f-8db16c72a508",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-05-12",
                                        "debCred": "C",
                                        "dueAmount": "200.00",
                                        "slicerRole": "MERCHANT",
                                        "slicerDocument": "66000666000600",
                                        "slicerName": "POPPINS WEBSITE",
                                        "TID": "978a279b-e931-5f02-8b4f-8db16c72a508",
                                        "installment": 1,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-06-06",
                                        "debCred": "D",
                                        "dueAmount": "11.50",
                                        "slicerRole": "MARKETPLACE",
                                        "slicerDocument": "18552346000168",
                                        "slicerName": "OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "1f3b03ef-73fe-525b-b2c1-14433f5c5a3d",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 2
                                    },
                                    {
                                        "dueDate": "2021-06-06",
                                        "debCred": "C",
                                        "dueAmount": "11.50",
                                        "slicerRole": "UNLIMINT",
                                        "slicerDocument": "35542555000140",
                                        "slicerName": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                        "TID": "1f3b03ef-73fe-525b-b2c1-14433f5c5a3d",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 2
                                    },
                                    {
                                        "dueDate": "2021-06-06",
                                        "debCred": "D",
                                        "dueAmount": "1.00",
                                        "slicerRole": "UNLIMINT",
                                        "slicerDocument": "35542555000140",
                                        "slicerName": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                        "TID": "7089c2a0-70d0-5629-9b52-965ba0974a1e",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 3
                                    },
                                    {
                                        "dueDate": "2021-06-06",
                                        "debCred": "C",
                                        "dueAmount": "1.00",
                                        "slicerRole": "SLICE",
                                        "slicerDocument": "40599957000110",
                                        "slicerName": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                        "TID": "7089c2a0-70d0-5629-9b52-965ba0974a1e",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 3
                                    },
                                    {
                                        "dueDate": "2021-06-09",
                                        "debCred": "D",
                                        "dueAmount": "100.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "291e15e9-7861-5ce5-a0fc-f8592a61216a",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-06-09",
                                        "debCred": "C",
                                        "dueAmount": "100.00",
                                        "slicerRole": "MARKETPLACE",
                                        "slicerDocument": "18552346000168",
                                        "slicerName": "OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "291e15e9-7861-5ce5-a0fc-f8592a61216a",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-06-11",
                                        "debCred": "D",
                                        "dueAmount": "200.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "75df8856-2745-5246-8e77-dc924e6c5534",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-06-11",
                                        "debCred": "C",
                                        "dueAmount": "200.00",
                                        "slicerRole": "MERCHANT",
                                        "slicerDocument": "55000555000500",
                                        "slicerName": "MARYS WEBSITE",
                                        "TID": "75df8856-2745-5246-8e77-dc924e6c5534",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-06-11",
                                        "debCred": "D",
                                        "dueAmount": "200.00",
                                        "slicerRole": "OLIST-ESCROW",
                                        "slicerDocument": "UNL-18552346000168",
                                        "slicerName": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                        "TID": "978a279b-e931-5f02-8b4f-8db16c72a508",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    },
                                    {
                                        "dueDate": "2021-06-11",
                                        "debCred": "C",
                                        "dueAmount": "200.00",
                                        "slicerRole": "MERCHANT",
                                        "slicerDocument": "66000666000600",
                                        "slicerName": "POPPINS WEBSITE",
                                        "TID": "978a279b-e931-5f02-8b4f-8db16c72a508",
                                        "installment": 2,
                                        "installments": 2,
                                        "toptid": "db91eb8d-8b42-5cff-894d-4da94a96b623",
                                        "trlevel": 1
                                    }
                                ]
                        }
                    

https://api.slice.global/v1/newslicers

Register new Slicers and Slicers's accounts on Slice system.

Example with CURL:

                        curl "https://api.slice.global/v1/newslicers" \
                        -X POST \
                        -d "{\"slicers\":[{\"role\":\"MERCHANT\",\"document\":\"55000555000500\",\"name\":\"MARYSWEBSITE\",\"accounts\":[ .. }" \
                        -H "Content-Type: application/json" \
                        -H "jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyNjcwNzUsImV4cCI6MTYxNjI3MDY3NSwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.tRLXw3P0Wwt9BEgOnk41_xTtblLLCr52DGH_L-kXbHI"
                    

Example with jQuery:

                        var url = "https://api.slice.global/v1/newslicers";
        
                        var data = {
                            "slicers": [
                                {
                                    "role": "MERCHANT",
                                    "document": "55000555000500",
                                    "name": "MARYS WEBSITE",
                                    "accounts": [
                                        {
                                            "code": "MARYS-ACC",
                                            "description": "Marys Account",
                                            "bank": {
                                                "ted": "237",
                                                "pix": "60746948",
                                                "name": "BRADESCO",
                                                "agency": "0987-6",
                                                "account": "54.321-0",
                                                "owner": "Mary Common"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "role": "MERCHANT",
                                    "document": "66000666000600",
                                    "name": "POPPINS WEBSITE",
                                    "accounts": [
                                        {
                                            "code": "POPPINS-ACC",
                                            "description": "Poppins Account",
                                            "bank": {
                                                "ted": "001",
                                                "pix": "00000000",
                                                "name": "BANCO DO BRASIL",
                                                "agency": "0123-4",
                                                "account": "56.789-0",
                                                "owner": "Poppins Sport Club"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "role": "MARKETPLACE-ESCROW",
                                    "document": "UNL-18552346000168",
                                    "name": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                    "accounts": [
                                        {
                                            "code": "OLIST-ESCROW",
                                            "description": "Internal Escrow Account",
                                            "bank": {
                                                "ted": "000",
                                                "pix": "00000000",
                                                "name": "ESCROW",
                                                "agency": "0000",
                                                "account": "000000",
                                                "owner": "Unlimint Internal Account"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "role": "MARKETPLACE",
                                    "document": "18552346000168",
                                    "name": "OLIST SERVICOS DIGITAIS LTDA",
                                    "accounts": [
                                        {
                                            "code": "OLIST-ACC",
                                            "description": "Olist Account",
                                            "bank": {
                                                "ted": "001",
                                                "pix": "00000000",
                                                "name": "BANCO DO BRASIL",
                                                "agency": "0123-4",
                                                "account": "56.789-0",
                                                "owner": "Olist Serviços Digitais Ltda"
                                            }
                                        }
                                    ]
                                },
                                {
                                    "role": "UNLIMINT",
                                    "document": "35542555000140",
                                    "name": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA"
                                },
                                {
                                    "role": "SLICE",
                                    "document": "40599957000110",
                                    "name": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                    "accounts": [
                                        {
                                            "code": "SLICE-ACC",
                                            "description": "Slice Account",
                                            "bank": {
                                                "ted": "341",
                                                "pix": "60701190",
                                                "name": "BANCO ITAU",
                                                "agency": "5555-5",
                                                "account": "555555-0",
                                                "owner": "Slice Tecnologia da Informacao Ltda"
                                            }
                                        }
                                    ]
                                }
                            ]
                        };
        
                        $.post(url, data, function(response){
                            console.log({url: url, data: data, response: response});
        
                            if (!response || response == 'undefined') {
                                alert('Error: no response received!');
                                return;
                            }
                            if (response.err && response.err > 0) {
                                alert('Error ' + response.err + ': ' + response.errmsg);
                                return;
                            }
                            //...
                        });
                    

Response example:

                        [
                            {
                                "role": "MERCHANT",
                                "document": "55000555000500",
                                "name": "MARYS WEBSITE",
                                "accounts": [
                                    {
                                        "code": "MARYS-ACC",
                                        "description": "Marys Account",
                                        "bank": {
                                            "ted": "237",
                                            "pix": "60746948",
                                            "name": "BRADESCO",
                                            "agency": "0987-6",
                                            "account": "54.321-0",
                                            "owner": "Mary Common"
                                        },
                                        "id": "10000",
                                        "action": "created"
                                    }
                                ],
                                "created_by": "35542555000140",
                                "id": 100000,
                                "pass": "06d1d6547afec6f945f4f4d6c3f287dc",
                                "action": "created"
                            },
                            {
                                "role": "MERCHANT",
                                "document": "66000666000600",
                                "name": "POPPINS WEBSITE",
                                "accounts": [
                                    {
                                        "code": "POPPINS-ACC",
                                        "description": "Poppins Account",
                                        "bank": {
                                            "ted": "001",
                                            "pix": "00000000",
                                            "name": "BANCO DO BRASIL",
                                            "agency": "0123-4",
                                            "account": "56.789-0",
                                            "owner": "Poppins Sport Club"
                                        },
                                        "id": "10001",
                                        "action": "created"
                                    }
                                ],
                                "created_by": "35542555000140",
                                "id": 100001,
                                "pass": "f75376983bb01978af432ed70752040b",
                                "action": "created"
                            },
                            {
                                "role": "MARKETPLACE-ESCROW",
                                "document": "UNL-18552346000168",
                                "name": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                "accounts": [
                                    {
                                        "code": "OLIST-ESCROW",
                                        "description": "Internal Escrow Account",
                                        "bank": {
                                            "ted": "000",
                                            "pix": "00000000",
                                            "name": "ESCROW",
                                            "agency": "0000",
                                            "account": "000000",
                                            "owner": "Unlimint Internal Account"
                                        },
                                        "id": "10002",
                                        "action": "created"
                                    }
                                ],
                                "created_by": "35542555000140",
                                "id": 100002,
                                "pass": "2d28b887e06b55d343923a529e0a0536",
                                "action": "created"
                            },
                            {
                                "role": "MARKETPLACE",
                                "document": "18552346000168",
                                "name": "OLIST SERVICOS DIGITAIS LTDA",
                                "accounts": [
                                    {
                                        "code": "OLIST-ACC",
                                        "description": "Olist Account",
                                        "bank": {
                                            "ted": "001",
                                            "pix": "00000000",
                                            "name": "BANCO DO BRASIL",
                                            "agency": "0123-4",
                                            "account": "56.789-0",
                                            "owner": "Olist Serviços Digitais Ltda"
                                        },
                                        "id": "10003",
                                        "action": "created"
                                    }
                                ],
                                "created_by": "35542555000140",
                                "id": 100003,
                                "pass": "0d667bd31eab52d78be19ba91222a454",
                                "action": "created"
                            },
                            {
                                "role": "UNLIMINT",
                                "document": "35542555000140",
                                "name": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                "created_by": "35542555000140",
                                "id": 100004,
                                "pass": "44ea6a354966fdcc811732c30159bd9a",
                                "action": "created"
                            },
                            {
                                "role": "SLICE",
                                "document": "40599957000110",
                                "name": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                "accounts": [
                                    {
                                        "code": "SLICE-ACC",
                                        "description": "Slice Account",
                                        "bank": {
                                            "ted": "341",
                                            "pix": "60701190",
                                            "name": "BANCO ITAU",
                                            "agency": "5555-5",
                                            "account": "555555-0",
                                            "owner": "Slice Tecnologia da Informacao Ltda"
                                        },
                                        "id": "10004",
                                        "action": "created"
                                    }
                                ],
                                "created_by": "35542555000140",
                                "id": 100005,
                                "pass": "caf1b917a251b6e225f4ccd5413c694b",
                                "action": "created"
                            }
                        ]
                    

https://api.slice.global/v1/slicerlist

Returns a list of slicers based on filters.

Example with CURL:

                        curl "https://api.slice.global/v1/slicerlist" \
                        -X POST \
                        -d "date1=2021-03-17&date2=2021-05-30" \
                        -H "jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTg4NjMsImV4cCI6MTYxNjMwMjQ2MywiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.Y3DqQWe8iKk4m8Sdjatx9OeGMmCyi7VM583QZUfUqQk" 
                    

Example with jQuery:

                        var url = "https://api.slice.global/v1/slicerlist";

                        /******************************
                        Optional parameters to FILTER results:
                            #TODO..
                        ********************************/
        
                        var data = {
                                //date1: "2021-03-17",
                                //date2: "2021-05-30"
                            };
        
                        $.post(url, data, function(response){
                            console.log({url: url, data: data, response: response});
        
                            if (!response || response == 'undefined') {
                                alert('Error: no response received!');
                                return;
                            }
                            if (response.err && response.err > 0) {
                                alert('Error ' + response.err + ': ' + response.errmsg);
                                return;
                            }
                            //...
                        });
                    

Response example:

                        {
                            "err": 0,
                            "errmsg": "",
                            "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYzMDAxNzQsImV4cCI6MTYxNjMwMzc3NCwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.8OJrprAuk27DEOHDoXNXR-Ll5VB8ncmBBeFUTLWtXvk",
                            "data": [
                                {
                                    "code": null,
                                    "document": "35542555000140",
                                    "role": "UNLIMINT",
                                    "name": "CARDPAY BRASIL SERVICOS DE INTERNET LTDA",
                                    "phone": "",
                                    "email": "",
                                    "accounts": null
                                },
                                {
                                    "code": null,
                                    "document": "22200022200",
                                    "role": "CUSTOMER",
                                    "name": "JOHN SMITH",
                                    "phone": "11998765432",
                                    "email": "johnsmith_testing@gmail.com",
                                    "accounts": null
                                },
                                {
                                    "code": null,
                                    "document": "55000555000500",
                                    "role": "MERCHANT",
                                    "name": "MARYS WEBSITE",
                                    "phone": "",
                                    "email": "",
                                    "accounts": [
                                        {
                                            "bank": {
                                                "pix": "60746948",
                                                "ted": "237",
                                                "name": "BRADESCO",
                                                "owner": "Mary Common",
                                                "agency": "0987-6",
                                                "account": "54.321-0"
                                            },
                                            "code": "MARYS-ACC",
                                            "description": "Marys Account"
                                        }
                                    ],
                                },
                                {
                                    "code": null,
                                    "document": "18552346000168",
                                    "role": "MARKETPLACE",
                                    "name": "OLIST SERVICOS DIGITAIS LTDA",
                                    "phone": "",
                                    "email": "",
                                    "accounts": [
                                        {
                                            "bank": {
                                                "pix": "00000000",
                                                "ted": "001",
                                                "name": "BANCO DO BRASIL",
                                                "owner": "Olist Serviços Digitais Ltda",
                                                "agency": "0123-4",
                                                "account": "56.789-0"
                                            },
                                            "code": "OLIST-ACC",
                                            "description": "Olist Account"
                                        }
                                    ],
                                },
                                {
                                    "code": null,
                                    "document": "66000666000600",
                                    "role": "MERCHANT",
                                    "name": "POPPINS WEBSITE",
                                    "phone": "",
                                    "email": "",
                                    "accounts": [
                                        {
                                            "bank": {
                                                "pix": "00000000",
                                                "ted": "001",
                                                "name": "BANCO DO BRASIL",
                                                "owner": "Poppins Sport Club",
                                                "agency": "0123-4",
                                                "account": "56.789-0"
                                            },
                                            "code": "POPPINS-ACC",
                                            "description": "Poppins Account"
                                        }
                                    ],
                                },
                                {
                                    "code": null,
                                    "document": "40599957000110",
                                    "role": "SLICE",
                                    "name": "SLICE TECNOLOGIA DA INFORMACAO LTDA",
                                    "phone": "",
                                    "email": "",
                                    "accounts": null
                                },
                                {
                                    "code": null,
                                    "document": "UNL-18552346000168",
                                    "role": "OLIST-ESCROW",
                                    "name": "UNLIMINT-OLIST SERVICOS DIGITAIS LTDA",
                                    "phone": "",
                                    "email": "",
                                    "accounts": [
                                        {
                                            "bank": {
                                                "pix": "00000000",
                                                "ted": "000",
                                                "name": "ESCROW",
                                                "owner": "Unlimint Internal Account",
                                                "agency": "0000",
                                                "account": "000000"
                                            },
                                            "code": "OLIST-ESCROW",
                                            "description": "Internal Escrow Account"
                                        }
                                    ],
                                }
                            ]
                        }
                    

https://api.slice.global/v1/updateslice

Used to update transaction/slice STATUS and/or voids of amount.

Example with CURL:

                        curl "https://api.slice.global/v1/updateslice" \
                        -X POST \
                        -d "tid=bce78bff-022d-50d7-b127-ab0b47f1f1bb&status=1&canceledAmount=123.45&replicate=none" \
                        -H "Content-Type: application/x-www-form-urlencoded" 
                        -H "jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTg4NjMsImV4cCI6MTYxNjMwMjQ2MywiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.Y3DqQWe8iKk4m8Sdjatx9OeGMmCyi7VM583QZUfUqQk" 
                    

Request example with jQuery:

                        var url = "https://api.slice.global/v1/gethash";
                        var data = {
                                tid: "bce78bff-022d-50d7-b127-ab0b47f1f1bb",
                                status: 1,
                                canceledAmount: 123.45,
                                replicate: "none"
                                // "replicate" parameter controls where the update 
                                // will touch transaction's predecessors(up) or successors(down), (both) or (none)
                            };

                        $.ajax({
                            url : url,
                            data: data,
                            type: "POST",
                            dataType : "json",
                            
                            headers: {"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTg4NjMsImV4cCI6MTYxNjMwMjQ2MywiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.Y3DqQWe8iKk4m8Sdjatx9OeGMmCyi7VM583QZUfUqQk"},

                            success: function(response) {
                                console.log({url: url, data: data, response: response});
        
                                if (!response || response == 'undefined') {
                                    alert('Error: no response received!');
                                    return;
                                }
                                if (response.err && response.err > 0) {
                                    alert('Error ' + response.err + ': ' + response.errmsg);
                                    return;
                                }
                            }
                        });

                    

Response example:

                        {
                            "id1": "MlhDSQ==",
                            "id2": 0,
                            "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTYyOTA3NjgsImV4cCI6MTYxNjI5NDM2OCwiaWQxIjoiTWxoRFNRPT0iLCJpZDIiOjB9.a_V5i8twAUaRt5qYF3SD3fczGKhLlZscRbgZ9ebyDJE"

                            #TODO..
                        }                        
                    

Support

Please feel free to contact us :)

Arthur Silveira:
whatsApp: +55 54 99629-4995
telegram: @arthursilveira
e-mail: arthur@slice.global

Francisco Silveira:
whatsApp: +55 54 99676-3258
telegram: @fmshighcompany
e-mail: francisco@slice.global

Thank you!