Skip to main content

Get job

GET 

/subscriptions/jobs/:job_uuid

Get job

Request

Path Parameters

    job_uuid UUIDrequired

    The unique identifier of the job.

Responses

Success. The job is returned.

Schema
    data Job
    id UUID (string)

    The unique identifier.

    type SubscriptionJobType (string)required

    Possible values: [subscription_job]

    attributes JobCreateAttributesrequired
    external_ref ExternalRef (string)

    Possible values: <= 2048 characters

    A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.

    job_type JobType (string)required

    Possible values: [billing-run, tax-run, payment-run, import]

    The type of job. One of the following:

    • billing_run - a billing run job.
    • payment_run - a payment run job.
    • tax_run - a tax run job.
    taxes InvoiceTaxItems[]

    Possible values: >= 1

  • Array [
  • invoice_id UUID (string)required

    The unique identifier.

    tax_items TaxItem[]required
  • Array [
  • type stringrequired

    Possible values: [tax_item]

    This represents the type of resource object being returned. Always tax_item.

    name string

    Possible values: <= 1024 characters

    The name that appears on your customer's invoice and usually describes the specific type of tax, for example, Sales, VAT or GST.

    code string

    Possible values: <= 1024 characters

    The unique identifier assigned to goods and services for taxation purposes.

    rate doublerequired

    The tax rate is the percentage of the subscription amount that is required to be paid as tax.

    jurisdiction string

    Possible values: <= 1024 characters

    The geographic area or political entity that has authority to levy and collect taxes.

  • ]
  • ]
  • status stringrequired

    Possible values: [pending, started, success, failed]

    The status of job.

    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

    relationships Relationships

    Relationships are established between different subscription entities. For example, a product and a plan are related to an offering, as both are attached to it.

    anyOf
    title
    meta JobMetarequired
    owner stringrequired

    The owner of a resource, either store or organization.

    timestamps Timestampsrequired
    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

    started_at string

    The date and time a job is started.

    finished_at string

    The date and time a job finished.

    report object

    You can track your Subscriptions billing, tax, and payment operations using reports.

    oneOf
    invoices_ready_for_payment integerrequired

    The total number of invoices created that are ready for payment.

    invoices_tax_required integerrequired

    The total number of invoices created that need taxes to be applied before payment can be made.

    invoice_failures integerrequired

    The total number of invoices that were scheduled but creation failed.

    total_ready_for_payment Pricerequired

    The total amount ready for payment invoiced in the billing run, segmented by currency.

    property name* object

    The base price.

    amount int64required

    The value as a whole number of the currency's smallest subdivision.

    includes_tax boolean

    Indicates whether the amount includes any taxes.

    total_tax_required Pricerequired

    The total amount (excluding tax) invoiced in the billing run but still requiring taxes, segmented by currency.

    property name* object

    The base price.

    amount int64required

    The value as a whole number of the currency's smallest subdivision.

    includes_tax boolean

    Indicates whether the amount includes any taxes.

Loading...