Uso de ejemplo (comando de ejemplo)
Escenario: Tu token es jEheVytlAoFl7F8MqUQ7jAo2hOXAS
y necesitas listar todos los clientes disponibles de tu instalación de Perfex, a través de una solicitud cURL.
Caso de Uso: Necesitarás ejecutar el siguiente comando en la terminal:
curl -H "authtoken: jEheVytlAoFl7F8MqUQ7jAo2hOXAS" https://dash.wonlinenetwork.llc/micuenta/ps/api/customers
La respuesta que se supone que debes recibir, bajo un código de estado 200 OK, será similar a la siguiente:
[
{
"stripe_id": null,
"active": "1",
"vat": "1234567890",
"address": "Dirección de Prueba",
"billing_country": "0",
"phonenumber": "1234567890",
"registration_confirmed": "1",
"longitude": null,
"billing_city": "",
"state": "Estado de Prueba",
"shipping_zip": "",
"billing_zip": "",
"city": "Ciudad de Prueba",
"shipping_country": "0",
"billing_street": "",
"datecreated": "2019-11-29 12:34:56",
"company": "Tecnologías JK",
"shipping_street": "",
"zip": "123456",
"billing_state": "",
"leadid": null,
"addedfrom": "8",
"userid": "3",
"default_language": "inglés",
"shipping_state": "",
"show_primary_contact": "0",
"country": "102",
"default_currency": "3",
"shipping_city": "",
"latitude": null,
"website": "https://example.com"
},
{
"website": "https://example2.com",
"latitude": null,
"default_currency": "0",
"shipping_city": "Londres",
"country": "235",
"show_primary_contact": "0",
"shipping_state": "Gran Londres",
"default_language": "",
"addedfrom": "1",
"userid": "1",
"leadid": null,
"billing_state": "Gran Londres",
"zip": "WC1 ASW",
"shipping_street": "123 Calle Road",
"company": "Empresa de Muestra LTD",
"datecreated": "2019-04-02 13:38:28",
"billing_street": "123 Calle Road",
"shipping_country": "235",
"city": "Londres",
"billing_zip": "WC1 ASW",
"shipping_zip": "WC1 ASW",
"longitude": null,
"registration_confirmed": "1",
"billing_city": "Londres",
"state": "Gran Londres",
"phonenumber": "+44 210 7298299",
"billing_country": "235",
"address": "123 Calle Road",
"vat": "123456789",
"active": "1",
"stripe_id": null
}
]