Skip to main content
PUT
/
{alias}
/
checkout
/
payments
/
{paymentId}
/
config
/
{id}
Atualizar configuração de pagamento
curl --request PUT \
  --url https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id} \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '
{
  "payment_id": 123,
  "affiliation_id": 123,
  "active": true,
  "default_display": true,
  "id": 123,
  "spread": true,
  "ignore_promotions": true,
  "accumulate_discount": true,
  "percent_discount": 123,
  "min_installment_value": 123,
  "max_installments_without_tax": 123,
  "billet_expire_days": 123,
  "days_to_cancel_unpaid_billets": 123,
  "hours_to_cancel_unpaid_pix": 123,
  "hours_to_expire_pix_code": 123,
  "billet_instructions": "<string>",
  "installments": {
    "data": [
      {
        "id": 1,
        "payment_id": 2,
        "installment": 1,
        "tax": 1.5,
        "percent_discount": 0,
        "start_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "end_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "created_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "updated_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        }
      }
    ]
  },
  "affiliation": {
    "data": {
      "id": 123,
      "active": true,
      "backup": true,
      "name": "Cielo Affiliation",
      "statement_descriptor": "<string>",
      "auto_capture": true,
      "has_payment_config": false,
      "capture_hour_delay": 123,
      "force_minimum_tax": true,
      "status": "<string>",
      "auth_type": "<string>",
      "gateway": {
        "data": [
          {
            "alias": "billet",
            "name": "Boleto Bancário",
            "icon_url": "<string>",
            "allow_backup": true,
            "allow_edit_pix_code_expiration_time": true,
            "installments_config": {
              "allow_custom_installments": true,
              "message": "<string>",
              "help_link": "<string>"
            },
            "auth_type": "Boleto Bancário",
            "gateway_exists": true,
            "params": {
              "data": [
                [
                  "env",
                  "merchant_id",
                  "key"
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "payment": {
    "data": {
      "id": 123,
      "alias": "<string>",
      "name": "<string>",
      "has_config": true,
      "active_config": true,
      "is_credit_card": true,
      "is_deposit": true,
      "is_billet": true,
      "is_pix": true,
      "is_pix_in_installments": true,
      "is_wallet": true,
      "icon_url": "<string>"
    }
  }
}
'
import requests

url = "https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id}"

payload = {
"payment_id": 123,
"affiliation_id": 123,
"active": True,
"default_display": True,
"id": 123,
"spread": True,
"ignore_promotions": True,
"accumulate_discount": True,
"percent_discount": 123,
"min_installment_value": 123,
"max_installments_without_tax": 123,
"billet_expire_days": 123,
"days_to_cancel_unpaid_billets": 123,
"hours_to_cancel_unpaid_pix": 123,
"hours_to_expire_pix_code": 123,
"billet_instructions": "<string>",
"installments": { "data": [
{
"id": 1,
"payment_id": 2,
"installment": 1,
"tax": 1.5,
"percent_discount": 0,
"start_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"end_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
] },
"affiliation": { "data": {
"id": 123,
"active": True,
"backup": True,
"name": "Cielo Affiliation",
"statement_descriptor": "<string>",
"auto_capture": True,
"has_payment_config": False,
"capture_hour_delay": 123,
"force_minimum_tax": True,
"status": "<string>",
"auth_type": "<string>",
"gateway": { "data": [
{
"alias": "billet",
"name": "Boleto Bancário",
"icon_url": "<string>",
"allow_backup": True,
"allow_edit_pix_code_expiration_time": True,
"installments_config": {
"allow_custom_installments": True,
"message": "<string>",
"help_link": "<string>"
},
"auth_type": "Boleto Bancário",
"gateway_exists": True,
"params": { "data": [["env", "merchant_id", "key"]] }
}
] }
} },
"payment": { "data": {
"id": 123,
"alias": "<string>",
"name": "<string>",
"has_config": True,
"active_config": True,
"is_credit_card": True,
"is_deposit": True,
"is_billet": True,
"is_pix": True,
"is_pix_in_installments": True,
"is_wallet": True,
"icon_url": "<string>"
} }
}
headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {
'User-Token': '<api-key>',
'User-Secret-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
payment_id: 123,
affiliation_id: 123,
active: true,
default_display: true,
id: 123,
spread: true,
ignore_promotions: true,
accumulate_discount: true,
percent_discount: 123,
min_installment_value: 123,
max_installments_without_tax: 123,
billet_expire_days: 123,
days_to_cancel_unpaid_billets: 123,
hours_to_cancel_unpaid_pix: 123,
hours_to_expire_pix_code: 123,
billet_instructions: '<string>',
installments: {
data: [
{
id: 1,
payment_id: 2,
installment: 1,
tax: 1.5,
percent_discount: 0,
start_at: {date: '2000-08-17 10:24:24', timezone_type: 3, timezone: 'America/Sao_Paulo'},
end_at: {date: '2000-08-17 10:24:24', timezone_type: 3, timezone: 'America/Sao_Paulo'},
created_at: {date: '2000-08-17 10:24:24', timezone_type: 3, timezone: 'America/Sao_Paulo'},
updated_at: {date: '2000-08-17 10:24:24', timezone_type: 3, timezone: 'America/Sao_Paulo'}
}
]
},
affiliation: {
data: {
id: 123,
active: true,
backup: true,
name: 'Cielo Affiliation',
statement_descriptor: '<string>',
auto_capture: true,
has_payment_config: false,
capture_hour_delay: 123,
force_minimum_tax: true,
status: '<string>',
auth_type: '<string>',
gateway: {
data: [
{
alias: 'billet',
name: 'Boleto Bancário',
icon_url: '<string>',
allow_backup: true,
allow_edit_pix_code_expiration_time: true,
installments_config: {allow_custom_installments: true, message: '<string>', help_link: '<string>'},
auth_type: 'Boleto Bancário',
gateway_exists: true,
params: {data: [['env', 'merchant_id', 'key']]}
}
]
}
}
},
payment: {
data: {
id: 123,
alias: '<string>',
name: '<string>',
has_config: true,
active_config: true,
is_credit_card: true,
is_deposit: true,
is_billet: true,
is_pix: true,
is_pix_in_installments: true,
is_wallet: true,
icon_url: '<string>'
}
}
})
};

fetch('https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'payment_id' => 123,
'affiliation_id' => 123,
'active' => true,
'default_display' => true,
'id' => 123,
'spread' => true,
'ignore_promotions' => true,
'accumulate_discount' => true,
'percent_discount' => 123,
'min_installment_value' => 123,
'max_installments_without_tax' => 123,
'billet_expire_days' => 123,
'days_to_cancel_unpaid_billets' => 123,
'hours_to_cancel_unpaid_pix' => 123,
'hours_to_expire_pix_code' => 123,
'billet_instructions' => '<string>',
'installments' => [
'data' => [
[
'id' => 1,
'payment_id' => 2,
'installment' => 1,
'tax' => 1.5,
'percent_discount' => 0,
'start_at' => [
'date' => '2000-08-17 10:24:24',
'timezone_type' => 3,
'timezone' => 'America/Sao_Paulo'
],
'end_at' => [
'date' => '2000-08-17 10:24:24',
'timezone_type' => 3,
'timezone' => 'America/Sao_Paulo'
],
'created_at' => [
'date' => '2000-08-17 10:24:24',
'timezone_type' => 3,
'timezone' => 'America/Sao_Paulo'
],
'updated_at' => [
'date' => '2000-08-17 10:24:24',
'timezone_type' => 3,
'timezone' => 'America/Sao_Paulo'
]
]
]
],
'affiliation' => [
'data' => [
'id' => 123,
'active' => true,
'backup' => true,
'name' => 'Cielo Affiliation',
'statement_descriptor' => '<string>',
'auto_capture' => true,
'has_payment_config' => false,
'capture_hour_delay' => 123,
'force_minimum_tax' => true,
'status' => '<string>',
'auth_type' => '<string>',
'gateway' => [
'data' => [
[
'alias' => 'billet',
'name' => 'Boleto Bancário',
'icon_url' => '<string>',
'allow_backup' => true,
'allow_edit_pix_code_expiration_time' => true,
'installments_config' => [
'allow_custom_installments' => true,
'message' => '<string>',
'help_link' => '<string>'
],
'auth_type' => 'Boleto Bancário',
'gateway_exists' => true,
'params' => [
'data' => [
[
'env',
'merchant_id',
'key'
]
]
]
]
]
]
]
],
'payment' => [
'data' => [
'id' => 123,
'alias' => '<string>',
'name' => '<string>',
'has_config' => true,
'active_config' => true,
'is_credit_card' => true,
'is_deposit' => true,
'is_billet' => true,
'is_pix' => true,
'is_pix_in_installments' => true,
'is_wallet' => true,
'icon_url' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"User-Secret-Key: <api-key>",
"User-Token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id}"

payload := strings.NewReader("{\n \"payment_id\": 123,\n \"affiliation_id\": 123,\n \"active\": true,\n \"default_display\": true,\n \"id\": 123,\n \"spread\": true,\n \"ignore_promotions\": true,\n \"accumulate_discount\": true,\n \"percent_discount\": 123,\n \"min_installment_value\": 123,\n \"max_installments_without_tax\": 123,\n \"billet_expire_days\": 123,\n \"days_to_cancel_unpaid_billets\": 123,\n \"hours_to_cancel_unpaid_pix\": 123,\n \"hours_to_expire_pix_code\": 123,\n \"billet_instructions\": \"<string>\",\n \"installments\": {\n \"data\": [\n {\n \"id\": 1,\n \"payment_id\": 2,\n \"installment\": 1,\n \"tax\": 1.5,\n \"percent_discount\": 0,\n \"start_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"end_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"created_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"updated_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n }\n }\n ]\n },\n \"affiliation\": {\n \"data\": {\n \"id\": 123,\n \"active\": true,\n \"backup\": true,\n \"name\": \"Cielo Affiliation\",\n \"statement_descriptor\": \"<string>\",\n \"auto_capture\": true,\n \"has_payment_config\": false,\n \"capture_hour_delay\": 123,\n \"force_minimum_tax\": true,\n \"status\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"gateway\": {\n \"data\": [\n {\n \"alias\": \"billet\",\n \"name\": \"Boleto Bancário\",\n \"icon_url\": \"<string>\",\n \"allow_backup\": true,\n \"allow_edit_pix_code_expiration_time\": true,\n \"installments_config\": {\n \"allow_custom_installments\": true,\n \"message\": \"<string>\",\n \"help_link\": \"<string>\"\n },\n \"auth_type\": \"Boleto Bancário\",\n \"gateway_exists\": true,\n \"params\": {\n \"data\": [\n [\n \"env\",\n \"merchant_id\",\n \"key\"\n ]\n ]\n }\n }\n ]\n }\n }\n },\n \"payment\": {\n \"data\": {\n \"id\": 123,\n \"alias\": \"<string>\",\n \"name\": \"<string>\",\n \"has_config\": true,\n \"active_config\": true,\n \"is_credit_card\": true,\n \"is_deposit\": true,\n \"is_billet\": true,\n \"is_pix\": true,\n \"is_pix_in_installments\": true,\n \"is_wallet\": true,\n \"icon_url\": \"<string>\"\n }\n }\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id}")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"payment_id\": 123,\n \"affiliation_id\": 123,\n \"active\": true,\n \"default_display\": true,\n \"id\": 123,\n \"spread\": true,\n \"ignore_promotions\": true,\n \"accumulate_discount\": true,\n \"percent_discount\": 123,\n \"min_installment_value\": 123,\n \"max_installments_without_tax\": 123,\n \"billet_expire_days\": 123,\n \"days_to_cancel_unpaid_billets\": 123,\n \"hours_to_cancel_unpaid_pix\": 123,\n \"hours_to_expire_pix_code\": 123,\n \"billet_instructions\": \"<string>\",\n \"installments\": {\n \"data\": [\n {\n \"id\": 1,\n \"payment_id\": 2,\n \"installment\": 1,\n \"tax\": 1.5,\n \"percent_discount\": 0,\n \"start_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"end_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"created_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"updated_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n }\n }\n ]\n },\n \"affiliation\": {\n \"data\": {\n \"id\": 123,\n \"active\": true,\n \"backup\": true,\n \"name\": \"Cielo Affiliation\",\n \"statement_descriptor\": \"<string>\",\n \"auto_capture\": true,\n \"has_payment_config\": false,\n \"capture_hour_delay\": 123,\n \"force_minimum_tax\": true,\n \"status\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"gateway\": {\n \"data\": [\n {\n \"alias\": \"billet\",\n \"name\": \"Boleto Bancário\",\n \"icon_url\": \"<string>\",\n \"allow_backup\": true,\n \"allow_edit_pix_code_expiration_time\": true,\n \"installments_config\": {\n \"allow_custom_installments\": true,\n \"message\": \"<string>\",\n \"help_link\": \"<string>\"\n },\n \"auth_type\": \"Boleto Bancário\",\n \"gateway_exists\": true,\n \"params\": {\n \"data\": [\n [\n \"env\",\n \"merchant_id\",\n \"key\"\n ]\n ]\n }\n }\n ]\n }\n }\n },\n \"payment\": {\n \"data\": {\n \"id\": 123,\n \"alias\": \"<string>\",\n \"name\": \"<string>\",\n \"has_config\": true,\n \"active_config\": true,\n \"is_credit_card\": true,\n \"is_deposit\": true,\n \"is_billet\": true,\n \"is_pix\": true,\n \"is_pix_in_installments\": true,\n \"is_wallet\": true,\n \"icon_url\": \"<string>\"\n }\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.dooki.com.br/v2/{alias}/checkout/payments/{paymentId}/config/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payment_id\": 123,\n \"affiliation_id\": 123,\n \"active\": true,\n \"default_display\": true,\n \"id\": 123,\n \"spread\": true,\n \"ignore_promotions\": true,\n \"accumulate_discount\": true,\n \"percent_discount\": 123,\n \"min_installment_value\": 123,\n \"max_installments_without_tax\": 123,\n \"billet_expire_days\": 123,\n \"days_to_cancel_unpaid_billets\": 123,\n \"hours_to_cancel_unpaid_pix\": 123,\n \"hours_to_expire_pix_code\": 123,\n \"billet_instructions\": \"<string>\",\n \"installments\": {\n \"data\": [\n {\n \"id\": 1,\n \"payment_id\": 2,\n \"installment\": 1,\n \"tax\": 1.5,\n \"percent_discount\": 0,\n \"start_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"end_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"created_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n },\n \"updated_at\": {\n \"date\": \"2000-08-17 10:24:24\",\n \"timezone_type\": 3,\n \"timezone\": \"America/Sao_Paulo\"\n }\n }\n ]\n },\n \"affiliation\": {\n \"data\": {\n \"id\": 123,\n \"active\": true,\n \"backup\": true,\n \"name\": \"Cielo Affiliation\",\n \"statement_descriptor\": \"<string>\",\n \"auto_capture\": true,\n \"has_payment_config\": false,\n \"capture_hour_delay\": 123,\n \"force_minimum_tax\": true,\n \"status\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"gateway\": {\n \"data\": [\n {\n \"alias\": \"billet\",\n \"name\": \"Boleto Bancário\",\n \"icon_url\": \"<string>\",\n \"allow_backup\": true,\n \"allow_edit_pix_code_expiration_time\": true,\n \"installments_config\": {\n \"allow_custom_installments\": true,\n \"message\": \"<string>\",\n \"help_link\": \"<string>\"\n },\n \"auth_type\": \"Boleto Bancário\",\n \"gateway_exists\": true,\n \"params\": {\n \"data\": [\n [\n \"env\",\n \"merchant_id\",\n \"key\"\n ]\n ]\n }\n }\n ]\n }\n }\n },\n \"payment\": {\n \"data\": {\n \"id\": 123,\n \"alias\": \"<string>\",\n \"name\": \"<string>\",\n \"has_config\": true,\n \"active_config\": true,\n \"is_credit_card\": true,\n \"is_deposit\": true,\n \"is_billet\": true,\n \"is_pix\": true,\n \"is_pix_in_installments\": true,\n \"is_wallet\": true,\n \"icon_url\": \"<string>\"\n }\n }\n}"

response = http.request(request)
puts response.read_body
{
  "payment_id": 123,
  "affiliation_id": 123,
  "active": true,
  "default_display": true,
  "id": 123,
  "spread": true,
  "ignore_promotions": true,
  "accumulate_discount": true,
  "percent_discount": 123,
  "min_installment_value": 123,
  "max_installments_without_tax": 123,
  "billet_expire_days": 123,
  "days_to_cancel_unpaid_billets": 123,
  "hours_to_cancel_unpaid_pix": 123,
  "hours_to_expire_pix_code": 123,
  "billet_instructions": "<string>",
  "installments": {
    "data": [
      {
        "id": 1,
        "payment_id": 2,
        "installment": 1,
        "tax": 1.5,
        "percent_discount": 0,
        "start_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "end_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "created_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "updated_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        }
      }
    ]
  },
  "affiliation": {
    "data": {
      "id": 123,
      "active": true,
      "backup": true,
      "name": "Cielo Affiliation",
      "statement_descriptor": "<string>",
      "auto_capture": true,
      "has_payment_config": false,
      "capture_hour_delay": 123,
      "force_minimum_tax": true,
      "status": "<string>",
      "auth_type": "<string>",
      "gateway": {
        "data": [
          {
            "alias": "billet",
            "name": "Boleto Bancário",
            "icon_url": "<string>",
            "allow_backup": true,
            "allow_edit_pix_code_expiration_time": true,
            "installments_config": {
              "allow_custom_installments": true,
              "message": "<string>",
              "help_link": "<string>"
            },
            "auth_type": "Boleto Bancário",
            "gateway_exists": true,
            "params": {
              "data": [
                [
                  "env",
                  "merchant_id",
                  "key"
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "payment": {
    "data": {
      "id": 123,
      "alias": "<string>",
      "name": "<string>",
      "has_config": true,
      "active_config": true,
      "is_credit_card": true,
      "is_deposit": true,
      "is_billet": true,
      "is_pix": true,
      "is_pix_in_installments": true,
      "is_wallet": true,
      "icon_url": "<string>"
    }
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

paymentId
integer
required

ID da forma de pagamento

id
integer
required

ID da configuração de pagamento

Body

application/json
payment_id
integer
required
affiliation_id
integer
required
active
boolean
required
default_display
boolean
required
id
integer
spread
boolean
ignore_promotions
boolean
accumulate_discount
boolean
percent_discount
number<float>
min_installment_value
number<float>
max_installments_without_tax
integer
billet_expire_days
integer
days_to_cancel_unpaid_billets
integer
hours_to_cancel_unpaid_pix
integer
hours_to_expire_pix_code
number
billet_instructions
string
installments
object
affiliation
object
payment
object

Response

Configuração de pagamento atualizada com sucesso

payment_id
integer
required
affiliation_id
integer
required
active
boolean
required
default_display
boolean
required
id
integer
spread
boolean
ignore_promotions
boolean
accumulate_discount
boolean
percent_discount
number<float>
min_installment_value
number<float>
max_installments_without_tax
integer
billet_expire_days
integer
days_to_cancel_unpaid_billets
integer
hours_to_cancel_unpaid_pix
integer
hours_to_expire_pix_code
number
billet_instructions
string
installments
object
affiliation
object
payment
object
created_at
string<date-time>
read-only
updated_at
string<date-time>
read-only