{
  "info": {
    "name": "Payku API — 🇨🇱 Chile (EN)",
    "description": "Official Payku API collection for Chile, generated from the OpenAPI specification.\n\n**Before you start:** also import the `payku-environment.postman_environment.json` environment and fill in `token_pub` and `token_priv` with your credentials from https://app.payku.cl/.\n\n`url_api` points at the sandbox (https://des.payku.cl). Switch it to https://app.payku.cl for production.\n\n**Important:** many error responses arrive with HTTP 200 — always check the `status` field in the JSON.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token_pub}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Transaction",
      "item": [
        {
          "name": "Generate a transaction",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/transaction",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "transaction"
              ]
            },
            "description": "This method allows to create a payment order to **Payku** and receives as a response the **URL** to redirect the payer's browser and the **token** that identifies the transaction.\nOnce the payer makes the successful payment, **Payku** will notify the result to the page of the business that was sent in the **urlnotify** parameter.\n\n**additional_parameters** = allows sending additional information to be registered in payku associated with the transaction **order_ext** within additional_parameters, it is a reserved word, and it is useful to associate the transaction to a unique merchant identifier",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"order\": \"98745\",\n  \"subject\": \"test subject\",\n  \"amount\": 25000,\n  \"currency\": \"CLP\",\n  \"payment\": 1,\n  \"expired\": \"2022-10-19 13:05:10\",\n  \"urlreturn\": \"https://youwebsite.com/urlreturn?orderClient=123\",\n  \"urlnotify\": \"https://youwebsite.com/urlnotify?orderClient=123\",\n  \"additional_parameters\": {\n    \"parameters1\": \"keyValue\",\n    \"parameters2\": \"keyValue2\",\n    \"order_ext\": \"fff-777\",\n    \"payer_rut\": \"111111111\",\n    \"payer_bank\": \"0001\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/transaction",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "transaction"
                  ]
                },
                "description": "This method allows to create a payment order to **Payku** and receives as a response the **URL** to redirect the payer's browser and the **token** that identifies the transaction.\nOnce the payer makes the successful payment, **Payku** will notify the result to the page of the business that was sent in the **urlnotify** parameter.\n\n**additional_parameters** = allows sending additional information to be registered in payku associated with the transaction **order_ext** within additional_parameters, it is a reserved word, and it is useful to associate the transaction to a unique merchant identifier",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"order\": \"98745\",\n  \"subject\": \"test subject\",\n  \"amount\": 25000,\n  \"currency\": \"CLP\",\n  \"payment\": 1,\n  \"expired\": \"2022-10-19 13:05:10\",\n  \"urlreturn\": \"https://youwebsite.com/urlreturn?orderClient=123\",\n  \"urlnotify\": \"https://youwebsite.com/urlnotify?orderClient=123\",\n  \"additional_parameters\": {\n    \"parameters1\": \"keyValue\",\n    \"parameters2\": \"keyValue2\",\n    \"order_ext\": \"fff-777\",\n    \"payer_rut\": \"111111111\",\n    \"payer_bank\": \"0001\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"pending\",\n  \"id\": \"trx32cb779c0a777fc68\",\n  \"url\": \"https://BASE-URL/payment_url\"\n}"
            }
          ]
        },
        {
          "name": "Get the status of multiple payments",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/transaction",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "transaction"
              ]
            },
            "description": "you can filter the search for transactions depending on their status. for example. /api/transaction?success=true or to fetch multiple status /api/transaction?pending=true&rejected=true.\n - date_init: indicates the date from which you want to start the transaction search, if this parameter is not sent the search will start with the current date.\n - date_end: indicates the date where you want the transaction search to end, if this parameter is not sent, the search will have the current date as the end date.\n - estatus: you can filter the search for transactions depending on their status. for example: /api/transaction?success=true or to bring multiple statuses /api/transaction?pending=true&rejected=true.\n\nFor pagination it is necessary to add the following at the end of the endpoint ?page=1&per_page=100 the first parameter being the page number and the second the number of records per page. In case you want to search for the transactions between the dates 01-09-2021 y 15-09-2021, also that they are only success status transactions, the url to use would be the following: https://[URL_BASE]/api/transaction?date_init=2021-09-01&date_end=2021-09-15&success=true."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/transaction",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "transaction"
                  ]
                },
                "description": "you can filter the search for transactions depending on their status. for example. /api/transaction?success=true or to fetch multiple status /api/transaction?pending=true&rejected=true.\n - date_init: indicates the date from which you want to start the transaction search, if this parameter is not sent the search will start with the current date.\n - date_end: indicates the date where you want the transaction search to end, if this parameter is not sent, the search will have the current date as the end date.\n - estatus: you can filter the search for transactions depending on their status. for example: /api/transaction?success=true or to bring multiple statuses /api/transaction?pending=true&rejected=true.\n\nFor pagination it is necessary to add the following at the end of the endpoint ?page=1&per_page=100 the first parameter being the page number and the second the number of records per page. In case you want to search for the transactions between the dates 01-09-2021 y 15-09-2021, also that they are only success status transactions, the url to use would be the following: https://[URL_BASE]/api/transaction?date_init=2021-09-01&date_end=2021-09-15&success=true."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"transaction\": [\n    {\n      \"id\": \"10ac494c1d8da71d98ea\",\n      \"status\": \"success\",\n      \"created_at\": \"2019-10-25 14:10:03\",\n      \"email\": \"alex@onequark.com\",\n      \"amount\": \"98745\",\n      \"order\": \"1572023402\",\n      \"subject\": \"1572023402\",\n      \"payment\": {\n        \"start\": \"2020-12-16 15:10:33\",\n        \"end\": \"2020-12-16 15:10:36\",\n        \"media\": \"Webpay\",\n        \"transaction_id\": \"107999\",\n        \"transaction_key\": null,\n        \"deposit_date\": \"2022-10-05\",\n        \"verification_key\": \"6669cbd982ef54c28f2f15fb9dc5262d\",\n        \"authorization_code\": \"107742\",\n        \"last_4_digits\": \"1233\",\n        \"installments\": 0,\n        \"card_type\": \"\",\n        \"additional_parameters\": {\n          \"identificador\": \"11.111.111-1\",\n          \"banco\": \"Banco Estado\",\n          \"numero_cuenta\": \"00126544977\"\n        },\n        \"currency\": \"CLP\"\n      },\n      \"nullify\": {\n        \"status\": \"complete\"\n      },\n      \"gateway_response\": {\n        \"status\": \"success\",\n        \"message\": \"successful transaction\"\n      }\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Get status of a payment",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/transaction/:idtrasaction",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "transaction",
                ":idtrasaction"
              ],
              "variable": [
                {
                  "key": "idtrasaction",
                  "value": "",
                  "description": "idTrasaction"
                }
              ]
            },
            "description": "This method allows you to obtain the information of a payment made in **Payku**"
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/transaction/:idtrasaction",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "transaction",
                    ":idtrasaction"
                  ],
                  "variable": [
                    {
                      "key": "idtrasaction",
                      "value": "",
                      "description": "idTrasaction"
                    }
                  ]
                },
                "description": "This method allows you to obtain the information of a payment made in **Payku**"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"id\": \"10ac494c1d8da71d98ea\",\n  \"created_at\": \"2019-10-25 14:10:03\",\n  \"order\": \"1572023402\",\n  \"email\": \"support@youwebsite.cl\",\n  \"subject\": \"1572023402\",\n  \"amount\": \"98745\",\n  \"payment\": {\n    \"start\": \"2020-12-16 15:10:33\",\n    \"end\": \"2020-12-16 15:10:36\",\n    \"media\": \"Webpay\",\n    \"transaction_id\": \"107999\",\n    \"transaction_key\": null,\n    \"deposit_date\": \"2022-10-05\",\n    \"verification_key\": \"6669cbd982ef54c28f2f15fb9dc5262d\",\n    \"authorization_code\": \"107742\",\n    \"last_4_digits\": \"1233\",\n    \"installments\": 0,\n    \"card_type\": \"\",\n    \"additional_parameters\": {\n      \"identificador\": \"11.111.111-1\",\n      \"banco\": \"Banco Estado\",\n      \"numero_cuenta\": \"00126544977\",\n      \"network\": {\n        \"ip_address\": \"192.0.2.123\"\n      }\n    },\n    \"currency\": \"CLP\"\n  },\n  \"nullify\": {\n    \"status\": \"complete\"\n  },\n  \"gateway_response\": {\n    \"status\": \"success\",\n    \"message\": \"successful transaction\"\n  }\n}"
            }
          ]
        }
      ],
      "description": "It allows the creation of transactions and later check their status."
    },
    {
      "name": "Escrow Transaction",
      "item": [
        {
          "name": "Authorize settlement",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/escrow",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "escrow"
              ]
            },
            "description": "This method allows authorizing the settlement of one or more transactions using their identifier, so that they can be deposited in the client's wallet or bank account.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"transactions\": [\n    \"trx3b4d77b43acd9a720\",\n    \"trx3b4d77b43acd9a385\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/escrow",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "escrow"
                  ]
                },
                "description": "This method allows authorizing the settlement of one or more transactions using their identifier, so that they can be deposited in the client's wallet or bank account.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"transactions\": [\n    \"trx3b4d77b43acd9a720\",\n    \"trx3b4d77b43acd9a385\"\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"transactions\": [\n    {\n      \"status\": \"liquidate\",\n      \"transaction_id\": \"trx3b4d77b43acd9a720\",\n      \"amount\": 15000,\n      \"availability_date\": \"2021-07-01\",\n      \"deposit_date\": \"2021-07-06\"\n    },\n    {\n      \"status\": \"pending\",\n      \"transaction_id\": \"trx3b4d77b43bdd9a540\",\n      \"amount\": 20000,\n      \"availability_date\": \"2021-07-25\",\n      \"deposit_date\": \"N/D\"\n    }\n  ]\n}"
            }
          ]
        }
      ],
      "description": "This functionality will allow escrow accounts authorized by Payku to settle transactions."
    },
    {
      "name": "Nullification",
      "item": [
        {
          "name": "Create nullification",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/nullification",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "nullification"
              ]
            },
            "description": "This method allows you to create a reversal of a transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"trxpr2a45s1dytg1\",\n  \"amount\": 25000,\n  \"subject\": \"transaction annulment\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/nullification",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "nullification"
                  ]
                },
                "description": "This method allows you to create a reversal of a transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"id\": \"trxpr2a45s1dytg1\",\n  \"amount\": 25000,\n  \"subject\": \"transaction annulment\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"nullify\": {\n    \"id\": \"trxpr2a45s1dytg1\",\n    \"amount\": 25000,\n    \"currency\": \"CLP\",\n    \"type\": \"total\",\n    \"status_nullify\": \"complete\",\n    \"payment\": {\n      \"gateway\": \"webpay\",\n      \"payment_type\": \"VC\"\n    },\n    \"created_at\": \"2017-05-17T19:12:57.189Z\",\n    \"updated_at\": \"2017-05-17T19:12:57.189Z\"\n  },\n  \"gateway_response\": {\n    \"status\": \"No availability in the wallet\",\n    \"message\": \"The cancellation will be executed after the amount requested is deducted from your next settlement\",\n    \"nptify\": \"No availability in the wallet\"\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/nullification\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "get nullification",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/nullification/:identifier",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "nullification",
                ":identifier"
              ],
              "variable": [
                {
                  "key": "identifier",
                  "value": "",
                  "description": "identifier"
                }
              ]
            },
            "description": "This method allows you to obtain nullification requests made to payku by means of an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identifier} for example: **api/nullification/trxpr2a45s1dytg1**."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/nullification/:identifier",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "nullification",
                    ":identifier"
                  ],
                  "variable": [
                    {
                      "key": "identifier",
                      "value": "",
                      "description": "identifier"
                    }
                  ]
                },
                "description": "This method allows you to obtain nullification requests made to payku by means of an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identifier} for example: **api/nullification/trxpr2a45s1dytg1**."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"nullify\": {\n    \"id\": \"trxpr2a45s1dytg1\",\n    \"amount\": 25000,\n    \"currency\": \"CLP\",\n    \"type\": \"total\",\n    \"status_nullify\": \"complete\",\n    \"payment\": {\n      \"gateway\": \"webpay\",\n      \"payment_type\": \"VC\"\n    },\n    \"created_at\": \"2017-05-17T19:12:57.189Z\",\n    \"updated_at\": \"2017-05-17T19:12:57.189Z\"\n  }\n}"
            }
          ]
        }
      ],
      "description": "Allows you to request the cancellation of a transaction made through payku."
    },
    {
      "name": "Marketplace",
      "item": [
        {
          "name": "Inserting a client",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maclient"
              ]
            },
            "description": "This method allows the insertion of client data.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"bank\": {\n    \"sbif\": \"0001\",\n    \"type\": \"1\",\n    \"num\": \"12312313121\",\n    \"rut\": \"111111111\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maclient"
                  ]
                },
                "description": "This method allows the insertion of client data.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"bank\": {\n    \"sbif\": \"0001\",\n    \"type\": \"1\",\n    \"num\": \"12312313121\",\n    \"rut\": \"111111111\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"madb93fc00a2cf6f4449\",\n  \"status\": \"register\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"joedoe@gmail.com\",\n  \"bank\": {\n    \"sbif\": \"1234\",\n    \"type\": \"1\",\n    \"num\": \"12312313121\",\n    \"rut\": \"111111111\"\n  },\n  \"affiliations\": 0,\n  \"created_at\": \"2020-09-28 20:42:59\",\n  \"update_at\": \"null\"\n}"
            }
          ]
        },
        {
          "name": "Query client data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maclient/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maclient",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows obtaining the details of a client."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maclient/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maclient",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows obtaining the details of a client."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"madb93fc00a2cf6f4449\",\n  \"status\": \"register\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"joedoe@gmail.com\",\n  \"bank\": {\n    \"sbif\": \"1234\",\n    \"type\": \"1\",\n    \"num\": \"12312313121\",\n    \"rut\": \"111111111\"\n  },\n  \"affiliations\": 0,\n  \"created_at\": \"2020-09-28 20:42:59\",\n  \"update_at\": \"null\"\n}"
            }
          ]
        },
        {
          "name": "update client",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maclient/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maclient",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows updating the data of a client.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Joe Doe Doe\",\n  \"phone\": \"923122312\",\n  \"bank\": {\n    \"sbif\": \"0001\",\n    \"type\": 3,\n    \"num\": \"9999999\",\n    \"rut\": \"111111111\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maclient/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maclient",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows updating the data of a client.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Joe Doe Doe\",\n  \"phone\": \"923122312\",\n  \"bank\": {\n    \"sbif\": \"0001\",\n    \"type\": 3,\n    \"num\": \"9999999\",\n    \"rut\": \"111111111\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"cl0be4c8e623c167bc8b777\",\n  \"status\": \"register\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"923122312\",\n  \"bank\": {\n    \"sbif\": \"0001\",\n    \"type\": \"3\",\n    \"num\": \"9999999\",\n    \"rut\": \"261009617\"\n  },\n  \"affiliations\": 2,\n  \"affiliations_details\": [\n    [\n      {\n        \"id\": \"s6df85b41df65b21se685\",\n        \"status\": \"register\",\n        \"token\": \"sgh65g1ns6fg5n1sfg2sr6j5nfg65shr6gh5s4r6h5fg6\",\n        \"name\": \"market1\",\n        \"percentage_affiliation\": 1,\n        \"percentage_client\": 99\n      },\n      {\n        \"id\": \"s6df85b41df65b21se685\",\n        \"status\": \"register\",\n        \"token\": \"sgh65g1ns6fg5n1sfg2sr6j5nfg65shr6gh5s4r6h5fg6\",\n        \"name\": \"market2\",\n        \"percentage_affiliation\": 1,\n        \"percentage_client\": 99\n      }\n    ]\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/maclient/{idClient}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Delete client",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maclient/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maclient",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows the removal of a client associated with an id."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maclient/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maclient",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows the removal of a client associated with an id."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"suspended\",\n  \"id\": \"madb93fc00a2cf6f4449\"\n}"
            }
          ]
        },
        {
          "name": "Manage Memberships",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maaffiliation",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maaffiliation"
              ]
            },
            "description": "This method allows you to register the data for membership.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"name\",\n  \"percentage\": \"20\",\n  \"affiliation\": [\n    [\n      \"madb93fc00a2cf6f4449\",\n      \"80\"\n    ]\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maaffiliation",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maaffiliation"
                  ]
                },
                "description": "This method allows you to register the data for membership.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"name\",\n  \"percentage\": \"20\",\n  \"affiliation\": [\n    [\n      \"madb93fc00a2cf6f4449\",\n      \"80\"\n    ]\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sucaab7865dceaff49d8b3\",\n  \"status\": \"register\",\n  \"name\": \"name\",\n  \"token\": \"eecd92fdbb8bf615e8215d6fbb30bb6ae6f82c9e1810f85b65bbeb472794c4a4\",\n  \"percentage\": \"20.00\",\n  \"affiliations\": [\n    {\n      \"id\": \"ma9fd16221a9645b0036\",\n      \"name\": \"name\",\n      \"percentage\": \"80.00\"\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Check membership data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maaffiliation/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maaffiliation",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows you to obtain the details of an membership."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maaffiliation/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maaffiliation",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows you to obtain the details of an membership."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sucaab7865dceaff49d8b3\",\n  \"status\": \"register\",\n  \"name\": \"name\",\n  \"token\": \"eecd92fdbb8bf615e8215d6fbb30bb6ae6f82c9e1810f85b65bbeb472794c4a4\",\n  \"percentage\": \"20.00\",\n  \"affiliations\": [\n    {\n      \"id\": \"ma9fd16221a9645b0036\",\n      \"name\": \"name\",\n      \"percentage\": \"80.00\"\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Remove membership",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/maaffiliation/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "maaffiliation",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows the removal of an membership associated with an id."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/maaffiliation/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "maaffiliation",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows the removal of an membership associated with an id."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"suspended\",\n  \"id\": \"eecd92fdbb8bf615e821\"\n}"
            }
          ]
        },
        {
          "name": "Generate a Marketplace transaction",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/transaction",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "transaction"
              ]
            },
            "description": "This method allows to create a payment order to **Payku** and receives as a response the **URL** to redirect the payer's browser and the **token** that identifies the transaction. Once the payer makes the successful payment, **Payku** will notify the result to the page of the business that was sent in the **urlnotify** parameter.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"order\": \"98745\",\n  \"subject\": \"test subject\",\n  \"amount\": 25000,\n  \"payment\": 1,\n  \"urlreturn\": \"https://youwebsite.com/urlreturn?orderClient=123\",\n  \"urlnotify\": \"https://youwebsite.com/urlnotify?orderClient=123\",\n  \"marketplace\": \"c1c879f4862d393ea6b326a313022dd98f0baa2869d3e9095c124199c9941030\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/transaction",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "transaction"
                  ]
                },
                "description": "This method allows to create a payment order to **Payku** and receives as a response the **URL** to redirect the payer's browser and the **token** that identifies the transaction. Once the payer makes the successful payment, **Payku** will notify the result to the page of the business that was sent in the **urlnotify** parameter.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"order\": \"98745\",\n  \"subject\": \"test subject\",\n  \"amount\": 25000,\n  \"payment\": 1,\n  \"urlreturn\": \"https://youwebsite.com/urlreturn?orderClient=123\",\n  \"urlnotify\": \"https://youwebsite.com/urlnotify?orderClient=123\",\n  \"marketplace\": \"c1c879f4862d393ea6b326a313022dd98f0baa2869d3e9095c124199c9941030\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"pending\",\n  \"id\": \"ma32cb779c0a777fc68\",\n  \"url\": \"https://BASE-URL/payment_url\"\n}"
            }
          ]
        }
      ],
      "description": "It allows the registration of clients, to later carry out the distribution according to the assigned percentage."
    },
    {
      "name": "Mall",
      "item": [
        {
          "name": "Create Mall transaction",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/mall",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "mall"
              ]
            },
            "description": "This method allows the insertion of data from a transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"payment\": 1,\n  \"merchant\": [\n    [\n      \"81b6179e4feeef2b50af71d660f830de\",\n      30000,\n      \"item1\",\n      null,\n      \"4545\"\n    ],\n    [\n      \"bcf6c06c523d9394be41bc0174c43d1476f274abb342955aac93cc8014737b3b\",\n      25000,\n      \"item2\",\n      null,\n      \"4546\"\n    ],\n    [\n      \"81b6179e4fffff2b50af71d66f7830de\",\n      15000,\n      \"item3\",\n      null,\n      \"4547\"\n    ]\n  ],\n  \"order\": 123,\n  \"urlreturn\": \"https://youwebsite.cl/urlreturn\",\n  \"urlnotify\": \"https://youwebsite.cl/urlnotify\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/mall",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "mall"
                  ]
                },
                "description": "This method allows the insertion of data from a transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"payment\": 1,\n  \"merchant\": [\n    [\n      \"81b6179e4feeef2b50af71d660f830de\",\n      30000,\n      \"item1\",\n      null,\n      \"4545\"\n    ],\n    [\n      \"bcf6c06c523d9394be41bc0174c43d1476f274abb342955aac93cc8014737b3b\",\n      25000,\n      \"item2\",\n      null,\n      \"4546\"\n    ],\n    [\n      \"81b6179e4fffff2b50af71d66f7830de\",\n      15000,\n      \"item3\",\n      null,\n      \"4547\"\n    ]\n  ],\n  \"order\": 123,\n  \"urlreturn\": \"https://youwebsite.cl/urlreturn\",\n  \"urlnotify\": \"https://youwebsite.cl/urlnotify\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"individual_orders\": [\n    {\n      \"merchant\": \"81b6179e4feeef2b50af71d660f830de\",\n      \"amount\": 30000,\n      \"subject\": \"item1\",\n      \"event\": null,\n      \"identificador\": \"9917068816213146\",\n      \"individual_order\": \"9654\"\n    },\n    {\n      \"merchant\": \"81b6179e4feeef2b50af71d66f7830de\",\n      \"amount\": 25000,\n      \"subject\": \"item2\",\n      \"event\": null,\n      \"identificador\": \"9917068816213146\",\n      \"individual_order\": \"9654\"\n    },\n    {\n      \"merchant\": \"81b6179e4fffff2b50af71d66f7830de\",\n      \"amount\": 15000,\n      \"subject\": \"item3\",\n      \"event\": null,\n      \"identificador\": \"9917068816213146\",\n      \"individual_order\": \"9654\"\n    }\n  ],\n  \"url\": \"https://BASE_URL/gateway/mall/malld200058ab44739ddee2adcd2f5\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/mall\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get Mall transaction",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/mall/:identificadortrasaccion",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "mall",
                ":identificadortrasaccion"
              ],
              "variable": [
                {
                  "key": "identificadortrasaccion",
                  "value": "",
                  "description": "identificadorTrasaccion"
                }
              ]
            },
            "description": "This method allows you to obtain the information of a payment made in **Payku**"
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/mall/:identificadortrasaccion",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "mall",
                    ":identificadortrasaccion"
                  ],
                  "variable": [
                    {
                      "key": "identificadortrasaccion",
                      "value": "",
                      "description": "identificadorTrasaccion"
                    }
                  ]
                },
                "description": "This method allows you to obtain the information of a payment made in **Payku**"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"id\": \"10ac494c1d8da71d98ea\",\n  \"created_at\": \"2019-10-25 14:10:03\",\n  \"amount\": \"98745\",\n  \"payment\": {\n    \"media\": \"Webpay\",\n    \"verification_key\": \"6669cbd982ef54c28f2f15fb9dc5262d\",\n    \"authorization_code\": \"107742\",\n    \"last_4_digits\": \"1233\",\n    \"card_type\": \"\",\n    \"currency\": \"CLP\"\n  },\n  \"merchant\": [\n    {\n      \"name\": \"John Doe\",\n      \"amount\": 30000,\n      \"subject\": \"item1\"\n    },\n    {\n      \"name\": \"Jane Doe\",\n      \"amount\": 25000,\n      \"subject\": \"item2\"\n    },\n    {\n      \"name\": \"Enteprise\",\n      \"amount\": 15000,\n      \"subject\": \"item3\"\n    }\n  ]\n}"
            }
          ]
        }
      ],
      "description": "The product has been specially designed for those integrating companies of different brands with different lines of business which can be grouped while maintaining their diversity in the same virtual space or mall.\n\nOffering the possibility of grouping the payment of purchases made in multiple virtual stores in a single transaction."
    },
    {
      "name": "Event",
      "item": [
        {
          "name": "Create an event",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/event",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "event"
              ]
            },
            "description": "This method allows you to create an event and receive the event details as a response.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"98374\",\n  \"name\": \"Event\",\n  \"date_event\": \"2020-12-20\",\n  \"date_closing_sales\": \"2020-12-19 23:59:00\",\n  \"date_payment\": \"2020-12-20\",\n  \"url_event\": \"https://example.cl/event1\",\n  \"url_logo\": \"https://example.cl/logo_event1.png\",\n  \"service_sale\": 10,\n  \"affiliation\": [\n    {\n      \"email\": \"afiliate1@domain.com\",\n      \"percent\": \"100\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/event",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "event"
                  ]
                },
                "description": "This method allows you to create an event and receive the event details as a response.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"98374\",\n  \"name\": \"Event\",\n  \"date_event\": \"2020-12-20\",\n  \"date_closing_sales\": \"2020-12-19 23:59:00\",\n  \"date_payment\": \"2020-12-20\",\n  \"url_event\": \"https://example.cl/event1\",\n  \"url_logo\": \"https://example.cl/logo_event1.png\",\n  \"service_sale\": 10,\n  \"affiliation\": [\n    {\n      \"email\": \"afiliate1@domain.com\",\n      \"percent\": \"100\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"id\": \"98374\",\n  \"event\": \"Event\",\n  \"date_event\": \"2020-12-20\",\n  \"date_payment\": \"2020-12-22\",\n  \"date_closing_sales\": \"2020-12-19 23:59:00\",\n  \"url_logo\": \"https://example.cl/logo_event1.png\",\n  \"url_event\": \"https://example.cl/event1\",\n  \"distribution\": {\n    \"affiliate\": \"100.00\",\n    \"service_sale\": \"10.00\"\n  },\n  \"affiliation\": {\n    \"id\": \"b99dfd8193ebfd37d4b9\",\n    \"email\": \"afiliate1@domain.com\",\n    \"percent\": \"100.00\",\n    \"status\": \"pending\"\n  },\n  \"paymentData\": {\n    \"count\": 0,\n    \"amount_general\": 0,\n    \"amount_affiliate\": 0,\n    \"fee\": 0,\n    \"balance\": 0\n  }\n}"
            }
          ]
        },
        {
          "name": "Get event details",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/event/:idevent",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "event",
                ":idevent"
              ],
              "variable": [
                {
                  "key": "idevent",
                  "value": "",
                  "description": "idEvent"
                }
              ]
            },
            "description": "This method allows obtaining the details of an event."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/event/:idevent",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "event",
                    ":idevent"
                  ],
                  "variable": [
                    {
                      "key": "idevent",
                      "value": "",
                      "description": "idEvent"
                    }
                  ]
                },
                "description": "This method allows obtaining the details of an event."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"98374\",\n  \"event\": \"Event\",\n  \"date_event\": \"2020-12-20\",\n  \"date_payment\": \"2020-12-22\",\n  \"date_closing_sales\": \"2020-12-19 23:59:00\",\n  \"url_logo\": \"https://example.cl/logo_event1.png\",\n  \"url_event\": \"https://example.cl/event1\",\n  \"distribution\": {\n    \"affiliate\": \"100.00\",\n    \"service_sale\": \"10.00\"\n  },\n  \"affiliation\": {\n    \"id\": \"b99dfd8193ebfd37d4b9\",\n    \"email\": \"afiliate1@domain.com\",\n    \"percent\": \"100.00\",\n    \"status\": \"pending\"\n  },\n  \"paymentData\": {\n    \"count\": 0,\n    \"amount_general\": 0,\n    \"amount_affiliate\": 0,\n    \"fee\": 0,\n    \"balance\": 0\n  }\n}"
            }
          ]
        }
      ],
      "description": "It allows the creation of events and later check their status."
    },
    {
      "name": "Subscription",
      "item": [
        {
          "name": "Insert data to a Client",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suclient"
              ]
            },
            "description": "This method allows the insertion of Client data.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe\",\n  \"rut\": \"11111111\",\n  \"phone\": \"923122312\",\n  \"address\": \"Moneda 101\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"850000\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suclient"
                  ]
                },
                "description": "This method allows the insertion of Client data.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe\",\n  \"rut\": \"11111111\",\n  \"phone\": \"923122312\",\n  \"address\": \"Moneda 101\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"850000\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"active\",\n  \"id\": \"cl0be4c8e623c167bc8b29\",\n  \"rut\": \"11111111\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"joedoe@gmail.com\",\n  \"address\": \"Moneda 101\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"850000\",\n  \"create_at\": \"2020-09-29\",\n  \"update_at\": null,\n  \"subcriptions\": null,\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suclient\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Query Client data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suclient/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suclient",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows obtaining the details of a client or the client's email.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suclient/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suclient",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows obtaining the details of a client or the client's email.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"active\",\n  \"id\": \"cl0be4c8e623c167bc8b29\",\n  \"rut\": \"11111111\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"joedoe@gmail.com\",\n  \"address\": \"Moneda 101\",\n  \"city\": \"Santiago\",\n  \"region\": \"Metropolitana\",\n  \"country\": \"Chile\",\n  \"postal_code\": \"850000\",\n  \"create_at\": \"2020-09-29\",\n  \"update_at\": null,\n  \"active_cards\": [\n    {\n      \"last_4_digits\": \"XXXXXXXXXXXX6622\",\n      \"identifier\": \"surec804a8ed60c747cb8839\",\n      \"card_type\": \"Visa\",\n      \"register\": \"2022-07-26 08:00:19\"\n    },\n    {\n      \"last_4_digits\": \"XXXXXXXXXXXX1234\",\n      \"identifier\": \"surec804a8ed60c747cb8843\",\n      \"card_type\": \"MasterCard\",\n      \"register\": \"2023-01-01 12:00:00\"\n    }\n  ],\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  },\n  \"subcriptions\": {\n    \"id\": \"su867f07772aa5f5175527\",\n    \"created_at\": \"2020-09-29 19:58:35\",\n    \"status\": \"active\",\n    \"amount\": \"15000\",\n    \"plan\": [\n      {\n        \"id\": \"pl9697fb170834ad42dd00\",\n        \"name\": \"test plan\",\n        \"currency\": \"CLP\"\n      }\n    ],\n    \"cards\": [\n      {\n        \"last_4_digits\": \"6622\",\n        \"card_type\": \"Visa\"\n      }\n    ],\n    \"transactions\": [\n      {\n        \"created_at\": \"2020-09-30 19:58:35\",\n        \"date_payment\": \"2020-09-30\",\n        \"amount\": \"10000\",\n        \"transaction\": \"204444\",\n        \"authorization_code\": \"1234\",\n        \"order\": \"001\",\n        \"description\": \"description\",\n        \"status\": \"success\"\n      }\n    ]\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suclient/{idClient}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Update Client data",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suclient/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suclient",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows updating a Client's data.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe Doe\",\n  \"phone\": \"923122312\",\n  \"address\": \"Moneda 121\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"750000\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suclient/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suclient",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows updating a Client's data.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe Doe\",\n  \"phone\": \"923122312\",\n  \"address\": \"Moneda 121\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"750000\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"active\",\n  \"id\": \"cl0be4c8e623c167bc8b29\",\n  \"name\": \"Joe Doe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"joedoe@gmail.com\",\n  \"address\": \"Moneda 121\",\n  \"city\": \"Santiago\",\n  \"region\": \"Metropolitana\",\n  \"country\": \"Chile\",\n  \"postal_code\": \"750000\",\n  \"create_at\": \"2020-09-29\",\n  \"update_at\": \"2020-10-2 08:32:52\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  },\n  \"subcriptions\": {\n    \"id\": \"su867f07772aa5f5175527\",\n    \"created_at\": \"2020-09-29 19:58:35\",\n    \"status\": \"active\",\n    \"amount\": \"15000\",\n    \"plan\": [\n      {\n        \"id\": \"pl9697fb170834ad42dd00\",\n        \"name\": \"test plan\",\n        \"currency\": \"CLP\"\n      }\n    ],\n    \"cards\": [\n      {\n        \"last_4_digits\": \"6622\",\n        \"card_type\": \"Visa\"\n      }\n    ],\n    \"transactions\": [\n      {\n        \"created_at\": \"2020-09-30 19:58:35\",\n        \"date_payment\": \"2020-09-30\",\n        \"amount\": \"10000\",\n        \"transaction\": \"204444\",\n        \"authorization_code\": \"1234\",\n        \"order\": \"001\",\n        \"description\": \"description\",\n        \"status\": \"success\"\n      }\n    ]\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suclient/{idClient}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Delete Client",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suclient/:idclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suclient",
                ":idclient"
              ],
              "variable": [
                {
                  "key": "idclient",
                  "value": "",
                  "description": "idClient"
                }
              ]
            },
            "description": "This method allows the elimination of a client associated with a user id.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suclient/:idclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suclient",
                    ":idclient"
                  ],
                  "variable": [
                    {
                      "key": "idclient",
                      "value": "",
                      "description": "idClient"
                    }
                  ]
                },
                "description": "This method allows the elimination of a client associated with a user id.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"id\": \"cl0be4c8e623c167bc8b29\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suclient/{idClient}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get all Clients",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suclient/customers",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suclient",
                "customers"
              ]
            },
            "description": "This method allows to obtain all Clients.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suclient/customers",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suclient",
                    "customers"
                  ]
                },
                "description": "This method allows to obtain all Clients.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"Customers\": [\n      {\n        \"status\": \"active\",\n        \"id\": \"cl0be4c8e623c167bc8b29\",\n        \"rut\": \"11111111\",\n        \"name\": \"Joe Doe\",\n        \"phone\": \"923122312\",\n        \"email\": \"joedoe@gmail.com\",\n        \"address\": \"Moneda 101\",\n        \"city\": \"Santiago\",\n        \"region\": \"Metropolitana\",\n        \"country\": \"Chile\",\n        \"postal_code\": \"850000\",\n        \"create_at\": \"2020-09-29\",\n        \"update_at\": null,\n        \"active_cards\": [\n          {\n            \"last_4_digits\": \"XXXXXXXXXXXX6622\",\n            \"identifier\": \"surec804a8ed60c747cb8839\",\n            \"card_type\": \"Visa\",\n            \"register\": \"2022-07-26 08:00:19\"\n          },\n          {\n            \"last_4_digits\": \"XXXXXXXXXXXX1234\",\n            \"identifier\": \"surec804a8ed60c747cb8843\",\n            \"card_type\": \"MasterCard\",\n            \"register\": \"2023-01-01 12:00:00\"\n          }\n        ],\n        \"subcriptions\": {\n          \"id\": \"su867f07772aa5f5175527\",\n          \"created_at\": \"2020-09-29 19:58:35\",\n          \"status\": \"active\",\n          \"amount\": \"15000\",\n          \"plan\": [\n            {\n              \"id\": null,\n              \"name\": null,\n              \"currency\": null\n            }\n          ],\n          \"cards\": [\n            {\n              \"last_4_digits\": null,\n              \"card_type\": null\n            }\n          ],\n          \"transactions\": [\n            {\n              \"created_at\": null,\n              \"date_payment\": null,\n              \"amount\": null,\n              \"transaction\": null,\n              \"authorization_code\": null,\n              \"order\": null,\n              \"description\": null,\n              \"status\": null\n            }\n          ]\n        }\n      }\n    ]\n  }\n]"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suclient/customers\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Insert data for subscription",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sususcription",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sususcription"
              ]
            },
            "description": "This method allows the user of a Payku account to create a subscription to a fixed-amount subscription plan, a consumer plan subscription and a variable-amount subscription to one of its clients, for this last type of subscription it is necessary to send the amount that will be charged in the subscription, it is important to note that when making this request for the first time there will be a charge of $ 50 that allows verifying that the card is active and valid, in the case of a fixed subscription plan the service charge will be automatic From the month following the subscription date and in the event that the subscription is to a consumer plan, it will be necessary to use the api / sutransaction endpoint to generate the transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan\": \"pl9697fb170834ad42dd00\",\n  \"client\": \"cl9b1e1dd988694f30fa30\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sususcription",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sususcription"
                  ]
                },
                "description": "This method allows the user of a Payku account to create a subscription to a fixed-amount subscription plan, a consumer plan subscription and a variable-amount subscription to one of its clients, for this last type of subscription it is necessary to send the amount that will be charged in the subscription, it is important to note that when making this request for the first time there will be a charge of $ 50 that allows verifying that the card is active and valid, in the case of a fixed subscription plan the service charge will be automatic From the month following the subscription date and in the event that the subscription is to a consumer plan, it will be necessary to use the api / sutransaction endpoint to generate the transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"plan\": \"pl9697fb170834ad42dd00\",\n  \"client\": \"cl9b1e1dd988694f30fa30\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"register\",\n  \"id\": \"sucaab7865dceaff49d8b3\",\n  \"url\": \"http://app.payku.cl/gateway/registrosuscripcion?tipoplan=2&plan=true&token=219&validacion=e6c50ba0e0\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sususcription\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get all subscriptions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sususcription",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sususcription"
              ]
            },
            "description": "This method allows obtaining all the subscriptions associated with a user ID, this method allows a pagination with a maximum of 100 records per page, in addition, it has a date filter, if this parameter is not entered, the current date will be taken, for the pagination, it is necessary to add the following at the end of the endpoint? page = 1 & per_page = 100, the first parameter being the number of the page and the second the number of records per page. status: you can filter the search for subscriptions depending on the status you want to search for by adding the status to search equal to true. If none is added, by default all subscriptions will be searched without discrimination by status.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sususcription",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sususcription"
                  ]
                },
                "description": "This method allows obtaining all the subscriptions associated with a user ID, this method allows a pagination with a maximum of 100 records per page, in addition, it has a date filter, if this parameter is not entered, the current date will be taken, for the pagination, it is necessary to add the following at the end of the endpoint? page = 1 & per_page = 100, the first parameter being the number of the page and the second the number of records per page. status: you can filter the search for subscriptions depending on the status you want to search for by adding the status to search equal to true. If none is added, by default all subscriptions will be searched without discrimination by status.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"subscriptions\": [\n      {\n        \"id\": \"sucaab7865dceaff49d8b7\",\n        \"status\": \"active\",\n        \"last_status_current_payment\": \"pending\",\n        \"start\": \"2019-07-22 18:34:49\",\n        \"end\": \"2020-06-12 00:00:00\",\n        \"client\": {\n          \"id\": \"su7e5e1c0b1bd2e37ec557\",\n          \"name\": \"name\",\n          \"email\": \"example@domain.com\",\n          \"rut\": \"1.111.111-1\",\n          \"phone\": \"56928265454\",\n          \"parametros\": [],\n          \"additional_parameters\": \"\"\n        },\n        \"plan\": {\n          \"id\": \"pl9697fb170834ad42dd00\",\n          \"name\": \"test plan\",\n          \"currency\": \"CLP\"\n        },\n        \"cards\": {\n          \"last_4_digits\": \"6622\",\n          \"card_type\": \"Visa\"\n        },\n        \"transactions\": [\n          {\n            \"created_at\": \"2020-09-30 19:58:35\",\n            \"amount\": \"10000\",\n            \"transaction\": \"204444\",\n            \"authorization_code\": \"1234\",\n            \"order\": \"001\",\n            \"description\": \"description\",\n            \"status\": \"success\"\n          }\n        ],\n        \"logs\": {\n          \"status\": [\n            {\n              \"change_date\": null,\n              \"initial_status\": null,\n              \"final_status\": null\n            }\n          ]\n        }\n      }\n    ]\n  }\n]"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sususcription\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get subscriptions V3",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sususcriptionv3",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sususcriptionv3"
              ]
            },
            "description": "This method allows obtaining all the subscriptions associated with a user ID, this method allows a pagination with a maximum of 4000 records per page, in addition, it has the following filters:\n\ndate_init: indicates the date from which you want to start the subscription search, if this parameter is not sent the search will start with the current date.\ndate_end: indicates the date where you want the subscription search to end, if this parameter is not sent, the search will have the current date as the end date.\nestatus: you can filter the search for subscriptions depending on the status you want to search for by adding the status to search equal to true, if none is added, by default all subscriptions will be searched without discrimination by status.\n\nFor pagination it is necessary to add the following at the end of the endpoint ?page=1&per_page=100 the first parameter being the page number and the second the number of records per page. In case you want to search for the subscriptions between the dates 01-09-2021 and 15-09-2021, also that they are only active status subscriptions, the url to use would be the following: https://[URL_BASE]/api/sususcriptionv3?date_init=2021-09-01&date_end=2021-09-15&active=true.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sususcriptionv3",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sususcriptionv3"
                  ]
                },
                "description": "This method allows obtaining all the subscriptions associated with a user ID, this method allows a pagination with a maximum of 4000 records per page, in addition, it has the following filters:\n\ndate_init: indicates the date from which you want to start the subscription search, if this parameter is not sent the search will start with the current date.\ndate_end: indicates the date where you want the subscription search to end, if this parameter is not sent, the search will have the current date as the end date.\nestatus: you can filter the search for subscriptions depending on the status you want to search for by adding the status to search equal to true, if none is added, by default all subscriptions will be searched without discrimination by status.\n\nFor pagination it is necessary to add the following at the end of the endpoint ?page=1&per_page=100 the first parameter being the page number and the second the number of records per page. In case you want to search for the subscriptions between the dates 01-09-2021 and 15-09-2021, also that they are only active status subscriptions, the url to use would be the following: https://[URL_BASE]/api/sususcriptionv3?date_init=2021-09-01&date_end=2021-09-15&active=true.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"subscriptions\": [\n      {\n        \"id\": \"sucaab7865dceaff49d8b7\",\n        \"estatus\": \"active\",\n        \"start\": \"2019-07-22 18:34:49\",\n        \"end\": \"2023-06-12 00:00:00\",\n        \"client\": {\n          \"id\": \"su7e5e1c0b1bd2e37ec557\",\n          \"name\": \"name\",\n          \"email\": \"johndoe@example.com\",\n          \"rut\": \"11.111.111-1\",\n          \"phone\": \"56928265454\",\n          \"parametros\": [],\n          \"additional_parameters\": \"\"\n        },\n        \"plan\": {\n          \"id\": \"pl9697fb170834ad42dd00\",\n          \"name\": \"test plan\",\n          \"currency\": \"CLP\"\n        },\n        \"active_cards\": {\n          \"last_4_digits\": \"XXXXXXXXXXXX6622\",\n          \"card_type\": \"Visa\"\n        },\n        \"logs\": {\n          \"status\": [\n            {\n              \"change_date\": null,\n              \"initial_status\": null,\n              \"final_status\": null\n            }\n          ]\n        },\n        \"paid\": [\n          {\n            \"payment_cycle_day\": \"2021-07-09\",\n            \"payment_day\": \"2021-07-09\",\n            \"status\": \"success\",\n            \"amount_paid\": 2500,\n            \"try_number\": 1,\n            \"paid_number\": 1,\n            \"transactions\": []\n          }\n        ]\n      }\n    ]\n  }\n]"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sususcriptionv3\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Insert data for the transaction",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sutransaction",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sutransaction"
              ]
            },
            "description": "This method allows the user of a Payku account to generate a unique transaction to one of his clients who are subscribed to a consumption plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"suscription\": \"sucaab7865dceaff49d8b3\",\n  \"amount\": \"10000\",\n  \"order\": \"001\",\n  \"description\": \"Description\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sutransaction",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sutransaction"
                  ]
                },
                "description": "This method allows the user of a Payku account to generate a unique transaction to one of his clients who are subscribed to a consumption plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"suscription\": \"sucaab7865dceaff49d8b3\",\n  \"amount\": \"10000\",\n  \"order\": \"001\",\n  \"description\": \"Description\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"order\": \"001\",\n  \"amount\": \"10000\",\n  \"transaction_id\": \"204444\",\n  \"verification_key\": \"025dcad37e071daa8bfc2df35189009db65692a4ff766856108be1675e870839\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sutransaction\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Check subscription data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sususcription/:idsuscription",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sususcription",
                ":idsuscription"
              ],
              "variable": [
                {
                  "key": "idsuscription",
                  "value": "",
                  "description": "idSuscription"
                }
              ]
            },
            "description": "This method allows you to get the details of a subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sususcription/:idsuscription",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sususcription",
                    ":idsuscription"
                  ],
                  "variable": [
                    {
                      "key": "idsuscription",
                      "value": "",
                      "description": "idSuscription"
                    }
                  ]
                },
                "description": "This method allows you to get the details of a subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sucaab7865dceaff49d8b7\",\n  \"status\": \"active\",\n  \"start\": \"2019-07-22 18:34:49\",\n  \"end\": \"2020-06-12 00:00:00\",\n  \"client\": {\n    \"id\": \"su7e5e1c0b1bd2e37ec557\",\n    \"name\": \"name\",\n    \"email\": \"example@domain.com\",\n    \"rut\": \"1.111.111-1\",\n    \"phone\": \"example@domain.com\",\n    \"parametros\": [],\n    \"additional_parameters\": \"\"\n  },\n  \"plan\": {\n    \"id\": \"pl9697fb170834ad42dd00\",\n    \"name\": \"test plan\",\n    \"currency\": \"CLP\"\n  },\n  \"cards\": {\n    \"last_4_digits\": \"6622\",\n    \"card_type\": \"Visa\"\n  },\n  \"active_cards\": [\n    {\n      \"last_4_digits\": \"XXXXXXXXXXXX6622\",\n      \"identifier\": \"surec804a8ed60c747cb8839\",\n      \"card_type\": \"Visa\",\n      \"register\": \"2022-07-26 08:00:19\"\n    },\n    {\n      \"last_4_digits\": \"XXXXXXXXXXXX1234\",\n      \"identifier\": \"surec804a8ed60c747cb8843\",\n      \"card_type\": \"MasterCard\",\n      \"register\": \"2023-01-01 12:00:00\"\n    }\n  ],\n  \"transactions\": [\n    {\n      \"created_at\": \"2020-09-30 19:58:35\",\n      \"amount\": \"10000\",\n      \"transaction\": \"204444\",\n      \"authorization_code\": \"1234\",\n      \"order\": \"001\",\n      \"description\": \"description\",\n      \"status\": \"success\"\n    }\n  ],\n  \"logs\": {\n    \"status\": [\n      {\n        \"change_date\": \"2021-02-17 16:11:53\",\n        \"initial_status\": \"register\",\n        \"final_status\": \"active\"\n      }\n    ]\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sususcription/{idSuscription}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Remove subscription",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sususcription/:idsuscription",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sususcription",
                ":idsuscription"
              ],
              "variable": [
                {
                  "key": "idsuscription",
                  "value": "",
                  "description": "idSuscription"
                }
              ]
            },
            "description": "This method allows the removal of a subscription associated with a subscription id.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sususcription/:idsuscription",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sususcription",
                    ":idsuscription"
                  ],
                  "variable": [
                    {
                      "key": "idsuscription",
                      "value": "",
                      "description": "idSuscription"
                    }
                  ]
                },
                "description": "This method allows the removal of a subscription associated with a subscription id.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": \"sucaab7865dceaff49d8b3\",\n  \"status\": \"success\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sususcription/{idSuscription}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Afiliate card to subscription",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suinscriptionscards",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suinscriptionscards"
              ]
            },
            "description": "This method allows the insertion of the data of a subscription card.\n\n**Important**\n\nIn case you need to renew your client's card. this method will allow you to add a new card to the subscription.\n\n**Immediately upon updating the card associated with the subscription, the system will be able to make the corresponding late charges according to the configuration of the subscribed plan!**,\nThat is, if the subscription is in a suspended status due to maximum collection attempts made, and the customer registers a new card, the system will be able to review pending payments, make the corresponding charge, and automatically activate the subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"suscription\": \"sucaab7865dceaff49d8b3\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suinscriptionscards",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suinscriptionscards"
                  ]
                },
                "description": "This method allows the insertion of the data of a subscription card.\n\n**Important**\n\nIn case you need to renew your client's card. this method will allow you to add a new card to the subscription.\n\n**Immediately upon updating the card associated with the subscription, the system will be able to make the corresponding late charges according to the configuration of the subscribed plan!**,\nThat is, if the subscription is in a suspended status due to maximum collection attempts made, and the customer registers a new card, the system will be able to review pending payments, make the corresponding charge, and automatically activate the subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"suscription\": \"sucaab7865dceaff49d8b3\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"id\": \"sucaab7865dceaff49d8b3\",\n  \"url\": \"https://BASE_URL/gateway/registrosuscripcion?plan=true&token=246&validacion=d6b32\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suinscriptionscards\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Remove card",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suscriptionsdeletecards",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suscriptionsdeletecards"
              ]
            },
            "description": "This method allows you to delete a card associated with the subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"suscription\": \"surec804a8ed60c0a8cb8839\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suscriptionsdeletecards",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suscriptionsdeletecards"
                  ]
                },
                "description": "This method allows you to delete a card associated with the subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"suscription\": \"surec804a8ed60c0a8cb8839\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"Delete\",\n  \"card\": \"surec804a8ed60c0a8cb8839\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suscriptionsdeletecards\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Check plan data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suplan/:idplan",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suplan",
                ":idplan"
              ],
              "variable": [
                {
                  "key": "idplan",
                  "value": "",
                  "description": "idPlan"
                }
              ]
            },
            "description": "This method allows to obtain the details of a plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suplan/:idplan",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suplan",
                    ":idplan"
                  ],
                  "variable": [
                    {
                      "key": "idplan",
                      "value": "",
                      "description": "idPlan"
                    }
                  ]
                },
                "description": "This method allows to obtain the details of a plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"plans\": {\n    \"id\": \"pl4293e97a87195bb9edcd\",\n    \"status\": \"active\",\n    \"name\": \"Test plan\",\n    \"code\": \"001\",\n    \"description\": \"Test Plan\",\n    \"url_notify_payment\": \"\",\n    \"url_notify_suscription\": \"\",\n    \"total_suscription\": 0,\n    \"total_suscription_active\": 0\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suplan/{idPlan}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Check data from all plans",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suplan/plans",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suplan",
                "plans"
              ]
            },
            "description": "This method allows to obtain the details of all the plans.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suplan/plans",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suplan",
                    "plans"
                  ]
                },
                "description": "This method allows to obtain the details of all the plans.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"plans\": [\n    {\n      \"id\": \"pl4293e97a87195bb9edcd\",\n      \"status\": \"active\",\n      \"name\": \"Test plan\",\n      \"code\": \"001\",\n      \"description\": \"Test Plan\",\n      \"url_notify_payment\": \"\",\n      \"url_notify_suscription\": \"\",\n      \"total_suscription\": 0,\n      \"total_suscription_active\": 0\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suplan/plans\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        }
      ],
      "description": "It allows the linking of a plan to Clients, to later make recurring charges automatically, as defined in each plan."
    },
    {
      "name": "Consumption Subscription",
      "item": [
        {
          "name": "Insert data to a Client",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suclient",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suclient"
              ]
            },
            "description": "This method allows the insertion of Client data.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe\",\n  \"rut\": \"11111111\",\n  \"phone\": \"923122312\",\n  \"address\": \"Moneda 101\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"850000\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suclient",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suclient"
                  ]
                },
                "description": "This method allows the insertion of Client data.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"joedoe@gmail.com\",\n  \"name\": \"Joe Doe\",\n  \"rut\": \"11111111\",\n  \"phone\": \"923122312\",\n  \"address\": \"Moneda 101\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"850000\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"active\",\n  \"id\": \"cl0be4c8e623c167bc8b29\",\n  \"rut\": \"11111111\",\n  \"name\": \"Joe Doe\",\n  \"phone\": \"923122312\",\n  \"email\": \"joedoe@gmail.com\",\n  \"address\": \"Moneda 101\",\n  \"country\": \"Chile\",\n  \"region\": \"Metropolitana\",\n  \"city\": \"Santiago\",\n  \"postal_code\": \"850000\",\n  \"create_at\": \"2020-09-29\",\n  \"update_at\": null,\n  \"subcriptions\": null,\n  \"additional_parameters\": {\n    \"parameter_1\": \"example\",\n    \"parameter_2\": \"example\"\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suclient/\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Insert the data of a plan.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suplan",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suplan"
              ]
            },
            "description": "This method allows the insertion of data for the creation of a plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Test plan\",\n  \"description\": \"Test Plan\",\n  \"url_notify_suscription\": \"https://youwebsite.com/urlnotifysuscription\",\n  \"url_notify_payment\": \"https://youwebsite.com/urlnotifypayment\",\n  \"url_success_payment\": \"https://youwebsite.com/urlsuccesspayment\",\n  \"url_failed_payment\": \"https://youwebsite.com/urlfailedpayment\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suplan",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suplan"
                  ]
                },
                "description": "This method allows the insertion of data for the creation of a plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Test plan\",\n  \"description\": \"Test Plan\",\n  \"url_notify_suscription\": \"https://youwebsite.com/urlnotifysuscription\",\n  \"url_notify_payment\": \"https://youwebsite.com/urlnotifypayment\",\n  \"url_success_payment\": \"https://youwebsite.com/urlsuccesspayment\",\n  \"url_failed_payment\": \"https://youwebsite.com/urlfailedpayment\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"id\": \"pl4293e97a87195bb9edcd\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suplan/\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Insert data for subscription",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sususcription",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sususcription"
              ]
            },
            "description": "This method allows the user of a Payku account to create a subscription to a fixed-amount subscription plan, a consumer plan subscription and a variable-amount subscription to one of its clients, for this last type of subscription it is necessary to send the amount that will be charged in the subscription, it is important to note that when making this request for the first time there will be a charge of $ 50 that allows verifying that the card is active and valid, in the case of a fixed subscription plan the service charge will be automatic From the month following the subscription date and in the event that the subscription is to a consumer plan, it will be necessary to use the api / sutransaction endpoint to generate the transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan\": \"pl9697fb170834ad42dd00\",\n  \"client\": \"cl9b1e1dd988694f30fa30\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sususcription",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sususcription"
                  ]
                },
                "description": "This method allows the user of a Payku account to create a subscription to a fixed-amount subscription plan, a consumer plan subscription and a variable-amount subscription to one of its clients, for this last type of subscription it is necessary to send the amount that will be charged in the subscription, it is important to note that when making this request for the first time there will be a charge of $ 50 that allows verifying that the card is active and valid, in the case of a fixed subscription plan the service charge will be automatic From the month following the subscription date and in the event that the subscription is to a consumer plan, it will be necessary to use the api / sutransaction endpoint to generate the transaction.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"plan\": \"pl9697fb170834ad42dd00\",\n  \"client\": \"cl9b1e1dd988694f30fa30\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"register\",\n  \"id\": \"sucaab7865dceaff49d8b3\",\n  \"url\": \"http://app.payku.cl/gateway/registrosuscripcion?tipoplan=2&plan=true&token=219&validacion=e6c50ba0e0\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sususcription/\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Insert data for the transaction",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/sutransaction",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "sutransaction"
              ]
            },
            "description": "This method allows the user of a Payku account to generate a unique transaction to one of his clients who are subscribed to a consumption plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"suscription\": \"sucaab7865dceaff49d8b3\",\n  \"amount\": \"10000\",\n  \"order\": \"001\",\n  \"description\": \"Description\",\n  \"marketplace\": \"ma0690b6451a7043d5\",\n  \"card\": \"surea041d8a4413949425fec\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/sutransaction",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "sutransaction"
                  ]
                },
                "description": "This method allows the user of a Payku account to generate a unique transaction to one of his clients who are subscribed to a consumption plan.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"suscription\": \"sucaab7865dceaff49d8b3\",\n  \"amount\": \"10000\",\n  \"order\": \"001\",\n  \"description\": \"Description\",\n  \"marketplace\": \"ma0690b6451a7043d5\",\n  \"card\": \"surea041d8a4413949425fec\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"order\": \"001\",\n  \"amount\": \"10000\",\n  \"transaction_id\": \"204444\",\n  \"verification_key\": \"025dcad37e071daa8bfc2df35189009db65692a4ff766856108be1675e870839\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/sutransaction/\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Remove card",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/suscriptionsdeletecards",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "suscriptionsdeletecards"
              ]
            },
            "description": "This method allows you to delete a card associated with the subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"suscription\": \"surec804a8ed60c0a8cb8839\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/suscriptionsdeletecards",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "suscriptionsdeletecards"
                  ]
                },
                "description": "This method allows you to delete a card associated with the subscription.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"suscription\": \"surec804a8ed60c0a8cb8839\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"Delete\",\n  \"card\": \"surec804a8ed60c0a8cb8839\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/suscriptionsdeletecards/\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        }
      ],
      "description": "It is the set of methods that will allow our users to create clients, plans, subscriptions and carry out consumer plan transactions.\n\nThe main use of these methods is to make one-time charges to a customer for a service or product, such as hiring a delivery service for a product or the purchase of a particular product."
    },
    {
      "name": "Wallet",
      "item": [
        {
          "name": "Make payments to third parties from my wallet",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/wallet/payout",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "wallet",
                "payout"
              ]
            },
            "description": "This method allows you to create a payment order to a third party using the funds in your wallet virtual **payku**.\n\n**Note:** For testing purposes (Development environment only), specific amounts will be processed automatically:\n \n&bull; Amounts 1000, 2000, 3000: Will be marked as **approved** automatically.\n \n&bull; Amounts 1500, 2500, 3500: Will be marked as **rejected** automatically.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"support@youwebsite.cl\",\n  \"phone\": \"923122312\",\n  \"subject\": \"test subject\",\n  \"currency\": \"CLP\",\n  \"order\": \"98745\",\n  \"amount\": 25000,\n  \"accountbank_name\": \"José Manuel Muñoz Alarcon\",\n  \"accountbank_rut\": 111111111,\n  \"accountbank_sbif\": \"0001\",\n  \"accountbank_type\": \"1\",\n  \"accountbank_num\": \"12312312312\",\n  \"url_notify\": \"https://youwebsite.com/urlnotify?orderClient=98745\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"keyValue\",\n    \"parameter_2\": \"keyValue2\",\n    \"order_ext\": \"fff-777\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/wallet/payout",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "wallet",
                    "payout"
                  ]
                },
                "description": "This method allows you to create a payment order to a third party using the funds in your wallet virtual **payku**.\n\n**Note:** For testing purposes (Development environment only), specific amounts will be processed automatically:\n \n&bull; Amounts 1000, 2000, 3000: Will be marked as **approved** automatically.\n \n&bull; Amounts 1500, 2500, 3500: Will be marked as **rejected** automatically.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"support@youwebsite.cl\",\n  \"phone\": \"923122312\",\n  \"subject\": \"test subject\",\n  \"currency\": \"CLP\",\n  \"order\": \"98745\",\n  \"amount\": 25000,\n  \"accountbank_name\": \"José Manuel Muñoz Alarcon\",\n  \"accountbank_rut\": 111111111,\n  \"accountbank_sbif\": \"0001\",\n  \"accountbank_type\": \"1\",\n  \"accountbank_num\": \"12312312312\",\n  \"url_notify\": \"https://youwebsite.com/urlnotify?orderClient=98745\",\n  \"additional_parameters\": {\n    \"parameter_1\": \"keyValue\",\n    \"parameter_2\": \"keyValue2\",\n    \"order_ext\": \"fff-777\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"identifier_wallet\": \"wab5f7232dafff18f9\",\n  \"identifier_payout\": \"mor33e36b01e8a11b9ee\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/wallet/payout\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Withdraw money from my wallet",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/wallet/withdraw",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "wallet",
                "withdraw"
              ]
            },
            "description": "This method allows you to create a settlement to the merchant's bank account using the funds from your virtual wallet **payku**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subject\": \"test subject\",\n  \"currency\": \"CLP\",\n  \"order\": \"98745\",\n  \"amount\": 25000\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/wallet/withdraw",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "wallet",
                    "withdraw"
                  ]
                },
                "description": "This method allows you to create a settlement to the merchant's bank account using the funds from your virtual wallet **payku**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"subject\": \"test subject\",\n  \"currency\": \"CLP\",\n  \"order\": \"98745\",\n  \"amount\": 25000\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"Success\",\n  \"identifier_wallet\": \"wab5f7232dafff18f9\"\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/wallet/withdraw\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get balance",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/wallet",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "wallet"
              ]
            },
            "description": "This method allows you to obtain the balance of your virtual wallet **payku**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/wallet",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "wallet"
                  ]
                },
                "description": "This method allows you to obtain the balance of your virtual wallet **payku**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"current_id\": \"wa8a6171ab83323c37\",\n  \"amount_available\": 1766,\n  \"currency\": \"CLP\",\n  \"filter\": {\n    \"page\": 1,\n    \"per_page\": 1000,\n    \"currency\": \"CLP\",\n    \"id\": \"wa8a6171ab83323c37\"\n  },\n  \"wallet_movements\": [\n    {\n      \"id\": \"wa8a6171ab83323c37\",\n      \"order\": \"tme5\",\n      \"subject\": \"tme5 asunto\",\n      \"created_at\": \"2022-06-09 20:07:02\",\n      \"income_expense\": \"expense\",\n      \"status\": \"current\",\n      \"amount\": \"3680\",\n      \"actual_amount\": \"1766\",\n      \"origin_liquidation\": null,\n      \"currency\": \"CLP\",\n      \"payout\": {\n        \"id\": \"war3999847529816f2\",\n        \"phone\": \"111111111\",\n        \"email\": \"test@test.cl\",\n        \"subject\": \"subject order\",\n        \"amount\": \"3680\",\n        \"accountbank_rut\": \"111111111\",\n        \"accountbank_name\": \"test\",\n        \"accountbank_type\": 1,\n        \"accountbank_num\": 123123123,\n        \"accountbank_sbif\": \"0001\",\n        \"status\": \"pending\",\n        \"update_at\": \"2022-06-09 21:10:46\"\n      }\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/wallet\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "get moves",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/wallet/list",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "wallet",
                "list"
              ]
            },
            "description": "This method allows you to obtain the movements of your virtual wallet **payku**, this method allows pagination with a maximum of 4000 records per page, In addition, it has the following filters:\n\nFor pagination it is necessary to add the following at the end of the endpoint ?page=1&per_page=100 being the first parameter the number of the page and the second the number of records per page As for example: **api/wallet/list?page=1&per_page=100**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/wallet/list",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "wallet",
                    "list"
                  ]
                },
                "description": "This method allows you to obtain the movements of your virtual wallet **payku**, this method allows pagination with a maximum of 4000 records per page, In addition, it has the following filters:\n\nFor pagination it is necessary to add the following at the end of the endpoint ?page=1&per_page=100 being the first parameter the number of the page and the second the number of records per page As for example: **api/wallet/list?page=1&per_page=100**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"current_id\": \"wa8a6171ab83323c37\",\n  \"amount_available\": 1766,\n  \"currency\": \"CLP\",\n  \"filter\": {\n    \"page\": 1,\n    \"per_page\": 1000,\n    \"currency\": \"CLP\",\n    \"id\": \"wa8a6171ab83323c37\"\n  },\n  \"wallet_movements\": [\n    {\n      \"id\": \"wa8a6171ab83323c37\",\n      \"order\": \"tme5\",\n      \"subject\": \"tme5 asunto\",\n      \"created_at\": \"2022-06-09 20:07:02\",\n      \"income_expense\": \"expense\",\n      \"status\": \"current\",\n      \"amount\": \"3680\",\n      \"actual_amount\": \"1766\",\n      \"origin_liquidation\": null,\n      \"currency\": \"CLP\",\n      \"payout\": {\n        \"id\": \"war3999847529816f2\",\n        \"phone\": \"111111111\",\n        \"email\": \"test@test.cl\",\n        \"subject\": \"subject order\",\n        \"amount\": \"3680\",\n        \"accountbank_rut\": \"111111111\",\n        \"accountbank_name\": \"test\",\n        \"accountbank_type\": 1,\n        \"accountbank_num\": 123123123,\n        \"accountbank_sbif\": \"0001\",\n        \"status\": \"pending\",\n        \"update_at\": \"2022-06-09 21:10:46\"\n      }\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/wallet/list\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "Get move",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/wallet/:identificadorwallet",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "wallet",
                ":identificadorwallet"
              ],
              "variable": [
                {
                  "key": "identificadorwallet",
                  "value": "",
                  "description": "identificadorWallet"
                }
              ]
            },
            "description": "This method allows to obtain a movement of your virtual wallet **payku** using an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identificadorWallet} for example: **api/wallet/wa24bg36767**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/wallet/:identificadorwallet",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "wallet",
                    ":identificadorwallet"
                  ],
                  "variable": [
                    {
                      "key": "identificadorwallet",
                      "value": "",
                      "description": "identificadorWallet"
                    }
                  ]
                },
                "description": "This method allows to obtain a movement of your virtual wallet **payku** using an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identificadorWallet} for example: **api/wallet/wa24bg36767**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"current_id\": \"wa8a6171ab83323c37\",\n  \"amount_available\": 1766,\n  \"currency\": \"CLP\",\n  \"filter\": {\n    \"page\": 1,\n    \"per_page\": 1000,\n    \"currency\": \"CLP\",\n    \"id\": \"wa8a6171ab83323c37\"\n  },\n  \"wallet_movements\": [\n    {\n      \"id\": \"wa8a6171ab83323c37\",\n      \"order\": \"tme5\",\n      \"subject\": \"tme5 asunto\",\n      \"created_at\": \"2022-06-09 20:07:02\",\n      \"income_expense\": \"expense\",\n      \"status\": \"current\",\n      \"amount\": \"3680\",\n      \"actual_amount\": \"1766\",\n      \"origin_liquidation\": null,\n      \"currency\": \"CLP\",\n      \"payout\": {\n        \"id\": \"war3999847529816f2\",\n        \"phone\": \"111111111\",\n        \"email\": \"test@test.cl\",\n        \"subject\": \"subject order\",\n        \"amount\": \"3680\",\n        \"accountbank_rut\": \"111111111\",\n        \"accountbank_name\": \"test\",\n        \"accountbank_type\": 1,\n        \"accountbank_num\": 123123123,\n        \"accountbank_sbif\": \"0001\",\n        \"status\": \"pending\",\n        \"update_at\": \"2022-06-09 21:10:46\"\n      }\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/wallet/{identificadorWallet}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "get payout",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/payout/:identificadorpayout",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "payout",
                ":identificadorpayout"
              ],
              "variable": [
                {
                  "key": "identificadorpayout",
                  "value": "",
                  "description": "identificadorPayout"
                }
              ]
            },
            "description": "This method allows you to obtain a movement of payments to third parties from your **payku** virtual wallet using an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identificadorPayout} for example: **api/payout/wa24bg36767**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/payout/:identificadorpayout",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "payout",
                    ":identificadorpayout"
                  ],
                  "variable": [
                    {
                      "key": "identificadorpayout",
                      "value": "",
                      "description": "identificadorPayout"
                    }
                  ]
                },
                "description": "This method allows you to obtain a movement of payments to third parties from your **payku** virtual wallet using an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identificadorPayout} for example: **api/payout/wa24bg36767**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payout\": {\n    \"id\": \"war3999847529816f2\",\n    \"phone\": \"111111111\",\n    \"email\": \"test@test.cl\",\n    \"subject\": \"subject order\",\n    \"amount\": \"3680\",\n    \"accountbank_rut\": \"111111111\",\n    \"accountbank_name\": \"test\",\n    \"accountbank_type\": 1,\n    \"accountbank_num\": 123123123,\n    \"accountbank_sbif\": \"0001\",\n    \"status\": \"pending\",\n    \"update_at\": \"2022-06-09 21:10:46\",\n    \"origin_wallet\": \"wa1933f37cdaf7d1c6\"\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/payout/{identificadorPayout}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        },
        {
          "name": "get payout V3",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Sign",
                "value": "{{firma}}"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/payoutv3/:identificadorpayout",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "payoutv3",
                ":identificadorpayout"
              ],
              "variable": [
                {
                  "key": "identificadorpayout",
                  "value": "",
                  "description": "identificadorPayout"
                }
              ]
            },
            "description": "This method allows you to obtain a movement of payments to third parties from your **payku** virtual wallet using an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identificadorPayout} for example: **api/payoutv3/mor33e36b01e8a11b9ee**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Sign",
                    "value": "{{firma}}"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/payoutv3/:identificadorpayout",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "payoutv3",
                    ":identificadorpayout"
                  ],
                  "variable": [
                    {
                      "key": "identificadorpayout",
                      "value": "",
                      "description": "identificadorPayout"
                    }
                  ]
                },
                "description": "This method allows you to obtain a movement of payments to third parties from your **payku** virtual wallet using an identifier:\n\nTo perform the query it is necessary to add the following at the end of the endpoint /{identificadorPayout} for example: **api/payoutv3/mor33e36b01e8a11b9ee**.\n\n---\nThis operation requires the `Sign` signature (HMAC-SHA256 with your private token). The pre-request script computes it automatically from the request body."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"payout\": {\n    \"id\": \"war3999847529816f2\",\n    \"phone\": \"111111111\",\n    \"email\": \"test@test.cl\",\n    \"subject\": \"subject order\",\n    \"amount\": \"3680\",\n    \"accountbank_rut\": \"111111111\",\n    \"accountbank_name\": \"test\",\n    \"accountbank_type\": 1,\n    \"accountbank_num\": 123123123,\n    \"accountbank_sbif\": \"0001\",\n    \"status\": \"pending\",\n    \"update_at\": \"2022-06-09 21:10:46\",\n    \"origin_wallet\": \"wa1933f37cdaf7d1c6\",\n    \"reason_rejection\": \" Error CCA 51. Cuenta Beneficiario no Existe, error_creditor_account_not_found\"\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Computes the `Sign` header documented in the Firma / Signature section.",
                  "const requestPath = encodeURIComponent(\"/api/payoutv3/{identificadorPayout}\");",
                  "let body = {};",
                  "try { body = JSON.parse(pm.request.body ? pm.request.body.raw : \"{}\") || {}; } catch (e) { body = {}; }",
                  "",
                  "const pairs = Object.keys(body).sort()",
                  "  .filter((key) => body[key] !== null && typeof body[key] !== \"object\")",
                  "  .map((key) => encodeURIComponent(key) + \"=\" + encodeURIComponent(body[key]).replace(/%20/g, \"+\"));",
                  "",
                  "const concat = [requestPath].concat(pairs).join(\"&\");",
                  "const sign = CryptoJS.HmacSHA256(concat, pm.environment.get(\"token_priv\")).toString();",
                  "pm.environment.set(\"firma\", sign);"
                ]
              }
            }
          ]
        }
      ],
      "description": "With this Wallet method you can create your wallet in **Payku**."
    },
    {
      "name": "Conciliation",
      "item": [
        {
          "name": "Get conciliations.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/conciliation",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "conciliation"
              ]
            },
            "description": "Allows you to obtain bank reconciliations of the money generated by your account and deposited by **payku** in the days corresponding to your payment.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"date_init\": \"2022-10-20\",\n  \"date_end\": \"2022-10-21\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/conciliation",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "conciliation"
                  ]
                },
                "description": "Allows you to obtain bank reconciliations of the money generated by your account and deposited by **payku** in the days corresponding to your payment.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"date_init\": \"2022-10-20\",\n  \"date_end\": \"2022-10-21\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"conciliation\": [\n    {\n      \"id\": \"107999\",\n      \"created_at\": \"2019-10-25 14:10:03\",\n      \"amount_available\": 98745,\n      \"amount_deposit\": 0,\n      \"status\": \"pending\",\n      \"destiny\": \"wallet\",\n      \"currency\": \"CLP\",\n      \"wallet\": null,\n      \"transaction\": [\n        {\n          \"transaction_id\": \"rsyt68j4dhg6k8j54ut698dt6hj84\",\n          \"payment_key\": \"pra934939d607922f9e\",\n          \"order\": \"6544\",\n          \"start\": \"2020-12-16 15:10:33\",\n          \"end\": \"2020-12-16 15:10:36\",\n          \"deposit_date\": \"2022-10-05\",\n          \"amount\": 250000,\n          \"fee\": 15000,\n          \"amount_deposit\": 235000,\n          \"media\": \"Webpay\"\n        }\n      ]\n    }\n  ]\n}"
            }
          ]
        }
      ],
      "description": "Allows to obtain reconciliations in **payku**."
    },
    {
      "name": "Banks",
      "item": [
        {
          "name": "Get list of banks by currency type",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/banks?currency=clp",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "banks"
              ],
              "query": [
                {
                  "key": "currency",
                  "value": "clp"
                }
              ]
            },
            "description": "This method provides a list of partner banks filtered by currency.\nTo filter by currency, you have to add the query params currency with the currency value."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/banks?currency=clp",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "banks"
                  ],
                  "query": [
                    {
                      "key": "currency",
                      "value": "clp"
                    }
                  ]
                },
                "description": "This method provides a list of partner banks filtered by currency.\nTo filter by currency, you have to add the query params currency with the currency value."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"banks\": [\n    {\n      \"code\": \"0001\",\n      \"name\": \"Banco de Chile\",\n      \"currency\": \"CLP\"\n    },\n    {\n      \"code\": \"0012\",\n      \"name\": \"Banco Estado\",\n      \"currency\": \"CLP\"\n    }\n  ]\n}"
            }
          ]
        }
      ],
      "description": "Allows you to view the list of partner banks."
    },
    {
      "name": "Methods of payment",
      "item": [
        {
          "name": "Get list of payment methods on payku",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/paymentmethods",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "paymentmethods"
              ]
            },
            "description": "This method allows you to obtain a list of payment methods on payku."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/paymentmethods",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "paymentmethods"
                  ]
                },
                "description": "This method allows you to obtain a list of payment methods on payku."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"payment_methods\": [\n    {\n      \"currency\": \"CLP\",\n      \"payment\": 1,\n      \"name\": \"Webpay\",\n      \"description\": \"Visa, Mastercard, Magna, American, Diners y Redcompra.\"\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Get list of payment methods by currency type",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{url_api}}/api/paymentmethods?currency=clp",
              "host": [
                "{{url_api}}"
              ],
              "path": [
                "api",
                "paymentmethods"
              ],
              "query": [
                {
                  "key": "currency",
                  "value": "clp"
                }
              ]
            },
            "description": "This method allows you to get a list of payment methods in payku.\nTo filter by currency, you have to add the query params currency with the currency value."
          },
          "response": [
            {
              "name": "200 — OK",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{url_api}}/api/paymentmethods?currency=clp",
                  "host": [
                    "{{url_api}}"
                  ],
                  "path": [
                    "api",
                    "paymentmethods"
                  ],
                  "query": [
                    {
                      "key": "currency",
                      "value": "clp"
                    }
                  ]
                },
                "description": "This method allows you to get a list of payment methods in payku.\nTo filter by currency, you have to add the query params currency with the currency value."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"success\",\n  \"payment_methods\": [\n    {\n      \"currency\": \"CLP\",\n      \"payment\": 1,\n      \"name\": \"Webpay\",\n      \"description\": \"Visa, Mastercard, Magna, American, Diners y Redcompra.\"\n    },\n    {\n      \"currency\": \"CLP\",\n      \"payment\": 9,\n      \"name\": \"MACH\",\n      \"description\": \"Paga en comercios online internacionales y nacionales\"\n    }\n  ]\n}"
            }
          ]
        }
      ],
      "description": "Allows you to view the list of payment methods used by payku."
    }
  ],
  "variable": [
    {
      "key": "url_api",
      "value": "https://des.payku.cl",
      "type": "string"
    }
  ]
}
