PUT
/
{alias}
/
checkout
/
affiliations
/
{id}
curl --request PUT \
  --url https://api.dooki.com.br/v2/{alias}/checkout/affiliations/{id} \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "gateway_alias": "cielo",
  "name": "Cielo Affiliation",
  "auto_capture": true,
  "params": {
    "env": "test",
    "merchant_id": 123456,
    "key": "key"
  }
}'
{
  "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,
        "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"
            ]
          ]
        }
      }
    ]
  }
}

Authorizations

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

Path Parameters

alias
string
required

Alias da loja

id
integer
required

ID da afiliação

Body

application/json

Representa os dados necessários para criar ou atualizar uma afiliação

Response

200
application/json

Afiliação atualizada com sucesso