Afiliações
Atualizar afiliação
Referência da API
- Introdução
- Autenticação
- Catálogo
- Checkout
- Afiliações
- Bancos
- Carrinhos abandonados
- Gateways de pagamento
- Configurações de pagamentos
- Parcelamento
- Formas de pagamentos
- Contas bancárias
- Vendedores
- Status de pedidos
- Transações
- Configurações
- Conteúdo
- Clientes
- Leads
- Logística
- Marketing
- Pedidos
- Sistema
- Promoções
- Filas
- Usuários
- Webhooks
Afiliações
Atualizar afiliação
Atualiza os detalhes de uma afiliação específica
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"
]
]
}
}
]
}
}
Body
application/json
Representa os dados necessários para criar ou atualizar uma afiliação
Response
200
application/json
Afiliação atualizada com sucesso
Was this page helpful?
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"
]
]
}
}
]
}
}