curl --request GET \
--url https://api.craqui.com/v1/credit_transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/credit_transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.craqui.com/v1/credit_transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craqui.com/v1/credit_transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craqui.com/v1/credit_transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craqui.com/v1/credit_transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/credit_transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "ctx_01j4kbxxxhjjpd7ar0mrrdp2j1",
"object": "credit_transaction",
"livemode": true,
"client_id": "cli_01jatfha5h4nkg77c3wfrvd3cw",
"type": "booking_debit",
"amount": -1,
"balance_after": 2,
"booking_id": "bkg_01j5cceh8fkntbjm406cvh2kwm",
"credit_grant_id": null,
"membership_id": null,
"created_at": "2026-11-29T11:02:41-03:00"
},
{
"id": "ctx_01j6w7ctnd637xa9xg3ymff9nj",
"object": "credit_transaction",
"livemode": true,
"client_id": "cli_01jatfha5h4nkg77c3wfrvd3cw",
"type": "booking_debit",
"amount": -1,
"balance_after": 3,
"booking_id": "bkg_01jx9eak0437zdf0yw0atg7g0r",
"credit_grant_id": null,
"membership_id": null,
"created_at": "2026-11-28T09:15:22-03:00"
},
{
"id": "ctx_01j6trn8gfx3fh6ezapxdve7cn",
"object": "credit_transaction",
"livemode": true,
"client_id": "cli_01jatfha5h4nkg77c3wfrvd3cw",
"type": "pack_purchase",
"amount": 1,
"balance_after": 4,
"booking_id": null,
"credit_grant_id": "cgr_01jc9e6sgrnw36dyy9jjndfss9",
"membership_id": null,
"created_at": "2026-11-27T18:20:00-03:00"
}
],
"has_more": true,
"next_cursor": "eyJrIjoiY3R4XzAxajZ0cm44Z2Z4M2ZoNmV6YXB4ZHZlN2NuIn0"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}{
"type": "https://docs.craqui.com/errors/revoked_api_key",
"title": "La clave fue revocada",
"status": 401,
"code": "revoked_api_key",
"detail": "Crea una clave nueva en Configuración → Integraciones.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}{
"type": "https://docs.craqui.com/errors/sandbox_unavailable",
"title": "Tu estudio de prueba no está listo",
"status": 409,
"code": "sandbox_unavailable",
"detail": "Restablece tus datos de prueba en Configuración → Integraciones y vuelve a intentar.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}Listar movimientos de créditos
Los movimientos de créditos del estudio, del más nuevo al más viejo. Para sincronizar un estudio grande,
pide por partes con created_at[gte] y created_at[lte].
Paginada por cursor: para sincronizar todo, pide limit=100 y sigue next_cursor.
Solo para estudios: en una academia responde wrong_vertical. Un parámetro que la ruta no
declara responde validation_failed con unknown_parameter.
curl --request GET \
--url https://api.craqui.com/v1/credit_transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.craqui.com/v1/credit_transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.craqui.com/v1/credit_transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craqui.com/v1/credit_transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craqui.com/v1/credit_transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craqui.com/v1/credit_transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craqui.com/v1/credit_transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "ctx_01j4kbxxxhjjpd7ar0mrrdp2j1",
"object": "credit_transaction",
"livemode": true,
"client_id": "cli_01jatfha5h4nkg77c3wfrvd3cw",
"type": "booking_debit",
"amount": -1,
"balance_after": 2,
"booking_id": "bkg_01j5cceh8fkntbjm406cvh2kwm",
"credit_grant_id": null,
"membership_id": null,
"created_at": "2026-11-29T11:02:41-03:00"
},
{
"id": "ctx_01j6w7ctnd637xa9xg3ymff9nj",
"object": "credit_transaction",
"livemode": true,
"client_id": "cli_01jatfha5h4nkg77c3wfrvd3cw",
"type": "booking_debit",
"amount": -1,
"balance_after": 3,
"booking_id": "bkg_01jx9eak0437zdf0yw0atg7g0r",
"credit_grant_id": null,
"membership_id": null,
"created_at": "2026-11-28T09:15:22-03:00"
},
{
"id": "ctx_01j6trn8gfx3fh6ezapxdve7cn",
"object": "credit_transaction",
"livemode": true,
"client_id": "cli_01jatfha5h4nkg77c3wfrvd3cw",
"type": "pack_purchase",
"amount": 1,
"balance_after": 4,
"booking_id": null,
"credit_grant_id": "cgr_01jc9e6sgrnw36dyy9jjndfss9",
"membership_id": null,
"created_at": "2026-11-27T18:20:00-03:00"
}
],
"has_more": true,
"next_cursor": "eyJrIjoiY3R4XzAxajZ0cm44Z2Z4M2ZoNmV6YXB4ZHZlN2NuIn0"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}{
"type": "https://docs.craqui.com/errors/revoked_api_key",
"title": "La clave fue revocada",
"status": 401,
"code": "revoked_api_key",
"detail": "Crea una clave nueva en Configuración → Integraciones.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}{
"type": "https://docs.craqui.com/errors/sandbox_unavailable",
"title": "Tu estudio de prueba no está listo",
"status": 409,
"code": "sandbox_unavailable",
"detail": "Restablece tus datos de prueba en Configuración → Integraciones y vuelve a intentar.",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc"
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}{
"type": "https://docs.craqui.com/errors/invalid_api_key",
"title": "La clave no es válida",
"status": 401,
"code": "invalid_api_key",
"request_id": "req_01hzx8m4k2a7d9q3f5w6y8z0bc",
"detail": "Revisa que copiaste la clave completa, incluido el prefijo (crq_live_ o crq_test_).",
"doc_url": "<string>",
"required_scope": "business:read",
"errors": [
{
"field": "limit",
"code": "invalid_limit",
"detail": "<string>"
}
],
"current_price": {
"amount_cents": 250000,
"currency": "UYU"
},
"expected_amount": {
"amount_cents": 250000,
"currency": "UYU"
},
"amount_at_stake": {
"amount_cents": 250000,
"currency": "UYU"
},
"existing_membership_id": "mem_01j1q27t44qvr6v2s50cv4rbvq",
"booking_ids": [
"bkg_01jx9eak0437zdf0yw0atg7g0r"
]
}Authorizations
Clave del negocio. sk es una clave completa (todo lo que el rol de quien la creó puede dar)
y rk una restringida a los permisos que se eligieron al crearla. Solo se usa desde un
servidor: un pedido desde un navegador se rechaza con browser_not_allowed.
Scopes
Ver los créditos de los clientes.
Headers
Versión de la API para este pedido (YYYY-MM-DD). Si no la mandas, se usa la versión fijada en
la clave cuando se creó.
^\d{4}-\d{2}-\d{2}$"2026-12-01"
Query Parameters
Solo lo de este cliente. Id de un cliente del estudio.
^cli_[0-7][0-9a-hjkmnp-tv-z]{25}$"cli_01jatfha5h4nkg77c3wfrvd3cw"
Solo los movimientos de este tipo.
pack_purchase, membership_replenish, booking_debit, booking_cancel_refund, no_show_forfeit, admin_adjustment, expiry, no_show_refund, no_show_refund_reversal, intro_offer_purchase Solo los movimientos desde este instante, incluido. Instante en RFC 3339 con el offset del negocio en ese momento.
"2026-12-02T19:00:00-03:00"
Solo los movimientos hasta este instante, incluido. Instante en RFC 3339 con el offset del negocio en ese momento.
"2026-12-02T19:00:00-03:00"
Cuántos elementos traer, de 1 a 100.
1 <= x <= 100El next_cursor de la página anterior. Sirve solo para la misma ruta con los mismos filtros: con
otros, la respuesta es invalid_cursor.

