---
title: "Crear una Referencia"
method: POST
path: "/reference"
---

# Crear una Referencia

`POST /reference`

## Headers

- `x-api-key` string

## Request body

- object
  - `customer` string, required — ID del Customer entregado en su creación.
  - `invoices` string[] — ID de las Invoices entregadas en su creación.
  - `gateway` string — Proveedor con el que se crea la referencia. Solo se debe enviar cuando se quiere crear la referencia en Oxxo, entregando el valor `oxxo`

## Response `200`

200

- object
  - `reference` string
  - `barcode_url` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/trytoku/apis/toku-api.md) · [All operations](https://skmtc.net/trytoku/apis/toku-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trytoku/toku-api/versions/30699b13e0d0/schema)
