MasBilling API
Usage-based billing and rating domain. Handles rating engine for consumption processing, billing processes (postpaid and prepaid), invoice generation and management, and payment handling
- production
- staging
- Authentication
- Bearer · JWT
- Contact
- MasBilling
About this API
This API features a set of MasStack endpoints related to MasBilling domain.
Resources 10
- Consumptions 2 endpoints
Rating API for retrieving subscriptions consumption info
- Movements 10 endpoints
Billing API for managing different types of billing movements (discounts, recurring charges...)
- GET Get all billing movements related to a subscription
/orgs /{orgId} /subscription /{subscriptionId} /movement - POST Create a new billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement - GET Get a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} - PUT Update a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} - DELETE Delete a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId}
- GET Get all billing movements related to a subscription
- Adjustments 7 endpoints
Billing API for managing billing adjustments
- GET Get all account adjustments
/orgs /{orgId} /account /{accountId} /adjustment - POST Create a new account adjustment
/orgs /{orgId} /account /{accountId} /adjustment - GET Get an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} - PUT Update an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} - DELETE Delete an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId}
- GET Get all account adjustments
- Refunds 7 endpoints
Billing API for managing billing refunds
- GET Get all billing refunds related to a subscription
/orgs /{orgId} /subscription /{subscriptionId} /refund - GET Get all billing refunds related to a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund - POST Create a new billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund - GET Get a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId} - PUT Update a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId}
- GET Get all billing refunds related to a subscription
- Invoices 4 endpoints
Billing API for managing invoices, regardless of whether they belong to the postpaid, prepaid, or sales category.
- GET Get all invoices related to an account
/orgs /{orgId} /accounts /{accountId} /invoices - GET [Deprecated] Get all movements related to an invoice
/orgs /{orgId} /accounts /{accountId} /invoices /{invoiceId} /movements - GET [Deprecated] Retrieve a public link to an invoice to download the document
/orgs /{orgId} /accounts /{accountId} /invoices /{invoiceId} /public_link - GET Retrieve the next billing date
/orgs /{orgId} /accounts /{accountId} /billing_details
- GET Get all invoices related to an account
- Postpaid Invoices 10 endpoints
Billing API for managing postpaid invoices
- GET Get a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} - GET Get all movements related to a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /movements - GET Retrieve a public link to a postpaid ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /public_link - GET Get all postpaid rectification invoices of a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices - POST Create a postpaid rectification invoice for a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices
- GET Get a postpaid ordinary invoice
- Prepaid Invoices 3 endpoints
Billing API for managing prepaid invoices
- GET Get a prepaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} - GET Get all movements related to a prepaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} /movements - GET Retrieve a public link to a prepaid ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} /public_link
- GET Get a prepaid ordinary invoice
- Sales Invoices 7 endpoints
Billing API for managing sales invoices
- GET Get all sales invoices related to an account
/orgs /{orgId} /accounts /{accountId} /invoices /sales - GET [Deprecated] Get a sales invoice
/orgs /{orgId} /accounts /{accountId} /invoices /sales /{invoiceId} - GET Get a sales ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} - GET Get all movements related to a sales ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} /movements - GET [Deprecated] Retrieve a public link to a sales invoice to download the document
/orgs /{orgId} /accounts /{accountId} /invoices /sales /{invoiceId} /public_link
- GET Get all sales invoices related to an account
- LocationTax 1 endpoint
Billing API for fetching location taxes
- BillingInfo 1 endpoint
Commons API for fetching tenants billing info
MasBilling API
Usage-based billing and rating domain. Handles rating engine for consumption processing, billing processes (postpaid and prepaid), invoice generation and management, and payment handling
- production
- staging
- Authentication
- Bearer · JWT
- Contact
- MasBilling
About this API
This API features a set of MasStack endpoints related to MasBilling domain.
Resources 10
- Consumptions 2 endpoints
Rating API for retrieving subscriptions consumption info
- Movements 10 endpoints
Billing API for managing different types of billing movements (discounts, recurring charges...)
- GET Get all billing movements related to a subscription
/orgs /{orgId} /subscription /{subscriptionId} /movement - POST Create a new billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement - GET Get a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} - PUT Update a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} - DELETE Delete a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId}
- GET Get all billing movements related to a subscription
- Adjustments 7 endpoints
Billing API for managing billing adjustments
- GET Get all account adjustments
/orgs /{orgId} /account /{accountId} /adjustment - POST Create a new account adjustment
/orgs /{orgId} /account /{accountId} /adjustment - GET Get an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} - PUT Update an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} - DELETE Delete an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId}
- GET Get all account adjustments
- Refunds 7 endpoints
Billing API for managing billing refunds
- GET Get all billing refunds related to a subscription
/orgs /{orgId} /subscription /{subscriptionId} /refund - GET Get all billing refunds related to a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund - POST Create a new billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund - GET Get a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId} - PUT Update a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId}
- GET Get all billing refunds related to a subscription
- Invoices 4 endpoints
Billing API for managing invoices, regardless of whether they belong to the postpaid, prepaid, or sales category.
- GET Get all invoices related to an account
/orgs /{orgId} /accounts /{accountId} /invoices - GET [Deprecated] Get all movements related to an invoice
/orgs /{orgId} /accounts /{accountId} /invoices /{invoiceId} /movements - GET [Deprecated] Retrieve a public link to an invoice to download the document
/orgs /{orgId} /accounts /{accountId} /invoices /{invoiceId} /public_link - GET Retrieve the next billing date
/orgs /{orgId} /accounts /{accountId} /billing_details
- GET Get all invoices related to an account
- Postpaid Invoices 10 endpoints
Billing API for managing postpaid invoices
- GET Get a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} - GET Get all movements related to a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /movements - GET Retrieve a public link to a postpaid ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /public_link - GET Get all postpaid rectification invoices of a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices - POST Create a postpaid rectification invoice for a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices
- GET Get a postpaid ordinary invoice
- Prepaid Invoices 3 endpoints
Billing API for managing prepaid invoices
- GET Get a prepaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} - GET Get all movements related to a prepaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} /movements - GET Retrieve a public link to a prepaid ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} /public_link
- GET Get a prepaid ordinary invoice
- Sales Invoices 7 endpoints
Billing API for managing sales invoices
- GET Get all sales invoices related to an account
/orgs /{orgId} /accounts /{accountId} /invoices /sales - GET [Deprecated] Get a sales invoice
/orgs /{orgId} /accounts /{accountId} /invoices /sales /{invoiceId} - GET Get a sales ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} - GET Get all movements related to a sales ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} /movements - GET [Deprecated] Retrieve a public link to a sales invoice to download the document
/orgs /{orgId} /accounts /{accountId} /invoices /sales /{invoiceId} /public_link
- GET Get all sales invoices related to an account
- LocationTax 1 endpoint
Billing API for fetching location taxes
- BillingInfo 1 endpoint
Commons API for fetching tenants billing info
Release notes
v1latest1.31.0
- Implement
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/movements. Its response items are now the newPostpaidOrdinaryInvoiceMovementDTOandPostpaidOrdinaryInvoiceSubscriptionMovementsDTO, which add the optionalrefundable_amount: the amount with taxes of the movement minus the amounts refunded by issued rectification invoices. It is only present once the invoice is issued.InvoiceMovementDTOandSubscriptionMovementsResponseDTOare unchanged.
1.30.2
- Make
invoice_numberandissue_dateoptional inPostpaidOrdinaryInvoiceResponseDTO: they are only returned once the invoice is issued, since draft invoices have no fiscal invoice number nor issue date yet.
1.30.1
- Make
refundable_amountoptional inMovementResponseDTO,SalesOrdinaryInvoiceResponseDTO,PostpaidOrdinaryInvoiceResponseDTOandPrepaidOrdinaryInvoiceResponseDTO: the field is removed from therequiredlist. It is only returned once the document is no longer editable (invoices once issued, movements once billed), since it represents the maximum amount that can still be refunded.
1.30.0
- Add
GET /orgs/{orgId}/accounts/{accountId}/movementsto retrieve all billing movements related to an account. The response is an array ofMovementResponseDTO. - Add
GET /orgs/{orgId}/accounts/{accountId}/movements/{movementId}to retrieve a single billing movement by account. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}to retrieve a postpaid ordinary invoice. The response is the newPostpaidOrdinaryInvoiceResponseDTO. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/prepaid_service/{ordinaryInvoiceId}to retrieve a prepaid ordinary invoice. The response is the newPrepaidOrdinaryInvoiceResponseDTO. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoicesto list all postpaid rectification invoices of a postpaid ordinary invoice. - Remove
invoice_namefield fromPostpaidRectificationInvoiceRefundRequestDTO(creation request body for postpaid rectification invoices). - Add required
refundable_amountfield toMovementResponseDTO, indicating the maximum amount with taxes that can still be refunded for that movement. - Add required
refundable_amountfield toSalesOrdinaryInvoiceResponseDTO,PostpaidOrdinaryInvoiceResponseDTOandPrepaidOrdinaryInvoiceResponseDTO, indicating the maximum amount with taxes that can still be refunded for that invoice. - Declare the
{ordinaryInvoiceId}and{rectificationInvoiceId}path parameters withformat: uuid: they only accept the internal id of the invoice, never the fiscal invoice number. Requests with a malformed id are rejected with400. In the Java SDK the type of these parameters changes fromStringtoUUID. - Declare the
{adjustmentId},{movementId}and{refundId}path parameters, and all UUID identifier fields across DTOs (id,related_movement_id), withformat: uuid. In the Java SDK the type of these parameters and fields changes fromStringtoUUID. - Introduce
Movements,Postpaid Invoices,Prepaid InvoicesandSales Invoicesoperation tags. Existing endpoints previously taggedInvoicesare moved to their respective category tag. - Deprecate
GET /orgs/{orgId}/accounts/{accountId}/invoices/sales/{invoiceId}. It will be removed in a future release once consumers migrate to the new endpoint. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/sales/{ordinaryInvoiceId}as the replacement forGET /orgs/{orgId}/accounts/{accountId}/invoices/sales/{invoiceId}to retrieve a sales ordinary invoice. The response is the newSalesOrdinaryInvoiceResponseDTO. - Deprecate
GET /orgs/{orgId}/accounts/{accountId}/invoices/sales/{invoiceId}/public_link. It will be removed in a future release once consumers migrate to the new endpoint. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/sales/{ordinaryInvoiceId}/public_linkas the replacement forGET /orgs/{orgId}/accounts/{accountId}/invoices/sales/{invoiceId}/public_linkto retrieve a public link to download the sales ordinary invoice document. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/sales/{ordinaryInvoiceId}/movementsto retrieve the sales movements of a sales ordinary invoice. The response is the newSalesOrdinaryInvoiceMovementsResponseDTO.
1.29.0
- Add required
typefield toInvoiceResponseDTOandSalesInvoiceResponseDTO, exposing whether the invoice isORDINARYorRECTIFICATION. - Add
typefilter toGET /orgs/{orgId}/accounts/{accountId}/invoices. Available types areORDINARYandRECTIFICATION. - Add
typefilter toGET /orgs/{orgId}/accounts/{accountId}/invoices/sales. Available types areORDINARYandRECTIFICATION. - Deprecate
GET /orgs/{orgId}/accounts/{accountId}/invoices/{invoiceId}/movements. It will be removed in a future release once consumers migrate to the new endpoint. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/movementsas the postpaid-specific replacement forGET /orgs/{orgId}/accounts/{accountId}/invoices/{invoiceId}/movements. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/prepaid_service/{ordinaryInvoiceId}/movementsto retrieve the movements of a prepaid ordinary invoice. - Deprecate
GET /orgs/{orgId}/accounts/{accountId}/invoices/{invoiceId}/public_link. It will be removed in a future release once consumers migrate to the new endpoint. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/public_linkas the postpaid-specific replacement forGET /orgs/{orgId}/accounts/{accountId}/invoices/{invoiceId}/public_link. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/prepaid_service/{ordinaryInvoiceId}/public_linkto retrieve a public link to download the prepaid ordinary invoice document. - Add
POST /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoicesto create a draft postpaid rectification invoice for a postpaid ordinary invoice. The response returns the id of the created postpaid rectification invoice. - Add
POST /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}/issueto issue a draft postpaid rectification invoice. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}to retrieve a postpaid rectification invoice, detailing its refunds and the reason why the invoice is rectified. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}/movementsto retrieve the movements of a postpaid rectification invoice. - Add
DELETE /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}to delete a postpaid rectification invoice while it is still a draft. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}/public_linkto retrieve a public link to download the postpaid rectification invoice document. - Add
GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/sales/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}/public_linkto retrieve a public link to download the sales rectification invoice document.
1.28.0
- Add
invoice_numberfield toInvoiceResponseDTO,SalesInvoiceResponseDTO,MovementResponseDTO,AccountAdjustmentResponseDTOandRefundResponseDTO, exposing the same value asinvoice_id. Theinvoice_idfield is now deprecated (kept for backwards compatibility) and will be removed in a future release; consumers should migrate toinvoice_number. OnInvoiceResponseDTOtheinvoice_numberfield is optional and is omitted for draft (pending) invoices, which have no invoice number yet.
1.27.9
- Add required
id(internal surrogate identifier) toInvoiceResponseDTOandSalesInvoiceResponseDTO. - The
{invoiceId}path parameter of the invoice endpoints now accepts either the fiscalinvoice_id(invoice sequence) or the internalid.
1.27.8
- Add
GET /orgs/{orgId}/accounts/{accountId}/invoices/salesto list sales invoices, optionally filtered bydevice_id. - Add
GET /orgs/{orgId}/accounts/{accountId}/invoices/sales/{invoiceId}to retrieve a single sales invoice. - Rename path parameter from
invoiceSequencetoinvoiceIdinGET /orgs/{orgId}/accounts/{accountId}/invoices/sales/{invoiceId}/public_link(parameter is now consistent with theinvoice_idfield returned in the response DTO).
1.27.7
- Split MovementTypeDTO into MovementTypeResponseDTO and MovememtTypeRequestDTO.
- Split TaxDTO into TaxResponseDTO and TaxRequestDTO.
1.27.6
- Use
AmountRequestDTOinstead ofBillableAmountRequestDTOin:POST /orgs/{orgId}/subscription/{subscriptionId}/movement/{movementId}/refund-non-subscribable-products
1.27.5
- Add
categoryfilter toGET /orgs/{orgId}/accounts/{accountId}/invoices. - Add
categoryfield to invoice responses.
1.27.4
- Add endpoint to retrieve sales invoice public links.
1.27.3
- Float fields changed from float to double to support float64 values.
1.27.1
- Add release notes section
- Documented all validation requirements in endpoint descriptions (subscription active date, external ID uniqueness, transaction type validation, etc.)
Consumptions
Get subscription general consumptions info
/orgs /{orgId} /subscription /{subscriptionId} /consumptions Authenticated with a bearer token in the Authorization header Authentication
Show subscription general consumptions info (bonus and monetary balances).
- This service will provide information for prepaid and postpaid subscriptions.
- Prepaid subscriptions
- This service will inform only about the subscription monetary balance at the request moment.
- Postpaid subscriptions
- This service will inform about monetary and bonus balances of the current billing cycle, i.e., from the period between 1st day of the current billing cycle and the request moment.
- This service will only inform about subscriptions that have been active during the current billing cycle. For terminated subscriptions in previous billing cycles, no information will be offered.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Responses
Subscription balances details
-
idstring RequiredSubscription id
-
msisdnstring RequiredSubscription msisdn
-
tenantstring RequiredSubscription organization
-
billingTypeinteger (int64) RequiredSubscription type id (prepaid: 1, postpaid: 2, landline: 4)
-
monetaryobject[] RequiredList of subscription monetary balances
-
idstring RequiredMonetary balance id
-
currentValuenumber (double) RequiredCurrent value of the monetary balance
-
currentValueWithTaxesnumber (double) RequiredCurrent value with taxes of the monetary balance. In Prepaid is 0.
-
unitstring RequiredUnit of the monetary balance value
-
activationDatetimestring (date-time) RequiredStart date of the monetary balance period (UTC). Null date = 0001-01-01T00:00:00Z
-
expirationDatetimestring (date-time) RequiredEnd date of the monetary balance period (UTC). Null date = 0001-01-01T00:00:00Z
-
countersobject[] RequiredList of available counters for that balance
-
typestring Requiredcounter type
-
valuenumber (double) Requiredcurrent value for that counter in the specified balance
-
-
-
bonusesobject Required-
dataobject[] RequiredList of subscription data bonus balances
-
idstring RequiredBonus balance id
-
initialValuenumber (double) RequiredInitial value of the bonus balance
-
currentValuenumber (double) RequiredCurrent value of the bonus balance
-
unitstring RequiredUnit of the bonus balance value
-
activationDatetimestring (date-time) RequiredStart date of the bonus balance period (UTC)
-
expirationDatetimestring (date-time) RequiredEnd date of the bonus balance period (UTC)
-
renovationsCountinteger RequiredNumber of renovations of the bonus
-
catalogBonusIdstring RequiredCatalog bonus id of the bonus (MMId)
-
customerBonusIdstring RequiredCustomer bonus id of the bonus (PackageSubscriptionServiceId)
-
isSharedboolean RequiredIndicates if the bonus balance is shared or not
-
-
smsobject[] RequiredList of subscription sms bonus balances
-
idstring RequiredBonus balance id
-
initialValuenumber (double) RequiredInitial value of the bonus balance
-
currentValuenumber (double) RequiredCurrent value of the bonus balance
-
unitstring RequiredUnit of the bonus balance value
-
activationDatetimestring (date-time) RequiredStart date of the bonus balance period (UTC)
-
expirationDatetimestring (date-time) RequiredEnd date of the bonus balance period (UTC)
-
renovationsCountinteger RequiredNumber of renovations of the bonus
-
catalogBonusIdstring RequiredCatalog bonus id of the bonus (MMId)
-
customerBonusIdstring RequiredCustomer bonus id of the bonus (PackageSubscriptionServiceId)
-
isSharedboolean RequiredIndicates if the bonus balance is shared or not
-
-
voiceobject[] RequiredList of subscription voice bonus balances
-
idstring RequiredBonus balance id
-
initialValuenumber (double) RequiredInitial value of the bonus balance
-
currentValuenumber (double) RequiredCurrent value of the bonus balance
-
unitstring RequiredUnit of the bonus balance value
-
activationDatetimestring (date-time) RequiredStart date of the bonus balance period (UTC)
-
expirationDatetimestring (date-time) RequiredEnd date of the bonus balance period (UTC)
-
renovationsCountinteger RequiredNumber of renovations of the bonus
-
catalogBonusIdstring RequiredCatalog bonus id of the bonus (MMId)
-
customerBonusIdstring RequiredCustomer bonus id of the bonus (PackageSubscriptionServiceId)
-
isSharedboolean RequiredIndicates if the bonus balance is shared or not
-
-
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
Consumptions
Get subscription consumptions details
/orgs /{orgId} /subscription /{subscriptionId} /consumptions /details Authenticated with a bearer token in the Authorization header Authentication
Show subscription consumptions details (subscription cdrs details). Consumption details could be filtered by period and traffic type ("data", "sms", "voice").
- This service will provide information for prepaid and postpaid subscriptions.
- Prepaid subscriptions
- If a period is not specified, this service will offer consumption details for the last 30 days.
- If a period is specified, this service will offer consumption details for a maximum of the last 90 days. For example, if we are at "2021-09-15T16:01:03Z" (note that dates are in UTC) we could request a maximum period that spans from "2021-06-17T16:01:03Z" to "2021-09-15T16:01:03Z". Out of this period, service will return an error indicating that the requested period is outside the limits.
- Postpaid subscriptions
- If a period is not specified, this service will offer consumption details of the current billing cycle, that is, the period between beginning of the billing cycle and the request moment.
- If a period is specified, this service will offer consumption details for a maximum of 3 billing cycles prior to the current one. For example, if we are at "2021-09-15T16:01:03Z" (note that dates are in UTC) we could request a maximum period that spans from "2021-05-31T22:00:00Z" to "2021-09-15T16:01:03Z" for a tenant whose billing cycle start on the first day of the month. Out of this period, the service will return an error indicating that the requested period is outside the limits.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Query parameters
typestringCdr type used as filter
fromDatestring (date-time)From datetime used as filter
toDatestring (date-time)To datetime used as filter
Responses
Subscription cdrs details
-
dataobject[]List of subscription data cdrs
-
idstring RequiredCDR id
-
originNumberstring RequiredCDR origin number
-
destinationNumberstring RequiredCDR destination number (empty for "data" cdr type)
-
initialDatestring (date-time) RequiredCDR date (start date of the call for "voice" cdr type)
-
usageinteger (int64) RequiredAmount of usage of the CDR
-
unitstring RequiredUnit of the CDR usage
-
costWithoutTaxesnumber (double) RequiredCost of the CDR without taxes
-
taxPercentagenumber (double) RequiredTax percentage that should be applied to CDR cost
-
ratingCaseCategorystring RequiredRating category of the CDR. In Prepaid is empty.
Show 16 values Hide 16 values
VOICE_NATIONALSMS_NATIONALDATA_NATIONALVOICE_INTERNATIONALSMS_INTERNATIONALVOICE_ROAMING_UESMS_ROAMING_UEDATA_ROAMING_UEVOICE_ROAMINGSMS_ROAMINGDATA_ROAMINGVOICE_SPECIALSMS_SPECIALVOICE_PREMIUMSMS_PREMIUMUNKNOWN
-
ratingCaseDescriptionstring RequiredDescription of the rating case. Empty for prepaid.
-
debitCasestring RequiredDebit category of the CDR (if it was debited from a bonus or from a rating plan). In Prepaid is rating_plan.
-
debitCatalogIdstring RequiredDepending on 'debitCase' field, catalog rating plan id or catalog bonus id (MMId) used to debit the CDR
-
debitCustomerIdstring RequiredCustomer bonus id (PackageSubscriptionServiceId) used to debit the CDR (empty if it was debited from rating plan). In Prepaid is empty.
-
additionalDetailsobjectAdditional details of the consumption
-
smsPremiumInfoobject-
descriptionstringDescription of the premium SMS
-
supplierNamestringName of the supplier
-
-
-
-
smsobject[]List of subscription sms cdrs
-
idstring RequiredCDR id
-
originNumberstring RequiredCDR origin number
-
destinationNumberstring RequiredCDR destination number (empty for "data" cdr type)
-
initialDatestring (date-time) RequiredCDR date (start date of the call for "voice" cdr type)
-
usageinteger (int64) RequiredAmount of usage of the CDR
-
unitstring RequiredUnit of the CDR usage
-
costWithoutTaxesnumber (double) RequiredCost of the CDR without taxes
-
taxPercentagenumber (double) RequiredTax percentage that should be applied to CDR cost
-
ratingCaseCategorystring RequiredRating category of the CDR. In Prepaid is empty.
Show 16 values Hide 16 values
VOICE_NATIONALSMS_NATIONALDATA_NATIONALVOICE_INTERNATIONALSMS_INTERNATIONALVOICE_ROAMING_UESMS_ROAMING_UEDATA_ROAMING_UEVOICE_ROAMINGSMS_ROAMINGDATA_ROAMINGVOICE_SPECIALSMS_SPECIALVOICE_PREMIUMSMS_PREMIUMUNKNOWN
-
ratingCaseDescriptionstring RequiredDescription of the rating case. Empty for prepaid.
-
debitCasestring RequiredDebit category of the CDR (if it was debited from a bonus or from a rating plan). In Prepaid is rating_plan.
-
debitCatalogIdstring RequiredDepending on 'debitCase' field, catalog rating plan id or catalog bonus id (MMId) used to debit the CDR
-
debitCustomerIdstring RequiredCustomer bonus id (PackageSubscriptionServiceId) used to debit the CDR (empty if it was debited from rating plan). In Prepaid is empty.
-
additionalDetailsobjectAdditional details of the consumption
-
smsPremiumInfoobject-
descriptionstringDescription of the premium SMS
-
supplierNamestringName of the supplier
-
-
-
-
voiceobject[]List of subscription voice cdrs
-
idstring RequiredCDR id
-
originNumberstring RequiredCDR origin number
-
destinationNumberstring RequiredCDR destination number (empty for "data" cdr type)
-
initialDatestring (date-time) RequiredCDR date (start date of the call for "voice" cdr type)
-
usageinteger (int64) RequiredAmount of usage of the CDR
-
unitstring RequiredUnit of the CDR usage
-
costWithoutTaxesnumber (double) RequiredCost of the CDR without taxes
-
taxPercentagenumber (double) RequiredTax percentage that should be applied to CDR cost
-
ratingCaseCategorystring RequiredRating category of the CDR. In Prepaid is empty.
Show 16 values Hide 16 values
VOICE_NATIONALSMS_NATIONALDATA_NATIONALVOICE_INTERNATIONALSMS_INTERNATIONALVOICE_ROAMING_UESMS_ROAMING_UEDATA_ROAMING_UEVOICE_ROAMINGSMS_ROAMINGDATA_ROAMINGVOICE_SPECIALSMS_SPECIALVOICE_PREMIUMSMS_PREMIUMUNKNOWN
-
ratingCaseDescriptionstring RequiredDescription of the rating case. Empty for prepaid.
-
debitCasestring RequiredDebit category of the CDR (if it was debited from a bonus or from a rating plan). In Prepaid is rating_plan.
-
debitCatalogIdstring RequiredDepending on 'debitCase' field, catalog rating plan id or catalog bonus id (MMId) used to debit the CDR
-
debitCustomerIdstring RequiredCustomer bonus id (PackageSubscriptionServiceId) used to debit the CDR (empty if it was debited from rating plan). In Prepaid is empty.
-
additionalDetailsobjectAdditional details of the consumption
-
smsPremiumInfoobject-
descriptionstringDescription of the premium SMS
-
supplierNamestringName of the supplier
-
-
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
Movements
Get all billing movements related to a subscription
/orgs /{orgId} /subscription /{subscriptionId} /movement Authenticated with a bearer token in the Authorization header Authentication
In the context of a given subscription, retrieves a list of all related billing movements.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Query parameters
fromDatestring (date-time)From datetime used as filter
toDatestring (date-time)To datetime used as filter
movementTypestringMovement type used as filter
operationTypestringOperation type used as filter
Responses
List of all billing movements by subscription
-
idstring (uuid) Required -
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this movement belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this movement belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
invoice_cycle_datestring (date-time) RequiredIf the invoice_id field is empty, this field indicates the expected invoice cycle date of the movement. On the other hand, if the invoice_id field is already filled, this field indicates the current invoice cycle date of the movement.
-
external_movement_unique_idstring Required -
billableboolean Required -
transaction_type_idstring Required -
operation_typestring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Create a new billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement Authenticated with a bearer token in the Authorization header Authentication
Create a new billing movement.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Request body application/json Required
-
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_movement_unique_idstring Required -
billableboolean Required -
descriptionstring Required
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Get a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves a single billing movement.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Responses
Retrieve a billing movement
-
idstring (uuid) Required -
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this movement belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this movement belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
invoice_cycle_datestring (date-time) RequiredIf the invoice_id field is empty, this field indicates the expected invoice cycle date of the movement. On the other hand, if the invoice_id field is already filled, this field indicates the current invoice cycle date of the movement.
-
external_movement_unique_idstring Required -
billableboolean Required -
transaction_type_idstring Required -
operation_typestring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Update a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} Authenticated with a bearer token in the Authorization header Authentication
Update an existing billing movement. Movements can only be updated if they have not been invoiced, that is, if their invoice_id field is empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Request body application/json Required
-
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_movement_unique_idstring Required -
billableboolean Required -
descriptionstring Required
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Delete a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} Authenticated with a bearer token in the Authorization header Authentication
Delete an existing billing movement. Movements can only be deleted if they have not been invoiced, that is, if their invoice_id field is empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Get all billing movements related to an account
/orgs /{orgId} /accounts /{accountId} /movements Authenticated with a bearer token in the Authorization header Authentication
In the context of a given account, retrieves a list of all related billing movements.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
Query parameters
fromDatestring (date-time)From datetime used as filter
toDatestring (date-time)To datetime used as filter
movementTypestringMovement type used as filter
operationTypestringOperation type used as filter
Responses
List of all billing movements by account
-
idstring (uuid) Required -
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this movement belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this movement belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
invoice_cycle_datestring (date-time) RequiredIf the invoice_id field is empty, this field indicates the expected invoice cycle date of the movement. On the other hand, if the invoice_id field is already filled, this field indicates the current invoice cycle date of the movement.
-
external_movement_unique_idstring Required -
billableboolean Required -
transaction_type_idstring Required -
operation_typestring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Get a billing movement
/orgs /{orgId} /accounts /{accountId} /movements /{movementId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves a single billing movement.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Responses
Retrieve a billing movement
-
idstring (uuid) Required -
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this movement belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this movement belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
invoice_cycle_datestring (date-time) RequiredIf the invoice_id field is empty, this field indicates the expected invoice cycle date of the movement. On the other hand, if the invoice_id field is already filled, this field indicates the current invoice cycle date of the movement.
-
external_movement_unique_idstring Required -
billableboolean Required -
transaction_type_idstring Required -
operation_typestring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Create a new billing movement (for non subscribable products)
/orgs /{orgId} /subscription /{subscriptionId} /movement-non-subscribable-products Authenticated with a bearer token in the Authorization header Authentication
Create a new billing movement (for non subscribable products).
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Request body application/json Required
-
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_movement_unique_idstring Required -
transaction_type_idstring Required -
descriptionstring Required
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Update a billing movement (for non subscribable products)
/orgs /{orgId} /subscription /{subscriptionId} /movement-non-subscribable-products /{movementId} Authenticated with a bearer token in the Authorization header Authentication
Update an existing billing movement (for non subscribable products). Movements (for non subscribable products) can only be updated if they have not been invoiced, that is, if their invoice_id field is empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Request body application/json Required
-
typestring Required -
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_movement_unique_idstring Required -
transaction_type_idstring Required -
descriptionstring Required
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Movements
Delete a billing movement (for non subscribable products)
Deprecated /orgs /{orgId} /subscription /{subscriptionId} /movement-non-subscribable-products /{movementId} Authenticated with a bearer token in the Authorization header Authentication
Delete an existing billing movement (for non subscribable products). Movements (for non subscribable products) can only be deleted if they have not been invoiced, that is, if their invoice_id field is empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Get all account adjustments
/orgs /{orgId} /account /{accountId} /adjustment Authenticated with a bearer token in the Authorization header Authentication
Retrieve a list of all account adjustments for a given account.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
Responses
Retrieve a list of all account adjustments
-
idstring (uuid) Required -
adjustment_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
operation_typestring Required -
external_adjustment_unique_idstring Required -
transaction_type_idstring Required -
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this adjustment belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this adjustment belongs to. Same value as the deprecated invoice_id field.
-
invoice_cycle_datestring (date-time) RequiredIf the invoice_id field is empty, this field indicates the expected invoice cycle date of the movement. On the other hand, if the invoice_id field is already filled, this field indicates the current invoice cycle date of the movement.
-
descriptionstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Create a new account adjustment
/orgs /{orgId} /account /{accountId} /adjustment Authenticated with a bearer token in the Authorization header Authentication
Create a new account adjustment.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
Request body application/json Required
-
adjustment_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountany | any RequiredAmount of an adjustment. Exactly one of value_without_taxes or value_with_taxes must be provided, but not both. The value must be greater than 0.
-
value_without_taxesnumber (double)Amount without taxes. Must be greater than 0. Provide either this field OR value_with_taxes, but not both.
-
value_with_taxesnumber (double)Amount with taxes. Must be greater than 0. Provide either this field OR value_without_taxes, but not both.
One ofanyany -
-
external_adjustment_unique_idstring Required -
transaction_type_idstring Required -
descriptionstring Required
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Get an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} Authenticated with a bearer token in the Authorization header Authentication
Retrieve a single account adjustment.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
adjustmentIdstring (uuid)RequiredExecutes the request in the context of the given billing adjustment
Responses
Retrieve a single account adjustment
-
idstring (uuid) Required -
adjustment_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
operation_typestring Required -
external_adjustment_unique_idstring Required -
transaction_type_idstring Required -
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this adjustment belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this adjustment belongs to. Same value as the deprecated invoice_id field.
-
invoice_cycle_datestring (date-time) RequiredIf the invoice_id field is empty, this field indicates the expected invoice cycle date of the movement. On the other hand, if the invoice_id field is already filled, this field indicates the current invoice cycle date of the movement.
-
descriptionstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Update an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} Authenticated with a bearer token in the Authorization header Authentication
Update an existing account adjustment.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
adjustmentIdstring (uuid)RequiredExecutes the request in the context of the given billing adjustment
Request body application/json Required
-
adjustment_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountany | any RequiredAmount of an adjustment. Exactly one of value_without_taxes or value_with_taxes must be provided, but not both. The value must be greater than 0.
-
value_without_taxesnumber (double)Amount without taxes. Must be greater than 0. Provide either this field OR value_with_taxes, but not both.
-
value_with_taxesnumber (double)Amount with taxes. Must be greater than 0. Provide either this field OR value_without_taxes, but not both.
One ofanyany -
-
external_adjustment_unique_idstring Required -
transaction_type_idstring Required -
descriptionstring Required
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Delete an account adjustment
/orgs /{orgId} /account /{accountId} /adjustment /{adjustmentId} Authenticated with a bearer token in the Authorization header Authentication
Delete an existing account adjustment.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
adjustmentIdstring (uuid)RequiredExecutes the request in the context of the given billing adjustment
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Create a new billing movement of type adjustment
/orgs /{orgId} /subscription /{subscriptionId} /adjustment Authenticated with a bearer token in the Authorization header Authentication
Create a new billing movement of type adjustment.
Validation Requirements:
-
adjustment_datetime: Must be set and the subscription must be active at this date/time. -
external_adjustment_unique_id: Must be unique within the subscription. Cannot duplicate an existing adjustment's external ID. -
transaction_type_id: Must exist in the catalogue and be valid for this subscription's commercial product. -
description: Required and cannot be empty. -
amount: Eithervalue_without_taxesORvalue_with_taxesmust be provided (not both), and the value must be greater than 0. -
period_start_datetimeandperiod_end_datetime: Both must be provided together, or neither. If both are provided,adjustment_datetimemust fall within this period (inclusive). -
Subscription must have a postpaid billing type.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Request body application/json Required
-
adjustment_datetimestring (date-time) RequiredDate and time when the adjustment occurs. The subscription must be active at this date/time. Cannot be empty.
-
period_start_datetimestring (date-time)Start of the billing period this adjustment applies to. If provided, period_end_datetime must also be provided. The adjustment_datetime must fall within the period (inclusive).
-
period_end_datetimestring (date-time)End of the billing period this adjustment applies to. If provided, period_start_datetime must also be provided. The adjustment_datetime must fall within the period (inclusive).
-
amountany | any RequiredAmount of an adjustment. Exactly one of value_without_taxes or value_with_taxes must be provided, but not both. The value must be greater than 0.
-
value_without_taxesnumber (double)Amount without taxes. Must be greater than 0. Provide either this field OR value_with_taxes, but not both.
-
value_with_taxesnumber (double)Amount with taxes. Must be greater than 0. Provide either this field OR value_without_taxes, but not both.
One ofanyany -
-
external_adjustment_unique_idstring RequiredUnique identifier for this adjustment from the external system. Must be unique within the subscription. Cannot be empty.
-
transaction_type_idstring RequiredID of the transaction type from the catalogue. Must be valid for the subscription's commercial product. Cannot be empty.
-
descriptionstring RequiredHuman-readable description of the adjustment. Cannot be empty.
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Adjustments
Update a billing movement of type adjustment
/orgs /{orgId} /subscription /{subscriptionId} /adjustment /{adjustmentId} Authenticated with a bearer token in the Authorization header Authentication
Update an existing billing movement of type adjustment. Adjustments can only be updated if they have not been invoiced, that is, if their invoice_id field is empty.
Validation Requirements:
-
adjustment_datetime: Must be set and the subscription must be active at this date/time. -
external_adjustment_unique_id: Must be unique within the subscription. Cannot duplicate another adjustment's external ID (can match the same adjustment being updated). -
transaction_type_id: Must exist in the catalogue and be valid for this subscription's commercial product. -
description: Required and cannot be empty. -
amount: Eithervalue_without_taxesORvalue_with_taxesmust be provided (not both), and the value must be greater than 0. -
period_start_datetimeandperiod_end_datetime: Both must be provided together, or neither. If both are provided,adjustment_datetimemust fall within this period (inclusive). -
Subscription must have a postpaid billing type.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
adjustmentIdstring (uuid)RequiredExecutes the request in the context of the given billing adjustment
Request body application/json Required
-
adjustment_datetimestring (date-time) RequiredDate and time when the adjustment occurs. The subscription must be active at this date/time. Cannot be empty.
-
period_start_datetimestring (date-time)Start of the billing period this adjustment applies to. If provided, period_end_datetime must also be provided. The adjustment_datetime must fall within the period (inclusive).
-
period_end_datetimestring (date-time)End of the billing period this adjustment applies to. If provided, period_start_datetime must also be provided. The adjustment_datetime must fall within the period (inclusive).
-
amountany | any RequiredAmount of an adjustment. Exactly one of value_without_taxes or value_with_taxes must be provided, but not both. The value must be greater than 0.
-
value_without_taxesnumber (double)Amount without taxes. Must be greater than 0. Provide either this field OR value_with_taxes, but not both.
-
value_with_taxesnumber (double)Amount with taxes. Must be greater than 0. Provide either this field OR value_without_taxes, but not both.
One ofanyany -
-
external_adjustment_unique_idstring RequiredUnique identifier for this adjustment from the external system. Must be unique within the subscription. Cannot be empty.
-
transaction_type_idstring RequiredID of the transaction type from the catalogue. Must be valid for the subscription's commercial product. Cannot be empty.
-
descriptionstring RequiredHuman-readable description of the adjustment. Cannot be empty.
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Get all billing refunds related to a subscription
/orgs /{orgId} /subscription /{subscriptionId} /refund Authenticated with a bearer token in the Authorization header Authentication
In the context of a given subscription, retrieves a list of all related billing refunds.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
Query parameters
fromDatestring (date-time)From datetime used as filter
toDatestring (date-time)To datetime used as filter
Responses
List of all subscription billing refunds
-
idstring (uuid) Required -
refund_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this refund belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this refund belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
external_refund_unique_idstring Required -
billableboolean Required -
descriptionstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Get all billing refunds related to a billing movement
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund Authenticated with a bearer token in the Authorization header Authentication
In the context of a given billing movement, retrieves a list of all related billing refunds.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Responses
List of all movement billing refunds
-
idstring (uuid) Required -
refund_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this refund belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this refund belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
external_refund_unique_idstring Required -
billableboolean Required -
descriptionstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Create a new billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund Authenticated with a bearer token in the Authorization header Authentication
Create a new billing refund. Refunds can only be created if their related billing movement has been invoiced, that is, if their related billing movement invoice_id field is not empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Request body application/json Required
-
refund_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_refund_unique_idstring Required -
billableboolean Required -
descriptionstring Required
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Get a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves a single billing refund.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
refundIdstring (uuid)RequiredExecutes the request in the context of the given billing refund
Responses
Retrieve a billing refund
-
idstring (uuid) Required -
refund_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
invoice_idstring RequiredDeprecated alias of invoice_number. Identifier of the invoice this refund belongs to. Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredIdentifier of the invoice this refund belongs to. Same value as the deprecated invoice_id field.
-
external_invoice_idstring Required -
external_refund_unique_idstring Required -
billableboolean Required -
descriptionstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Update a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId} Authenticated with a bearer token in the Authorization header Authentication
Update an existing billing refund. Refunds can only be updated if they have not been invoiced, that is, if their invoice_id field is empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
refundIdstring (uuid)RequiredExecutes the request in the context of the given billing refund
Request body application/json Required
-
refund_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_refund_unique_idstring Required -
billableboolean Required -
descriptionstring Required
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Delete a billing refund
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund /{refundId} Authenticated with a bearer token in the Authorization header Authentication
Delete an existing billing refund. Refunds can only be deleted if they have not been invoiced, that is, if their invoice_id field is empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
refundIdstring (uuid)RequiredExecutes the request in the context of the given billing refund
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Refunds
Create a new billing refund (for non subscribable products)
/orgs /{orgId} /subscription /{subscriptionId} /movement /{movementId} /refund-non-subscribable-products Authenticated with a bearer token in the Authorization header Authentication
Create a new billing refund (for non subscribable products). Refunds (for non subscribable products) can only be created if their related billing movement has been invoiced, that is, if their related billing movement invoice_id field is not empty.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
subscriptionIdstringRequiredExecutes the request in the context of the given subscription
movementIdstring (uuid)RequiredExecutes the request in the context of the given billing movement
Request body application/json Required
-
refund_datetimestring (date-time) Required -
period_start_datetimestring (date-time) -
period_end_datetimestring (date-time) -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) -
value_without_taxesnumber (double) -
taxobject-
typestring Required -
percentagenumber (double) Required
-
-
-
external_invoice_idstring -
external_refund_unique_idstring -
transaction_type_idstring Required -
descriptionstring Required
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Invoices
Get all invoices related to an account
/orgs /{orgId} /accounts /{accountId} /invoices Authenticated with a bearer token in the Authorization header Authentication
In the context of a given account, retrieves a list of all related invoices. Results can be filtered by invoice category and invoice type.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
Query parameters
fromDatestring (date-time)From datetime used as filter
toDatestring (date-time)To datetime used as filter
categorystringInvoice category used as filter. Available categories are POSTPAID_SERVICE, PREPAID_SERVICE, and SALES.
typestringInvoice type used as filter. Available types are ORDINARY and RECTIFICATION.
Responses
List of all account invoices
-
invoicesobject[] Required-
idstring (uuid) RequiredInternal surrogate identifier of the invoice
-
invoice_idstring RequiredDeprecated alias of invoice_number. Fiscal invoice number (invoice sequence). Kept for backwards compatibility; use invoice_number instead. Empty for draft (pending) invoices.
-
invoice_numberstringFiscal invoice number (invoice sequence). Same value as the deprecated invoice_id field. Optional: omitted for draft (pending) invoices, which have no invoice number yet.
-
issue_datestring (date-time) RequiredEmission date of invoice in RFC3339 format
-
due_datestring (date-time) RequiredDate of charge in RFC3339 format
-
location_tax_typestring Required -
invoice_amountsobject Required-
tax_basenumber (double) RequiredSum of amounts without taxes of all taxed concepts. Includes concepts with generic and exempted taxes.
-
non_tax_basenumber (double) RequiredSum of amounts without taxes of all non-taxed concepts
-
tax_amountnumber (double) RequiredSum of all tax amounts of all concepts (GENERIC + EXEMPTED)
-
total_amount_in_invoicenumber (double) RequiredSum of all amounts with taxes of all taxed and non-taxed concepts (GENERIC + EXEMPTED + NOT_TAXED)
-
total_amount_out_of_invoicenumber (double) RequiredSum of all amounts with taxes of all concepts out of invoice. Taxes do not apply to these concepts.
-
total_amountnumber (double) RequiredSum of total amounts in and out of invoice, including taxes
-
-
typestring Required -
categorystring Required
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Invoices
[Deprecated] Get all movements related to an invoice
Deprecated /orgs /{orgId} /accounts /{accountId} /invoices /{invoiceId} /movements Authenticated with a bearer token in the Authorization header Authentication
Retrieve a list of all movements related to a specific invoice in an account.
Deprecated: use GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/movements instead. This endpoint will be removed in a future release.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
invoiceIdstringRequiredExecutes the request in the context of the given invoice. Accepts either the fiscal invoice_id (invoice sequence) or the internal surrogate id of the invoice.
Responses
Retrieve a list of all movements related to an invoice
-
account_movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
subscription_movementsobject[] Required-
subscription_idstring Required -
movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Invoices
[Deprecated] Retrieve a public link to an invoice to download the document
Deprecated /orgs /{orgId} /accounts /{accountId} /invoices /{invoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the invoice of a given account. The public link allows to download the invoice document.
Deprecated: use GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/public_link instead. This endpoint will be removed in a future release.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
invoiceIdstringRequiredExecutes the request in the context of the given invoice. Accepts either the fiscal invoice_id (invoice sequence) or the internal surrogate id of the invoice.
Responses
Retrieve an account invoice
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Invoices
Retrieve the next billing date
/orgs /{orgId} /accounts /{accountId} /billing_details Authenticated with a bearer token in the Authorization header Authentication
In the context of a given account, retrieves the next billing date.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
Responses
Account next billing date
-
next_billing_datestring (date-time)Next billing date in RFC3339 format
-
billing_statusstring RequiredBilling status of the account.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Get a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves the information of a single postpaid ordinary invoice.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Get postpaid ordinary invoice details
-
idstring (uuid) RequiredInternal surrogate identifier of the invoice
-
invoice_numberstringFiscal invoice number (invoice sequence). Only present once the invoice is issued.
-
issue_datestring (date-time)Emission date of invoice in RFC3339 format. Only present once the invoice is issued.
-
due_datestring (date-time) RequiredDate of charge in RFC3339 format
-
location_tax_typestring Required -
invoice_amountsobject Required-
tax_basenumber (double) RequiredSum of amounts without taxes of all taxed concepts. Includes concepts with generic and exempted taxes.
-
non_tax_basenumber (double) RequiredSum of amounts without taxes of all non-taxed concepts
-
tax_amountnumber (double) RequiredSum of all tax amounts of all concepts (GENERIC + EXEMPTED)
-
total_amount_in_invoicenumber (double) RequiredSum of all amounts with taxes of all taxed and non-taxed concepts (GENERIC + EXEMPTED + NOT_TAXED)
-
total_amount_out_of_invoicenumber (double) RequiredSum of all amounts with taxes of all concepts out of invoice. Taxes do not apply to these concepts.
-
total_amountnumber (double) RequiredSum of total amounts in and out of invoice, including taxes
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Get all movements related to a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /movements Authenticated with a bearer token in the Authorization header Authentication
Retrieve a list of all movements related to a specific postpaid ordinary invoice in an account. Once the invoice is issued, each movement includes its refundable_amount.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Retrieve a list of all movements related to a postpaid ordinary invoice
-
account_movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded: the amount of the movement minus the amounts refunded by issued rectification invoices. Only present once the invoice is issued.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
subscription_movementsobject[] Required-
subscription_idstring Required -
movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded: the amount of the movement minus the amounts refunded by issued rectification invoices. Only present once the invoice is issued.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Retrieve a public link to a postpaid ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the postpaid ordinary invoice of a given account. The public link allows to download the invoice document.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Retrieve a postpaid ordinary invoice public link
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Get all postpaid rectification invoices of a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices Authenticated with a bearer token in the Authorization header Authentication
Retrieves all postpaid rectification invoices of the given postpaid ordinary invoice of an account.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
List of postpaid rectification invoices
-
refundsobject[] Required-
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_namestring RequiredInvoice name of the refund
-
related_movement_idstring (uuid) RequiredIdentifier of the movement being refunded
-
-
reasonobject Required-
descriptionstring RequiredReason why the ordinary invoice is rectified
-
ticketstring RequiredTicket that justifies the rectification
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Create a postpaid rectification invoice for a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices Authenticated with a bearer token in the Authorization header Authentication
Creates a postpaid rectification invoice for the given postpaid ordinary invoice of an account.
The postpaid rectification invoice is created as a draft and must be issued afterwards through
POST /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}/issue.
The returned id identifies the created postpaid rectification invoice and is the {rectificationInvoiceId}
expected by the rest of the rectification endpoints.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Request body application/json Required
-
refundsobject[] Required-
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
related_movement_idstring (uuid) RequiredIdentifier of the movement being refunded
-
-
reasonobject Required-
descriptionstring RequiredReason why the ordinary invoice is rectified
-
ticketstring RequiredTicket that justifies the rectification
-
Responses
Resource created
-
idstring (uuid)
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Get a postpaid rectification invoice of a postpaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices /{rectificationInvoiceId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves the postpaid rectification invoice of the given postpaid ordinary invoice of an account, detailing the refunds that make it up and the reason why the invoice is rectified.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
rectificationInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given rectification invoice
Responses
The postpaid rectification invoice
-
refundsobject[] Required-
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_namestring RequiredInvoice name of the refund
-
related_movement_idstring (uuid) RequiredIdentifier of the movement being refunded
-
-
reasonobject Required-
descriptionstring RequiredReason why the ordinary invoice is rectified
-
ticketstring RequiredTicket that justifies the rectification
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Delete a draft postpaid rectification invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices /{rectificationInvoiceId} Authenticated with a bearer token in the Authorization header Authentication
Deletes an existing postpaid rectification invoice. Postpaid rectification invoices can only be deleted
while they are still a draft, that is, before they are issued through
POST /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices/{rectificationInvoiceId}/issue.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
rectificationInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given rectification invoice
Responses
Ok with empty body
No body.
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Issue a draft postpaid rectification invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices /{rectificationInvoiceId} /issue Authenticated with a bearer token in the Authorization header Authentication
Issues the given draft postpaid rectification invoice, previously created through
POST /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/postpaid_service/{ordinaryInvoiceId}/rectification_invoices.
Once issued, the postpaid rectification invoice gets its fiscal invoice number and can no longer be modified.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
rectificationInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given rectification invoice
Responses
The issued postpaid rectification invoice
-
refundsobject[] Required-
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
invoice_namestring RequiredInvoice name of the refund
-
related_movement_idstring (uuid) RequiredIdentifier of the movement being refunded
-
-
reasonobject Required-
descriptionstring RequiredReason why the ordinary invoice is rectified
-
ticketstring RequiredTicket that justifies the rectification
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Get all movements related to a postpaid rectification invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices /{rectificationInvoiceId} /movements Authenticated with a bearer token in the Authorization header Authentication
Retrieve a list of all movements related to a specific postpaid rectification invoice in an account.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
rectificationInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given rectification invoice
Responses
Retrieve a list of all movements related to a postpaid rectification invoice
-
account_movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
subscription_movementsobject[] Required-
subscription_idstring Required -
movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Postpaid Invoices
Retrieve a public link to a postpaid rectification invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /postpaid_service /{ordinaryInvoiceId} /rectification_invoices /{rectificationInvoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the postpaid rectification invoice of a given postpaid ordinary invoice of an account. The public link allows to download the invoice document.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
rectificationInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given rectification invoice
Responses
Retrieve a postpaid rectification invoice public link
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Prepaid Invoices
Get a prepaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves the information of a single prepaid ordinary invoice.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Get prepaid ordinary invoice details
-
idstring (uuid) RequiredInternal surrogate identifier of the invoice
-
invoice_numberstring RequiredFiscal invoice number (invoice sequence).
-
issue_datestring (date-time) RequiredEmission date of invoice in RFC3339 format
-
due_datestring (date-time) RequiredDate of charge in RFC3339 format
-
location_tax_typestring Required -
invoice_amountsobject Required-
tax_basenumber (double) RequiredSum of amounts without taxes of all taxed concepts. Includes concepts with generic and exempted taxes.
-
non_tax_basenumber (double) RequiredSum of amounts without taxes of all non-taxed concepts
-
tax_amountnumber (double) RequiredSum of all tax amounts of all concepts (GENERIC + EXEMPTED)
-
total_amount_in_invoicenumber (double) RequiredSum of all amounts with taxes of all taxed and non-taxed concepts (GENERIC + EXEMPTED + NOT_TAXED)
-
total_amount_out_of_invoicenumber (double) RequiredSum of all amounts with taxes of all concepts out of invoice. Taxes do not apply to these concepts.
-
total_amountnumber (double) RequiredSum of total amounts in and out of invoice, including taxes
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Prepaid Invoices
Get all movements related to a prepaid ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} /movements Authenticated with a bearer token in the Authorization header Authentication
Retrieve a list of all movements related to a specific prepaid ordinary invoice in an account.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Retrieve a list of all movements related to a prepaid ordinary invoice
-
account_movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
subscription_movementsobject[] Required-
subscription_idstring Required -
movementsobject[] Required-
idstring (uuid) Required -
account_idstring Required -
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
period_start_datetimestring (date-time) Required -
period_end_datetimestring (date-time) Required -
transaction_type_idstring Required -
descriptionstring RequiredMovement name. For device financing movements it includes the installment position for recurring installments and the device name, e.g. "Cuota mensual (1/12) - iPhone 15".
-
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Prepaid Invoices
Retrieve a public link to a prepaid ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /prepaid_service /{ordinaryInvoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the prepaid ordinary invoice of a given account. The public link allows to download the invoice document.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Retrieve a prepaid ordinary invoice public link
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
Get all sales invoices related to an account
/orgs /{orgId} /accounts /{accountId} /invoices /sales Authenticated with a bearer token in the Authorization header Authentication
Retrieves the list of all sales invoices of an account, including rectification invoices. If the device_id query parameter is provided, only the invoices of that device are returned (both the original sale invoice and its rectification invoice when present). Results can also be filtered by invoice type.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
Query parameters
device_idstringFilters the result by the given device id
typestringInvoice type used as filter. Available types are ORDINARY and RECTIFICATION.
Responses
List of all account sales invoices
-
invoicesobject[] Required-
idstring (uuid) RequiredInternal surrogate identifier of the invoice
-
invoice_idstring RequiredDeprecated alias of invoice_number. Fiscal invoice number (invoice sequence). Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredFiscal invoice number (invoice sequence). Same value as the deprecated invoice_id field.
-
issue_datestring (date-time) RequiredEmission date of invoice in RFC3339 format
-
due_datestring (date-time) RequiredDate of charge in RFC3339 format
-
location_tax_typestring Required -
invoice_amountsobject Required-
tax_basenumber (double) RequiredSum of amounts without taxes of all taxed concepts. Includes concepts with generic and exempted taxes.
-
non_tax_basenumber (double) RequiredSum of amounts without taxes of all non-taxed concepts
-
tax_amountnumber (double) RequiredSum of all tax amounts of all concepts (GENERIC + EXEMPTED)
-
total_amount_in_invoicenumber (double) RequiredSum of all amounts with taxes of all taxed and non-taxed concepts (GENERIC + EXEMPTED + NOT_TAXED)
-
total_amount_out_of_invoicenumber (double) RequiredSum of all amounts with taxes of all concepts out of invoice. Taxes do not apply to these concepts.
-
total_amountnumber (double) RequiredSum of total amounts in and out of invoice, including taxes
-
-
typestring Required -
device_idstring RequiredIdentifier of the device the invoice belongs to
-
invoice_sequence_referencestringReference to the original invoice sequence; only present on rectification invoices
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
[Deprecated] Get a sales invoice
Deprecated /orgs /{orgId} /accounts /{accountId} /invoices /sales /{invoiceId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves the information of a single sales invoice identified by the invoice id.
Deprecated: use GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/sales/{ordinaryInvoiceId} instead. This endpoint will be removed in a future release.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
invoiceIdstringRequiredExecutes the request in the context of the given invoice. Accepts either the fiscal invoice_id (invoice sequence) or the internal surrogate id of the invoice.
Responses
Get sales invoice details
-
idstring (uuid) RequiredInternal surrogate identifier of the invoice
-
invoice_idstring RequiredDeprecated alias of invoice_number. Fiscal invoice number (invoice sequence). Kept for backwards compatibility; use invoice_number instead.
-
invoice_numberstring RequiredFiscal invoice number (invoice sequence). Same value as the deprecated invoice_id field.
-
issue_datestring (date-time) RequiredEmission date of invoice in RFC3339 format
-
due_datestring (date-time) RequiredDate of charge in RFC3339 format
-
location_tax_typestring Required -
invoice_amountsobject Required-
tax_basenumber (double) RequiredSum of amounts without taxes of all taxed concepts. Includes concepts with generic and exempted taxes.
-
non_tax_basenumber (double) RequiredSum of amounts without taxes of all non-taxed concepts
-
tax_amountnumber (double) RequiredSum of all tax amounts of all concepts (GENERIC + EXEMPTED)
-
total_amount_in_invoicenumber (double) RequiredSum of all amounts with taxes of all taxed and non-taxed concepts (GENERIC + EXEMPTED + NOT_TAXED)
-
total_amount_out_of_invoicenumber (double) RequiredSum of all amounts with taxes of all concepts out of invoice. Taxes do not apply to these concepts.
-
total_amountnumber (double) RequiredSum of total amounts in and out of invoice, including taxes
-
-
typestring Required -
device_idstring RequiredIdentifier of the device the invoice belongs to
-
invoice_sequence_referencestringReference to the original invoice sequence; only present on rectification invoices
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
Get a sales ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} Authenticated with a bearer token in the Authorization header Authentication
Retrieves the information of a single sales ordinary invoice.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Get sales ordinary invoice details
-
idstring (uuid) RequiredInternal surrogate identifier of the invoice
-
invoice_numberstring RequiredFiscal invoice number (invoice sequence).
-
issue_datestring (date-time) RequiredEmission date of invoice in RFC3339 format
-
due_datestring (date-time) RequiredDate of charge in RFC3339 format
-
location_tax_typestring Required -
invoice_amountsobject Required-
tax_basenumber (double) RequiredSum of amounts without taxes of all taxed concepts. Includes concepts with generic and exempted taxes.
-
non_tax_basenumber (double) RequiredSum of amounts without taxes of all non-taxed concepts
-
tax_amountnumber (double) RequiredSum of all tax amounts of all concepts (GENERIC + EXEMPTED)
-
total_amount_in_invoicenumber (double) RequiredSum of all amounts with taxes of all taxed and non-taxed concepts (GENERIC + EXEMPTED + NOT_TAXED)
-
total_amount_out_of_invoicenumber (double) RequiredSum of all amounts with taxes of all concepts out of invoice. Taxes do not apply to these concepts.
-
total_amountnumber (double) RequiredSum of total amounts in and out of invoice, including taxes
-
-
refundable_amountobjectMaximum amount with taxes that can still be refunded. Only present once the document is no longer editable: for invoices, once issued; for movements, once billed.
-
value_with_taxesnumber (double) RequiredAmount with taxes. Must be greater than 0.
-
-
device_idstring RequiredIdentifier of the device the invoice belongs to
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
Get all movements related to a sales ordinary invoice
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} /movements Authenticated with a bearer token in the Authorization header Authentication
Retrieve a list of all movements related to a specific sales ordinary invoice in an account.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Retrieve a list of all movements related to a sales ordinary invoice
-
movementsobject[] Required-
idstring (uuid) RequiredInternal identifier of the movement
-
account_idstring Required -
device_idstring RequiredIdentifier of the sold device
-
serial_numberstring RequiredSerial number of the sold device. Omitted when unknown
-
amountobject RequiredNumeric value with a maximum precision of 8 decimal places.
-
value_with_taxesnumber (double) Required -
value_without_taxesnumber (double) Required -
taxobject Required-
typestring Required -
percentagenumber (double) Required
-
-
-
movement_datetimestring (date-time) Required -
transaction_type_idstring Required -
out_of_invoiceboolean RequiredWhether the movement is settled outside of the invoice total
-
descriptionstring RequiredDescription of the movement as printed in the invoice document
-
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
[Deprecated] Retrieve a public link to a sales invoice to download the document
Deprecated /orgs /{orgId} /accounts /{accountId} /invoices /sales /{invoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the sales invoice of a given account. The public link allows to download the invoice document.
Deprecated: use GET /orgs/{orgId}/accounts/{accountId}/ordinary_invoices/sales/{ordinaryInvoiceId}/public_link instead. This endpoint will be removed in a future release.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
invoiceIdstringRequiredExecutes the request in the context of the given invoice. Accepts either the fiscal invoice_id (invoice sequence) or the internal surrogate id of the invoice.
Responses
Retrieve a sales invoice public link
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
Retrieve a public link to a sales ordinary invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the sales ordinary invoice of a given account. The public link allows to download the invoice document.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
Responses
Retrieve a sales ordinary invoice public link
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
Sales Invoices
Retrieve a public link to a sales rectification invoice to download the document
/orgs /{orgId} /accounts /{accountId} /ordinary_invoices /sales /{ordinaryInvoiceId} /rectification_invoices /{rectificationInvoiceId} /public_link Authenticated with a bearer token in the Authorization header Authentication
Get a public link to the sales rectification invoice of a given sales ordinary invoice of an account. The public link allows to download the invoice document.
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
accountIdstringRequiredExecutes the request in the context of the given account
ordinaryInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given ordinary invoice
rectificationInvoiceIdstring (uuid)RequiredExecutes the request in the context of the given rectification invoice
Responses
Retrieve a sales rectification invoice public link
-
public_linkstring Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
A third party connection is not responding
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
LocationTax
Get the location tax of a given state id
/orgs /{orgId} /location-taxes /{stateId} Authenticated with a bearer token in the Authorization header Authentication
Get the location tax of a given state id. The location tax is the percentage and tax type that applies to a given state. State ids are defined by INE
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
stateIdintegerRequiredExecutes the request in the context of the given location (state id)
Responses
Location tax information
-
typestring Required -
percentagenumber (double) Required
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The user is not authorized
-
errorstring -
messagestring -
trace_idstring
The user does not have permission to access that resource
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring
The request timed out
-
errorstring -
messagestring -
trace_idstring
BillingInfo
Gets billing info related to an organization
/orgs /{orgId} Authenticated with a bearer token in the Authorization header Authentication
This endpoint retrieves the billing info associated to a tenant by its tenant name
Path parameters
orgIdstringRequiredExecutes the request in the context of the given organization
Responses
Billing info
-
languagestring RequiredDefault language for the tenant. This follows IETF language tag, which combine sub-tags from other standards such as ISO 639, ISO 15924, ISO 3166-1 and UN M.49
-
invoice_cycle_start_dayinteger RequiredDay of the month in which the invoice cycle starts
The request could not be processed because it was malformed
-
errorstring -
messagestring -
trace_idstring
The specified resource was not found
-
errorstring -
messagestring -
trace_idstring
The request failed to be processed by the server
-
errorstring -
messagestring -
trace_idstring