Skip to content

Commit

Permalink
Url v1 swapped for v2 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgtz authored Jul 8, 2024
1 parent 65d0610 commit ca2cf9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $invoice = $facturapi->Invoices->create([
<TabItem value="curl" label="cURL">

```bash
curl https://www.facturapi.io/v1/invoices \
curl https://www.facturapi.io/v2/invoices \
# a) Autentícate con la API Key de la organización emisora
-H "Authorization: Bearer sk_test_API_KEY" \
-H "Content-Type: application/json" \
Expand Down Expand Up @@ -274,7 +274,7 @@ $facturapi->Invoices->send_by_email($invoice->id);
<TabItem value="curl" label="cURL">

```bash
curl https://www.facturapi.io/v1/invoices/58e93bd8e86eb318b019743d/email \
curl https://www.facturapi.io/v2/invoices/58e93bd8e86eb318b019743d/email \
-H "Authorization: Bearer sk_test_API_KEY"
-X POST
```
Expand Down Expand Up @@ -328,7 +328,7 @@ $xml = $facturapi->Invoices->download_xml($invoice->id) // stream containing the

```bash
## Descargar PDF y XML comprimidos en archivo ZIP
curl https://www.facturapi.io/v1/invoices/58e93bd8e86eb318b019743d/zip \
curl https://www.facturapi.io/v2/invoices/58e93bd8e86eb318b019743d/zip \
-H "Authorization: Bearer sk_test_API_KEY"
```

Expand All @@ -341,4 +341,4 @@ Este fue un vistazo rápido del uso de Facturapi.

Te invitamos a consultar nuestra [sección de ejemplos](/docs/guides/customers),
así como ver la [referencia completa de la API](/api), donde podrás explorar todos
los endpoints disponibles en Facturapi.
los endpoints disponibles en Facturapi.

0 comments on commit ca2cf9d

Please sign in to comment.