Quote credit quantity
Revision checked credit operation. Secret and trusted tokens require the applicable resource permission. New writes require header idempotency. Immutable rates do not reprice existing agreements. Core validates exact conversion, current funding, prepared work and protected billing boundaries.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
customer_id*stringResource identity owned by this account and mode.
Idempotency-Key*stringSame key and canonical body replay the saved result. A different body returns CreditRequestConflict; pending work returns CreditRequestPending.
^[ -~]+$1 <= length <= 128application/json- body
subscription_id*stringcredits*stringExact invariant decimal string, at most six decimal places.
^(0|[1-9][0-9]*)(\.[0-9]{1,6})?$replaces_invoice_id?stringOwn unpaid unit purchase invoice. Replacement can be refused while payment reconciliation is incomplete.
Success.
application/json- response
quote_id?stringexpires_at?stringdate-timeagreement_id?stringcredit_entitlement_id?stringunit_snapshot?credits?stringExact invariant decimal string, at most six decimal places.
^(0|[1-9][0-9]*)(\.[0-9]{1,6})?$principal?stringtax?stringtotal?stringcurrency?stringpurchase_input_amount?stringreplaces_invoice_id?string|nullcurl -X POST 'https://api.comecero.com/api/v1/customers/string/credit_purchase_quotes' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "subscription_id": "SB0123456789", "credits": "1000"}'{ "quote_id": "quote_compute_1", "expires_at": "2026-11-26T12:05:00Z", "agreement_id": "agr_cust_8412", "credit_entitlement_id": "credit_cust_8412", "unit_snapshot": { "object": "credit_unit_rate", "credit_unit_rate_id": "rate_compute_usd_1", "credit_unit_id": "unit_compute", "account_id": "AB1234", "test": true, "currency": "USD", "version": 1, "money_per_credit": "0.01", "credits_per_money": "100", "singular_label": "credit", "plural_label": "credits", "date_published": "2026-11-02T00:00:00Z" }, "credits": "1000", "principal": "10", "tax": "2", "total": "12", "currency": "USD", "purchase_input_amount": "12", "replaces_invoice_id": null}