Atualizar Plano de Taxas

Atualizar plano de taxas

put
/v2/payfac/rate-plans/{idPlan}

Atualiza as configurações de um plano de taxas existente

Authorizations
Path parameters
idPlanintegerRequired

ID do plano de taxa a ser atualizado

Body
namestringRequired

Nome do plano de taxas

Example: test plan
Responses
200

Plano de taxas atualizado com sucesso

application/json
put
/v2/payfac/rate-plans/{idPlan}
PUT /v2/payfac/rate-plans/{idPlan} HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2752

{
  "name": "test plan",
  "tax": {
    "pix": {
      "delayForRedeem": 1,
      "value": 0.5,
      "rateType": "PERCENTAGE",
      "valueLimit": 5000
    },
    "bankSlip": {
      "delayForRedeem": 1,
      "value": 2.5,
      "rateType": "FIXED"
    },
    "debit": {
      "delayForRedeem": 1,
      "value": 1.2,
      "rateType": "PERCENTAGE"
    },
    "credit": [
      {
        "online": {
          "delayForRedeem": 8,
          "default": {
            "sellerRates": [
              4,
              3.9,
              2,
              3,
              4,
              5,
              4,
              3,
              1,
              3,
              1,
              3,
              5,
              3.9,
              2,
              3,
              4,
              5,
              4,
              3,
              1,
              3,
              1,
              3
            ]
          },
          "mastercard": {
            "sellerRates": [
              1.5,
              3.5,
              2.5,
              3.2,
              4.1,
              4.8,
              4.2,
              3.3,
              1.2,
              2.9,
              1.1,
              2.8,
              4.6,
              3.6,
              2.4,
              3.1,
              4,
              4.7,
              4.3,
              3.4,
              1.3,
              2.7,
              1,
              2.9
            ]
          },
          "visa": {
            "sellerRates": [
              1.6,
              3.4,
              2.6,
              3.1,
              4.2,
              4.9,
              4.1,
              3.2,
              1.3,
              2.8,
              1.2,
              2.7,
              4.7,
              3.7,
              2.3,
              3,
              4.1,
              4.8,
              4.4,
              3.5,
              1.4,
              2.6,
              1.1,
              2.8
            ]
          },
          "hipercard": {
            "sellerRates": [
              1.8,
              3.6,
              2.8,
              3.4,
              4.3,
              5,
              4.5,
              3.6,
              1.5,
              3.1,
              1.4,
              3,
              4.8,
              3.8,
              2.6,
              3.3,
              4.2,
              4.9,
              4.6,
              3.7,
              1.6,
              2.8,
              1.3,
              3.1
            ]
          },
          "elo": {
            "sellerRates": [
              1.7,
              3.3,
              2.7,
              3,
              4,
              4.7,
              4,
              3.1,
              1.4,
              2.7,
              1.3,
              2.6,
              4.5,
              3.5,
              2.5,
              2.9,
              3.9,
              4.6,
              4.2,
              3.3,
              1.5,
              2.5,
              1.2,
              2.7
            ]
          },
          "discover": {
            "sellerRates": [
              1.9,
              3.7,
              2.9,
              3.5,
              4.4,
              5.1,
              4.6,
              3.7,
              1.6,
              3.2,
              1.5,
              3.1,
              4.9,
              3.9,
              2.7,
              3.4,
              4.3,
              5,
              4.7,
              3.8,
              1.7,
              2.9,
              1.4,
              3.2
            ]
          },
          "american_express": {
            "sellerRates": [
              2,
              3.8,
              3,
              3.6,
              4.5,
              5.2,
              4.7,
              3.8,
              1.7,
              3.3,
              1.6,
              3.2,
              5,
              4,
              2.8,
              3.5,
              4.4,
              5.1,
              4.8,
              3.9,
              1.8,
              3,
              1.5,
              3.3
            ]
          }
        }
      },
      {
        "pos": {
          "delayForRedeem": 31,
          "default": {
            "sellerRates": [
              5,
              3.9,
              2,
              3,
              4,
              5,
              4,
              3,
              1,
              3,
              1,
              3,
              5,
              3.9,
              2,
              3,
              4,
              5,
              4,
              3,
              1,
              3,
              1,
              3
            ]
          },
          "mastercard": {
            "sellerRates": [
              4.5,
              3.5,
              2.5,
              3.2,
              4.1,
              4.8,
              4.2,
              3.3,
              1.2,
              2.9,
              1.1,
              2.8,
              4.6,
              3.6,
              2.4,
              3.1,
              4,
              4.7,
              4.3,
              3.4,
              1.3,
              2.7,
              1,
              2.9
            ]
          },
          "visa": {
            "sellerRates": [
              4.4,
              3.4,
              2.4,
              3.1,
              4,
              4.7,
              4.1,
              3.2,
              1.1,
              2.8,
              1,
              2.7,
              4.5,
              3.5,
              2.3,
              3,
              3.9,
              4.6,
              4.2,
              3.3,
              1.2,
              2.6,
              0.9,
              2.8
            ]
          },
          "hipercard": {
            "sellerRates": [
              4.6,
              3.6,
              2.6,
              3.3,
              4.2,
              4.9,
              4.3,
              3.4,
              1.3,
              3,
              1.2,
              2.9,
              4.7,
              3.7,
              2.5,
              3.2,
              4.1,
              4.8,
              4.4,
              3.5,
              1.4,
              2.8,
              1.1,
              3
            ]
          },
          "elo": {
            "sellerRates": [
              4.3,
              3.3,
              2.3,
              3,
              3.9,
              4.6,
              4,
              3.1,
              1,
              2.7,
              0.9,
              2.6,
              4.4,
              3.4,
              2.2,
              2.9,
              3.8,
              4.5,
              4.1,
              3.2,
              1.1,
              2.5,
              0.8,
              2.7
            ]
          },
          "discover": {
            "sellerRates": [
              4.7,
              3.7,
              2.7,
              3.4,
              4.3,
              5,
              4.4,
              3.5,
              1.4,
              3.1,
              1.3,
              3,
              4.8,
              3.8,
              2.6,
              3.3,
              4.2,
              4.9,
              4.5,
              3.6,
              1.5,
              2.9,
              1.2,
              3.1
            ]
          },
          "american_express": {
            "sellerRates": [
              4.8,
              3.8,
              2.8,
              3.5,
              4.4,
              5.1,
              4.5,
              3.6,
              1.5,
              3.2,
              1.4,
              3.1,
              4.9,
              3.9,
              2.7,
              3.4,
              4.3,
              5,
              4.6,
              3.7,
              1.6,
              3,
              1.3,
              3.2
            ]
          }
        }
      },
      {
        "tap": {
          "delayForRedeem": 31,
          "default": {
            "sellerRates": [
              5,
              3.9,
              2,
              3,
              4,
              5,
              4,
              3,
              1,
              3,
              1,
              3,
              5,
              3.9,
              2,
              3,
              4,
              5,
              4,
              3,
              1,
              3,
              1,
              3
            ]
          },
          "mastercard": {
            "sellerRates": [
              4.5,
              3.5,
              2.5,
              3.2,
              4.1,
              4.8,
              4.2,
              3.3,
              1.2,
              2.9,
              1.1,
              2.8,
              4.6,
              3.6,
              2.4,
              3.1,
              4,
              4.7,
              4.3,
              3.4,
              1.3,
              2.7,
              1,
              2.9
            ]
          },
          "visa": {
            "sellerRates": [
              4.4,
              3.4,
              2.4,
              3.1,
              4,
              4.7,
              4.1,
              3.2,
              1.1,
              2.8,
              1,
              2.7,
              4.5,
              3.5,
              2.3,
              3,
              3.9,
              4.6,
              4.2,
              3.3,
              1.2,
              2.6,
              0.9,
              2.8
            ]
          },
          "hipercard": {
            "sellerRates": [
              4.6,
              3.6,
              2.6,
              3.3,
              4.2,
              4.9,
              4.3,
              3.4,
              1.3,
              3,
              1.2,
              2.9,
              4.7,
              3.7,
              2.5,
              3.2,
              4.1,
              4.8,
              4.4,
              3.5,
              1.4,
              2.8,
              1.1,
              3
            ]
          },
          "elo": {
            "sellerRates": [
              4.3,
              3.3,
              2.3,
              3,
              3.9,
              4.6,
              4,
              3.1,
              1,
              2.7,
              0.9,
              2.6,
              4.4,
              3.4,
              2.2,
              2.9,
              3.8,
              4.5,
              4.1,
              3.2,
              1.1,
              2.5,
              0.8,
              2.7
            ]
          },
          "discover": {
            "sellerRates": [
              4.7,
              3.7,
              2.7,
              3.4,
              4.3,
              5,
              4.4,
              3.5,
              1.4,
              3.1,
              1.3,
              3,
              4.8,
              3.8,
              2.6,
              3.3,
              4.2,
              4.9,
              4.5,
              3.6,
              1.5,
              2.9,
              1.2,
              3.1
            ]
          },
          "american_express": {
            "sellerRates": [
              4.8,
              3.8,
              2.8,
              3.5,
              4.4,
              5.1,
              4.5,
              3.6,
              1.5,
              3.2,
              1.4,
              3.1,
              4.9,
              3.9,
              2.7,
              3.4,
              4.3,
              5,
              4.6,
              3.7,
              1.6,
              3,
              1.3,
              3.2
            ]
          }
        }
      }
    ]
  }
}
{
  "pix": {
    "delayForRedeem": 1,
    "value": 0.5,
    "rateType": "PERCENTAGE",
    "valueLimit": 5000
  },
  "bankSlip": {
    "delayForRedeem": 1,
    "value": 2.5,
    "rateType": "FIXED",
    "valueLimit": 1000
  },
  "debit": {
    "delayForRedeem": 1,
    "value": 1.2,
    "rateType": "PERCENTAGE"
  },
  "credit": [
    {
      "online": {
        "delayForRedeem": 8,
        "default": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        },
        "mastercard": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        },
        "visa": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        },
        "hipercard": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        },
        "elo": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        },
        "discover": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        },
        "american_express": {
          "sellerRates": [
            1.5,
            2,
            2.5,
            3,
            3.5,
            4,
            4.5,
            5,
            5.5,
            6,
            6.5,
            7,
            7.5,
            8,
            8.5,
            9,
            9.5,
            10,
            10.5,
            11,
            11.5,
            12,
            12.5,
            13
          ]
        }
      }
    }
  ]
}

Last updated

Was this helpful?