Desarrolladores
Cómo usar la API
Endpoint para crear un sub comercio.
cURL
curl --request POST \ --url https://api.onepay.la/v1/sub-merchants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-idempotency: <x-idempotency>' \ --data '{ "external_id": "<string>", "name": "<string>", "email": "<string>", "phone": "<string>", "address": "<string>", "document_type": "<string>", "document_number": "<string>", "mcc": "<string>", "activity": "<string>", "annual_volume": 123, "legal_representative": { "full_name": "<string>", "email": "<string>", "phone": "<string>", "document_type": "<string>", "document_number": "<string>" }, "fiscal_responsibilities": [ { "code": "<string>", "apply": true } ], "retention_rules": [ { "type": "<string>", "value": true } ] }'
Was this page helpful?