Transactions

List transactions

OAuth: This endpoint requires one of the following scopes: transaction:manage, transaction:write or transaction:read.

List Transactions

🔐 This endpoint requires one of the following scopes:

  • transaction:manage
  • transaction:read
  • transaction:write
GEThttps://api.textmaster.com/v1/clients/transactions
Authorization
Query parameters
Response

Lists transactions

Body
transactionsarray of Transaction (object)
Request
const response = await fetch('https://api.textmaster.com/v1/clients/transactions', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "transactions": [
    {
      "invoice_num": "text",
      "money_value_in_currency": 0,
      "invoice": {
        "bundle_base_price_in_author_currency": 0,
        "bundle_price_in_author_currency": 0,
        "currency": "text",
        "ordered_credits": 0,
        "extra_credits": 0,
        "promo_credits": 0,
        "total_credits": 0,
        "real_credit_price_in_ref_cur": 0,
        "vat_rate": 0,
        "address": "text",
        "legal_mention": "text",
        "payment_method": "text",
        "locale": "text"
      },
      "bundle": [
        {}
      ],
      "promo_code": {},
      "billing_address": {
        "city": "text",
        "address": "text",
        "address2": "text",
        "company": "text",
        "country": "text",
        "zip_code": "text",
        "state_region": "text",
        "last_name": "text",
        "first_name": "text"
      },
      "type": "text",
      "issued_at": {
        "full": "text"
      }
    }
  ]
}

Parameters

NameTypeDescription

types

array of strings

The transaction types to filter against. See list of supported types below.

Transaction types

You will find below the list of supported transaction types to filter against:

Transaction::CashWithdrawal::BundleCancellation
Transaction::CashWithdrawal::BundleRefund
Transaction::CreditExchange::GivenByManager
Transaction::CreditExchange::GivenToSubordinate
Transaction::CreditPayment::AdminLoan
Transaction::CreditPayment::AdminRefund
Transaction::CreditPayment::CompletingAJob
Transaction::CreditPayment::ExpiringWallet
Transaction::CreditPayment::FinancialCompensation
Transaction::CreditPurchase::AdminLevy
Transaction::CreditPurchase::BuyingACreditBundle
Transaction::CreditPurchase::EarningFromReferredClient
Transaction::CreditPurchase::ExpiringCredits
Transaction::CreditPurchase::FinancialCompensation
Transaction::CreditPurchase::RedeemingAPromoCode
Transaction::CreditPurchase::Rollback
Transaction::NonCreditPurchase::InHouseServiceFee
Transaction::NonCreditPurchase::SubscriptionPrepayment
Transaction::NonCreditSpending::SubscriptionInstallment
Transaction::ProjectSpending::AdminProjectLevy
Transaction::ProjectSpending::AdminProjectRefund
Transaction::ProjectSpending::CancelingAProject
Transaction::ProjectSpending::LaunchingAProject
Transaction::ProjectSpending::RepoDocWithCanceledProject

Code samples

curl -G "https://api.textmaster.com/v1/clients/transactions" \
  --data-urlencode "types[]=Transaction%3A%3AProjectSpending%3A%3ACancelingAProject" \
  --data-urlencode "types[]=Transaction%3A%3AProjectSpending%3A%3ALaunchingAProject" \
  -H "Authorization: Bearer 0c950ba36bc15a8a10a6d179ca3db112e0cd5e29dca1aa03f4d2b53f01c06db8"

List invoices

OAuth: This endpoint requires one of the following scopes: transaction:manage, transaction:write or transaction:read.

Parameters

NameTypeDescription

types

array of strings

The invoice transaction types to filter against. See list of supported types below.

Transaction types

You will find below the list of supported transaction types that include an invoice, to filter against:

Transaction::CashWithdrawal::BundleCancellation
Transaction::CashWithdrawal::BundleRefund
Transaction::CreditPurchase::BuyingACreditBundle
Transaction::NonCreditPurchase::InHouseServiceFee
Transaction::NonCreditPurchase::SubscriptionPrepayment

List Invoices

GEThttps://api.textmaster.com/v1/clients/invoices
Authorization
Response

Lists invoices

Body
invoicesarray of Invoice (object)
Request
const response = await fetch('https://api.textmaster.com/v1/clients/invoices', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "invoices": [
    {
      "invoice_num": "text",
      "money_amount": 0,
      "type": "text",
      "url": "text",
      "issued_at": {
        "full": "text"
      }
    }
  ]
}

Code samples

curl -G "https://api.textmaster.com/v1/clients/invoices" \
  --data-urlencode "types[]=Transaction%3A%3ACashWithdrawal%3A%3ABundleCancellation" \
  --data-urlencode "types[]=Transaction%3A%3ACashWithdrawal%3A%3ABundleRefund" \
  --data-urlencode "types[]=Transaction%3A%3ACreditPurchase%3A%3ABuyingACreditBundle" \
  --data-urlencode "types[]=Transaction%3A%3ANonCreditPurchase%3A%3ABuyingAInHouseServiceFee" \
  --data-urlencode "types[]=Transaction%3A%3ANonCreditPurchase%3A%3ABuyingASubscriptionPrepayment" \
  -H "Authorization: Bearer d8484b69ffe1f749ce720cb370bc65d9fa3e8c3b6e0d19144db676678b0988db"

List receipts

OAuth: This endpoint requires one of the following scopes: transaction:manage, transaction:write or transaction:read.

List Receipts

List available receipts.

GEThttps://api.textmaster.com/v1/clients/receipts
Authorization
Response

Lists receipts

Body
receiptsarray of Receipt (object)
Request
const response = await fetch('https://api.textmaster.com/v1/clients/receipts', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "receipts": [
    {
      "invoice_num": "text",
      "money_amount": 0,
      "type": "text",
      "issued_at": {
        "full": "text"
      }
    }
  ]
}

Code samples

curl -G "https://api.textmaster.com/v1/clients/receipts" \
  -H "Authorization: Bearer 1c1a2c26e3f9a890bd232a987f6b538ded6f48f6a02796e54a7ce405eeeb9b19"

Last updated