cURL
curl --request POST \ --url https://api.centralcart.com.br/v1/app/affiliate \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "ref_code": "<string>", "percent_commission": 123, "email": "<string>", "min_withdraw": 123, "linked_discount_id": 123, "package_commissions": [ { "package_id": 123, "percent_commission": 123 } ], "withdraw_settings": { "full_name": "<string>", "pix_key": "<string>", "pix_key_type": "<string>", "cpf_cnpj": "<string>" } } '
{ "id": 1, "store_id": 1, "name": "Afiliado Exemplo", "ref_code": "AFFILIATE001", "percent_commission": 10, "balance": 0, "min_withdraw": 50.00, "email": "afiliado@example.com", "self_affiliated": false, "linked_discount_id": null, "withdraw_settings": { "full_name": "João da Silva", "pix_key": "joao@email.com", "pix_key_type": "EMAIL", "cpf_cnpj": "123.456.789-00" }, "dash_secret": "REDACTED", "package_commissions": [], "created_at": "2024-01-16T15:12:36.000-03:00", "updated_at": "2024-01-16T15:12:36.000-03:00" }
Cria um novo afiliado.
Show Propriedades
CPF
CNPJ
EMAIL
PHONE
RANDOM