curl --request POST \
--url https://api.onepay.la/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"user_type": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>",
"document_type": "<string>",
"document_number": "<string>",
"enable_notifications": true,
"nationality": "<string>",
"birthdate": "<string>",
"related_to": "<string>"
}
'{
"id":"9da58912-101d-46f8-86c9-20a52119c0bf",
"first_name":"John",
"last_name":"Doe",
"email":"[email protected]",
"phone":"+573100001020",
"document_type":"CC",
"document_number":"1060500333",
"nationality":"CO",
"birthdate":"1990-01-01",
"created_at":"2024-12-04T20:09:08.000000Z"
}
Crea un nuevo cliente en tu cuenta.
curl --request POST \
--url https://api.onepay.la/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"user_type": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>",
"document_type": "<string>",
"document_number": "<string>",
"enable_notifications": true,
"nationality": "<string>",
"birthdate": "<string>",
"related_to": "<string>"
}
'{
"id":"9da58912-101d-46f8-86c9-20a52119c0bf",
"first_name":"John",
"last_name":"Doe",
"email":"[email protected]",
"phone":"+573100001020",
"document_type":"CC",
"document_number":"1060500333",
"nationality":"CO",
"birthdate":"1990-01-01",
"created_at":"2024-12-04T20:09:08.000000Z"
}
{
"id":"9da58912-101d-46f8-86c9-20a52119c0bf",
"first_name":"John",
"last_name":"Doe",
"email":"[email protected]",
"phone":"+573100001020",
"document_type":"CC",
"document_number":"1060500333",
"nationality":"CO",
"birthdate":"1990-01-01",
"created_at":"2024-12-04T20:09:08.000000Z"
}
Was this page helpful?