Skip to content

agreement

Get an agreement

GET/v1/agreements/{agreementId}

Reads one agreement by id from the caller's tenant, with its client's name, its start, end, renewal, and auto-renewal terms, and its billing and invoicing details. An id belonging to another tenant, to a hidden client, or to an agreement the PSA no longer backs answers not_found alike; existence is never leaked.

Parameters

NameInRequiredTypeDescription
agreementIdpathYesstring—

Request body

No request body.

Responses and errors

  • 200

    Get an agreement

    • id (required): string
    • clientId (required): string
    • clientName (required): string
    • name (required): string
    • type (required): object
    • status (required): object
    • billingCycle (required): object
    • startDate (required): object
    • endDate (required): object
    • renewalDate (required): object
    • autoRenewal (required): object
    • currency (required): object
    • amountMinor (required): object
    • hourlyRateMinor (required): object
    • overageRateMinor (required): object
    • includedHours (required): object
    • hoursUsed (required): object
    • hoursRemaining (required): object
    • cancelledFlag (required): object
    • expiredFlag (required): object
    • notes (required): object
    • billingTermsText (required): object
    • source (required): object
    • connectwiseAgreementId (required): object
    • haloContractId (required): object
    • lastSyncedAt (required): object
    • createdAt (required): string
    • updatedAt (required): string
    • billAmountMinor (required): object
    • totalAdditionsAmountMinor (required): object
    • noEndingDateFlag (required): object
    • billingMethod (required): object
    • sla (required): object
    • location (required): object
    • department (required): object
    • coverageType (required): object
    • customerPo (required): object
    • workOrder (required): object
    • invoiceDescription (required): object
    • invoiceTemplate (required): object
    • internalNotes (required): object
  • 400

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • ValidationFailedError:
    • allOf: ErrorEnvelope
  • 401

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • UnauthorizedError:
    • allOf: ErrorEnvelope
  • 403

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • ForbiddenError:
    • allOf: ErrorEnvelope
  • 404

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • NotFoundError:
    • allOf: ErrorEnvelope
  • 429

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • RateLimitedError:
    • allOf: ErrorEnvelope
  • 503

    Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.

    • UnavailableError:
    • allOf: ErrorEnvelope

Example

curl --request GET \
  --url 'https://api.scopable.io/v1/agreements/{agreementId}' \
  --header 'Authorization: Bearer $SCOPABLE_API_KEY'

Replace $SCOPABLE_API_KEY with a key created in Settings, API.

View the OpenAPI 3.1 source

Need help with the API? …