> This page is for version Preview (default).
> For other versions, use one of these documentation indexes:
> - Preview (default): https://docs.preview.paid.ai/preview/llms.txt
> - Current: https://docs.preview.paid.ai/current/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.preview.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.preview.paid.ai/_mcp/server.

# Resume an order

POST https://api.paid.ai/v1/orders/{order}/resume

**Draft scaffold — not implemented or available in the API.**

Restarts invoicing a paused order. Usage recorded while it was paused is invoiced. `{order}` takes the order's `ord_` ID or your `externalId`.

Reference: https://docs.preview.paid.ai/api-reference/billing/orders/resume

## Authentication

- `Authorization` header (bearer token, required) — API Key authentication using Bearer token

## Request

### Path parameters

- `order` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.

### Headers

- `Paid-Beta` (enum, required) — This endpoint is in the `orders=v1` beta. Send this header to use it.
  - Allowed values: `orders=v1`

## Response

### 200

200

- `id` (string, required) — The Order ID.
- `object` (enum, required) — The type of object. Always `order`.
  - Allowed values: `order`
- `createdAt` (datetime, required) — When the object was created.
- `activatedAt` (datetime, required, nullable) — When activation completed.
- `billingContacts` (list of string, required) — Billing contact IDs.
- `billingCycle` (OrderBillingCycle, required) — OrderBillingCycle.
- `billTo` (string, required, nullable) — The customer who pays for the order. Defaults to the customer's `parent` when the order is created, then the customer itself.
- `commits` (list of string, required) — Order commit IDs.
- `currency` (string, required) — Lowercase ISO 4217 currency code, e.g. `usd`.
- `customer` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.
- `endsAt` (datetime, required, nullable) — Exclusive end; null means no end.
- `externalId` (string, required, nullable) — Your stable identifier, 1 to 255 characters.
- `invoiceSettings` (OrderInvoiceSettings, required) — OrderInvoiceSettings.
- `lines` (list of OrderLine, required) — Order lines, including ended lines.
- `livemode` (boolean, required) — `true` for an object on a live account, `false` on a test account.
- `metadata` (map from string to string, required) — String key-value pairs of your own, up to 500 characters per value. Always updatable.
- `name` (string, required) — The resource name.
- `negotiatedPricing` (list of NegotiatedPricingEntry, required) — Every negotiated pricing entry on the order, including ended and scheduled ones.
- `plan` (OrderPlan, required, nullable) — The plan used to build the order.
- `purchaseOrderNumber` (string, required, nullable) — Purchase-order number printed on invoices.
- `startsAt` (datetime, required) — When billing starts.
- `status` (enum, required) — Order lifecycle state.
  - Allowed values: `draft`, `activating`, `active`, `paused`, `ended`
- `updatedAt` (datetime, required) — When the object was last changed.
- `version` (integer, required) — Amendment concurrency version.
- `paymentTerms` (enum, optional, default: net30) — Invoice payment terms.
  - Allowed values: `dueOnReceipt`, `net15`, `net30`, `net45`, `net60`, `net90`

## Errors

### 400 Bad Request Error

400

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 401 Unauthorized Error

401

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 403 Forbidden Error

403

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 404 Not Found Error

404

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 409 Conflict Error

409

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 429 Too Many Requests Error

429

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 500 Internal Server Error

500

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

### 501 Not Implemented Error

501

- `error` (ApiErrorObject, required) — What went wrong, in the same shape for every /v1 error.

## Types

### OrderBillingCycle

OrderBillingCycle.

- `interval` (enum, required) — Calendar-month billing cycle.
  - Allowed values: `month`
- `anchorDay` (integer, optional) — Anchor day; defaults to the start day.
- `intervalCount` (integer, optional, default: 1) — Months per invoice cycle.

### OrderInvoiceSettings

OrderInvoiceSettings.

- `autoFinalize` (boolean, optional) — Finalize invoices automatically.
- `autoSend` (boolean, optional) — Email invoices automatically.
- `sendPaymentReminders` (boolean, optional) — Send payment reminders.

### OrderLine

A line on an order.

- `type`: `price` (price)
  - `charged` (OrderLinePriceCharged, required, nullable) — One-time charge posting.
  - `displayName` (string, required, nullable) — What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.
  - `endedByAmendment` (string, required, nullable) — A Paid ID, external ID or resource key, as supported by the referenced resource.
  - `endsAt` (datetime, required, nullable) — Exclusive line end.
  - `id` (string, required) — The order line's ID.
  - `invoice` (enum, required) — One-time invoice timing.
    - Allowed values: `now`, `nextInvoice`
  - `name` (string, required) — The resource name.
  - `object` (enum, required) — The type of object. Always `orderLine`.
    - Allowed values: `orderLine`
  - `plan` (string, required, nullable) — A Paid ID, external ID or resource key, as supported by the referenced resource.
  - `price` (OrderPriceLine, required) — OrderPriceLine.
  - `startsAt` (datetime, required) — Line start.
- `type`: `rateCard` (rateCard)
  - `charged` (OrderLineRateCardCharged, required, nullable) — One-time charge posting.
  - `displayName` (string, required, nullable) — What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.
  - `endedByAmendment` (string, required, nullable) — A Paid ID, external ID or resource key, as supported by the referenced resource.
  - `endsAt` (datetime, required, nullable) — Exclusive line end.
  - `id` (string, required) — The order line's ID.
  - `invoice` (enum, required) — One-time invoice timing.
    - Allowed values: `now`, `nextInvoice`
  - `name` (string, required) — The resource name.
  - `object` (enum, required) — The type of object. Always `orderLine`.
    - Allowed values: `orderLine`
  - `plan` (string, required, nullable) — A Paid ID, external ID or resource key, as supported by the referenced resource.
  - `rateCard` (OrderLineRateCardRateCard, required) — The card.
  - `startsAt` (datetime, required) — Line start.
- `type`: `legacy` (legacy)
  - `charged` (OrderLineLegacyCharged, required, nullable) — One-time charge posting.
  - `displayName` (string, required, nullable) — What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.
  - `endedByAmendment` (string, required, nullable) — A Paid ID, external ID or resource key, as supported by the referenced resource.
  - `endsAt` (datetime, required, nullable) — Exclusive line end.
  - `id` (string, required) — The order line's ID.
  - `invoice` (enum, required) — One-time invoice timing.
    - Allowed values: `now`, `nextInvoice`
  - `legacy` (OrderLineLegacyLegacy, required) — Preserved legacy line.
  - `name` (string, required) — The resource name.
  - `object` (enum, required) — The type of object. Always `orderLine`.
    - Allowed values: `orderLine`
  - `plan` (string, required, nullable) — A Paid ID, external ID or resource key, as supported by the referenced resource.
  - `startsAt` (datetime, required) — Line start.

### NegotiatedPricingEntry

One negotiated term on the order, as held on the order. Entries are never edited: an amendment ends an entry and adds another.

- `type`: `contractedPrice` (contractedPrice)
  - `addedByAmendment` (string, required, nullable) — The amendment that added this entry, or null when it came with the order.
  - `contractedPrice` (NegotiatedPricingContractedPrice, required) — A contracted price: `pricing` (per unit, graduated or volume) replaces the target's list pricing, before the rate card's modifiers apply. A rate is a decimal string in minor units of the order's currency, or in the target's credit currency when the target is priced in credits: $0.005 is `"0.5"`.
  - `displayName` (string, required, nullable) — Text your customers see for this entry on invoices, credit notes, checkout and the customer portal, or null to use the target's own label. Up to 250 characters.
  - `endedByAmendment` (string, required, nullable) — The amendment that set this entry's `endsAt`, or null when it came with the entry.
  - `endsAt` (datetime, required, nullable) — When the entry stops, exclusive, or null to end with the order. Defaults to null.
  - `key` (string, required) — Your key for this term, unique on the order. Every entry with the same key is the same term over time: to renegotiate, end the entry and add one with the same key from the same instant. Only one entry per key is in effect at a time.
  - `reportAs` (enum, required) — How the invoice shows this entry. `discount` (the default) shows its effect as its own line against the list amount, so a contracted price below list reads as a discount. `price` makes the result the line's price, with no discount line. It changes only how the invoice presents the entry, never the amounts. More values may be added.
    - Allowed values: `discount`, `price`
  - `source` (NegotiatedPricingSource, required) — Where the entry came from. Only `{ type: "manual" }` exists now: the entry was written on this order. Defaults to manual. More types may be added.
  - `startsAt` (datetime, required) — When the entry takes effect, inclusive. On `orders.create` it defaults to the order's `startsAt`; an amendment must send it.
  - `target` (NegotiatedPricingTarget, required) — The charges a negotiated pricing entry changes. Within one kind of entry, `rate`, `price` and `overage` are the most specific, then `rateCard`, then `product`. More types may be added.
- `type`: `discount` (discount)
  - `addedByAmendment` (string, required, nullable) — The amendment that added this entry, or null when it came with the order.
  - `discount` (NegotiatedPricingDiscount, required) — A percentage off, banded or not, or an amount off.
  - `displayName` (string, required, nullable) — Text your customers see for this entry on invoices, credit notes, checkout and the customer portal, or null to use the target's own label. Up to 250 characters.
  - `endedByAmendment` (string, required, nullable) — The amendment that set this entry's `endsAt`, or null when it came with the entry.
  - `endsAt` (datetime, required, nullable) — When the entry stops, exclusive, or null to end with the order. Defaults to null.
  - `key` (string, required) — Your key for this term, unique on the order. Every entry with the same key is the same term over time: to renegotiate, end the entry and add one with the same key from the same instant. Only one entry per key is in effect at a time.
  - `reportAs` (enum, required) — How the invoice shows this entry. `discount` (the default) shows its effect as its own line against the list amount, so a contracted price below list reads as a discount. `price` makes the result the line's price, with no discount line. It changes only how the invoice presents the entry, never the amounts. More values may be added.
    - Allowed values: `discount`, `price`
  - `source` (NegotiatedPricingSource, required) — Where the entry came from. Only `{ type: "manual" }` exists now: the entry was written on this order. Defaults to manual. More types may be added.
  - `startsAt` (datetime, required) — When the entry takes effect, inclusive. On `orders.create` it defaults to the order's `startsAt`; an amendment must send it.
  - `target` (NegotiatedPricingTarget, required) — The charges a negotiated pricing entry changes. Within one kind of entry, `rate`, `price` and `overage` are the most specific, then `rateCard`, then `product`. More types may be added.
- `type`: `surcharge` (surcharge)
  - `addedByAmendment` (string, required, nullable) — The amendment that added this entry, or null when it came with the order.
  - `displayName` (string, required, nullable) — Text your customers see for this entry on invoices, credit notes, checkout and the customer portal, or null to use the target's own label. Up to 250 characters.
  - `endedByAmendment` (string, required, nullable) — The amendment that set this entry's `endsAt`, or null when it came with the entry.
  - `endsAt` (datetime, required, nullable) — When the entry stops, exclusive, or null to end with the order. Defaults to null.
  - `key` (string, required) — Your key for this term, unique on the order. Every entry with the same key is the same term over time: to renegotiate, end the entry and add one with the same key from the same instant. Only one entry per key is in effect at a time.
  - `reportAs` (enum, required) — How the invoice shows this entry. `discount` (the default) shows its effect as its own line against the list amount, so a contracted price below list reads as a discount. `price` makes the result the line's price, with no discount line. It changes only how the invoice presents the entry, never the amounts. More values may be added.
    - Allowed values: `discount`, `price`
  - `source` (NegotiatedPricingSource, required) — Where the entry came from. Only `{ type: "manual" }` exists now: the entry was written on this order. Defaults to manual. More types may be added.
  - `startsAt` (datetime, required) — When the entry takes effect, inclusive. On `orders.create` it defaults to the order's `startsAt`; an amendment must send it.
  - `surcharge` (NegotiatedPricingSurcharge, required) — A surcharge: a multiplier above 1 on the charge.
  - `target` (NegotiatedPricingTarget, required) — The charges a negotiated pricing entry changes. Within one kind of entry, `rate`, `price` and `overage` are the most specific, then `rateCard`, then `product`. More types may be added.

### OrderPlan

The plan used to build the order.

- `plan` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.
- `version` (integer, required, nullable) — Plan version; null on legacy orders.

### ApiErrorObject

What went wrong, in the same shape for every /v1 error.

- `code` (string, required) — A stable, machine-readable code for this error. New codes may be added at any time. See [Errors](https://docs.paid.ai/preview/developers/api/errors) for what each one means and how to fix it. - `unauthorized`: The API key is missing, malformed, revoked or expired. - `session_revoked`: The session behind this token has been signed out. - `forbidden`: The credentials are valid but cannot access this account. - `insufficient_scope`: The API key's scopes do not cover this endpoint. - `user_required`: Only a person signed in to Paid can do this, not an API key: it sends email for the account or acts on its behalf. - `customer_key_forbidden`: A customer-scoped API key called an endpoint it cannot use. - `organization_required`: The request did not say which account it is for. - `auth_context_error`: Paid could not load the account for these credentials. - `invalid_version`: The API version is malformed or not a released version. - `rollback_window_expired`: The account tried to move its pinned version back after the rollback window closed. - `unknown_beta`: `Paid-Beta` names a beta that does not exist, or is malformed. - `beta_not_enabled`: The account is not enrolled in this private beta. - `beta_header_required`: A beta endpoint or field was used without opting in. - `invalid_idempotency_key`: `Idempotency-Key` is empty, longer than 255 characters, or not printable ASCII. - `idempotency_key_reused`: The `Idempotency-Key` was already used with a different request. - `idempotency_request_in_progress`: A request with this `Idempotency-Key` is still running. - `validation_error`: The request body or parameters failed validation. - `invalid_json`: The request body is not valid JSON. - `payload_too_large`: The request body exceeds 10 MB. - `resource_missing`: No resource or path matches the request. - `type_mismatch`: A polymorphic field's `type` doesn't match the sub-object sent with it, or more than one sub-object was sent. `param` names the field. - `reference_not_found`: A reference in the body or query string doesn't name a resource on the account. `param` names the field, e.g. `customer` or `lines[0].price`. - `resource_archived`: A resource the request names is archived, so it can't be used for this. `param` names the field; it's empty when the archived resource is the one in the path. - `resource_not_active`: A resource the request names isn't active: it's still a draft, has ended or was deactivated. `param` names the field. - `status_conflict`: The action can't run on the object in the path from its current `status`, e.g. activating an active order or releasing a captured hold. `message` names the status and the statuses the action needs. - `resource_in_use`: The resource can't be archived or changed this way while other resources still use it. `param` names the field when there is one. - `resource_exists`: A resource with this identifier (an `externalId`, `key` or alias) already exists on the account, ignoring letter case. `param` names the field. - `customer_mismatch`: A resource the request names belongs to a different customer than the one the request is for. `param` names the field. - `internal_error`: Something went wrong on Paid's side. - `currency_not_supported`: `currency` is not enabled on the account. - `currency_locked`: The customer has an order, so its `currency` cannot change. - `customer_has_active_orders`: The customer cannot be archived while it has an activating, active or paused order. - `parent_livemode_mismatch`: `parent` names a customer in the other mode: live for a test key, or test for a live key. - `parent_has_parent`: Parents are one level deep: the named parent has a parent of its own, or the customer being given a parent has children. - `parent_cycle`: `parent` names the customer itself, or, for a customer unit, the unit itself or a unit under it. - `has_active_children`: The customer cannot be archived while it is the `parent` of a customer that is not archived, or the customer unit while it has units under it that are not archived. - `tax_provider_not_connected`: Tax cannot be enabled while no tax provider is connected. - `mixed_tax_codes`: A prepaid commit taxed at purchase is scoped to products with different tax codes, so its invoice has no single code. - `tax_provider_unavailable`: The tax provider could not be reached, so the tax code could not be checked against its catalog. - `immutable_field`: An update tried to change a field that can't change after creation, such as a rate, a key or a reference. - `currency_mismatch`: An amount or reference isn't in the currency the request needs, such as an order's currency. - `limit_exceeded`: The request has more items than the resource allows, such as rates, adjustments, filters or outcomes. - `forfeit_confirmation_required`: Ending this would forfeit a remaining balance, and `forfeitRemaining` wasn't `true`. - `external_id_scopes_meter`: The product's `externalId` can't change while a meter is scoped to it, because the meter matches on that ID. - `percent_of_base_missing`: A percent-of line names prices in `of.lines` that aren't on the order. - `outcome_not_allowed`: `usage.outcome` was sent for an events meter, which has no outcomes. - `meter_not_priceable`: The meter can't be priced on its own: it has `groupBy`, or uses a dashboard-only feature. - `price_in_active_plan`: The price can't be archived while an active plan lists it. - `ambiguous_match`: Two rates match the same dimension values with equal specificity, so rating couldn't choose between them. - `meter_already_priced`: One measure would be priced by both a price and a rate card on the same order. - `no_common_currency`: The plan's lines share no currency. - `default_requires_upgrade_path`: `default: true` was sent on a plan with no `upgradePath`. - `plan_legacy`: The plan was converted from v2 without v1 prices, so it can't be used on a v1 order. - `upgrade_path_position_taken`: Another plan already has this `position` in the upgrade-path `group`. - `quantity_not_allowed`: A line has a `quantity`, but its price has no `unit` (a usage price or flat fee). - `quantity_out_of_range`: A `quantity` is outside the price's or line's `quantityLimits`. - `quantity_limits_wider_than_price`: A line's `quantityLimits` are wider than its price's. - `interval_mismatch`: A recurring price's interval neither divides the order's billing cycle evenly nor is a whole multiple of it. - `line_not_on_order`: An amendment change names a line from another order. - `no_material_changes`: The amendment's changes leave the order as it is. - `usage_billing_behind`: Usage for a past period hasn't been billed yet, so the usage line can't be replaced now. - `seats_exceed_quantity`: The new quantity is below the line's active seats. - `order_ambiguous`: Several orders share this `externalId`, so it can't name one of them. - `order_version_mismatch`: The order changed since the `expectedVersion` sent. - `preview_stale`: The order changed after the amendment was previewed. - `billing_unavailable`: Billing couldn't be reached to preview or apply the change. Nothing changed. - `commit_conflict`: The invoiced minimum overlaps another on the order in both time and scope. - `duplicate_outcome_key`: Two outcomes, or an outcome and `catchAll`, share a key. - `single_event_field_not_allowed`: A single-event meter sent a field only workflows or event aggregation use, such as `identifier`, `close` or `aggregation`. - `alias_unit_conflict`: `customer` is an alias of one unit and `customerUnit` names a unit outside its subtree. - `workflow_unit_conflict`: The event names a different customer unit from the open workflow it joins. - `incompatible_unit`: A strict meter reads a Quantity whose unit can't be converted to the meter's unit. - `unknown_provider`: Paid's model catalog doesn't know the inference provider. - `unknown_model`: Paid's model catalog doesn't know the model. - `range_too_large`: The range is longer than `granularity` allows. - `misaligned_range`: `startsAt` or `endsAt` doesn't fall on a bucket boundary in `timezone`. - `depth_exceeded`: The unit, or a moved subtree, would go below 16 levels. - `root_unit_immovable`: An update tried to move the customer's root unit. - `root_unit_always_billable`: A create or update tried to make the root unit non-billable. - `has_active_cap`: The unit can't be archived while it has an active spend cap. - `has_active_seat`: The unit can't be archived while it holds an active seat, or the customer is billed per seat, so its units can't be created, changed or archived. - `alias_held_by_draft_customer`: The alias value is a draft customer's external ID: usage sent under it before the alias existed made that draft. - `alias_system_managed`: The alias was made by Paid, when a customer's `externalId` changed or from a SalesBricks buyer, so it can't be updated, archived, unarchived or deleted. It has `systemManaged: true`. - `draft_has_billing`: The draft customer to merge has credit grants, pending spends or other billing postings. - `price_not_on_order`: `price` isn't on the order. - `price_not_seat_based`: `price` isn't a recurring price with `seats`. - `customer_unit_not_billable`: The customer unit has `effectiveBillable: false`, so it can't hold a seat. - `seat_limit_reached`: The seat line is full: a purchased line has `quantity` active seats, or an assigned line reached `quantityLimits.maximum`. - `unit_already_has_seat`: The unit already holds an active seat for this product. - `refill_rollover_conflict`: The grant sets both `refill` and `rollover`. - `credit_currency_key_reserved`: The credit currency `key` is an ISO 4217 currency code. - `insufficient_credits`: The customer's spendable balance in the credit currency doesn't cover the hold. Nothing was reserved. - `price_not_one_time`: The auto top-up's `price` isn't a one-time price. - `price_grants_mismatch`: The auto top-up's `price` doesn't grant the rule's credit currency. - `payment_method_required`: `collection: "chargeAutomatically"` was set, but there is no card to charge: the customer has no payment method on file, or the one named (or the default) is a bank transfer account. - `auto_top_up_conflict`: The customer already has an enabled auto top-up for this credit currency. - `invalid_request`: The request was rejected. - `not_found`: The requested resource does not exist. - `conflict`: The request conflicts with the resource's current state. - `rate_limited`: Too many requests in too short a time. - `api_error`: An unexpected error.
- `docUrl` (string, required) — A link to this code's entry on the errors page, or to the page itself for an undocumented code.
- `message` (string, required) — A human-readable explanation of what went wrong.
- `requestId` (string, required) — The ID of the request, also returned in the `Request-Id` header. Include it when contacting support.
- `type` (enum, required) — The category of error.
  - Allowed values: `invalid_request_error`, `authentication_error`, `permission_error`, `idempotency_error`, `rate_limit_error`, `api_error`
- `param` (string, optional) — The request field or header the error relates to, when there is one.

### OrderLinePriceCharged

One-time charge posting.

- `chargedAt` (datetime, required) — When charged.
- `invoice` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.

### OrderPriceLine

OrderPriceLine.

- `price` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.
- `quantity` (integer, optional, nullable) — Purchased quantity, or the minimum assigned-seat count.
- `quantityLimits` (NullableQuantityLimits, optional) — QuantityLimits or null.

### OrderLineRateCardCharged

One-time charge posting.

- `chargedAt` (datetime, required) — When charged.
- `invoice` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.

### OrderLineRateCardRateCard

The card.

- `rateCard` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.

### OrderLineLegacyCharged

One-time charge posting.

- `chargedAt` (datetime, required) — When charged.
- `invoice` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.

### OrderLineLegacyLegacy

Preserved legacy line.

- `pricing` (map from string to any, required) — Original v2 pricing snapshot.
- `product` (string, required) — A Paid ID, external ID or resource key, as supported by the referenced resource.

### NegotiatedPricingContractedPrice

A contracted price: `pricing` (per unit, graduated or volume) replaces the target's list pricing, before the rate card's modifiers apply. A rate is a decimal string in minor units of the order's currency, or in the target's credit currency when the target is priced in credits: $0.005 is `"0.5"`.

- `pricing` (FixedPricing, required) — Per-unit, graduated or volume pricing.

### NegotiatedPricingSource

Where the entry came from. Only `{ type: "manual" }` exists now: the entry was written on this order. Defaults to manual. More types may be added.

- `type`: `manual` (manual)

### NegotiatedPricingTarget

The charges a negotiated pricing entry changes. Within one kind of entry, `rate`, `price` and `overage` are the most specific, then `rateCard`, then `product`. More types may be added.

- `type`: `rate` (rate)
  - `rate` (NegotiatedPricingRateTarget, required) — One rate of a rate card on the order.
- `type`: `price` (price)
  - `price` (NegotiatedPricingTargetPricePrice, required) — The price.
- `type`: `overage` (overage)
  - `overage` (NegotiatedPricingTargetOverageOverage, required) — The credit currency.
- `type`: `rateCard` (rateCard)
  - `rateCard` (NegotiatedPricingTargetRateCardRateCard, required) — The rate card.
- `type`: `product` (product)
  - `product` (NegotiatedPricingTargetProductProduct, required) — The product.

### NegotiatedPricingDiscount

A percentage off, banded or not, or an amount off.

- `type`: `percentage` (percentage)
  - `percentage` (NegotiatedPricingDiscountPercentagePercentage, required) — The percentage.
- `type`: `bandedPercentage` (bandedPercentage)
  - `bandedPercentage` (NegotiatedPricingBandedPercentage, required) — The basis, the mode and the bands.
- `type`: `amount` (amount)
  - `amount` (NegotiatedPricingAmountDiscount, required) — `amountOff` is taken off each billing period, an integer in minor units of the order's currency. It is prorated by day for a partial period, split across the target's lines and floored at zero.

### NegotiatedPricingSurcharge

A surcharge: a multiplier above 1 on the charge.

- `multiplier` (string, required) — What the charge is multiplied by, above 1, as a decimal string: `"1.2"` adds 20%.

### NullableQuantityLimits

QuantityLimits or null.

- `maximum` (integer, optional, nullable) — Maximum permitted purchased quantity or active seats.
- `minimum` (integer, optional, nullable) — Minimum permitted purchased quantity.

### FixedPricing

Per-unit, graduated or volume pricing.

- `type`: `perUnit` (perUnit)
  - `perUnit` (PerUnitPricing, required) — PerUnitPricing.
- `type`: `graduated` (graduated)
  - `graduated` (TieredPricing, required) — TieredPricing.
- `type`: `volume` (volume)
  - `volume` (TieredPricing, required) — TieredPricing.

### NegotiatedPricingRateTarget

One rate of a rate card on the order.

- `rate` (string, required) — The rate's key, unique within its rate card and kept across its versions.
- `rateCard` (string, required) — The rate card that holds the rate, by key or `rc_` ID.

### NegotiatedPricingTargetPricePrice

The price.

- `price` (string, required) — A usage, recurring or one-time price on the order, by `prc_` ID or key.

### NegotiatedPricingTargetOverageOverage

The credit currency.

- `creditCurrency` (string, required) — The credit currency whose overage this changes.

### NegotiatedPricingTargetRateCardRateCard

The rate card.

- `rateCard` (string, required) — The rate card, by key or `rc_` ID.

### NegotiatedPricingTargetProductProduct

The product.

- `product` (string, required) — The product, by `prod_` ID or your own ID.

### NegotiatedPricingDiscountPercentagePercentage

The percentage.

- `percentOff` (string, required) — The percentage taken off, from 0 to 100, as a decimal string: `"12.5"` is 12.5%.

### NegotiatedPricingBandedPercentage

The basis, the mode and the bands.

- `bands` (list of NegotiatedPricingBand, required) — The bands in increasing order of `upTo`, ending with one whose `upTo` is null.
- `basis` (NegotiatedPricingBasis, required) — The total that selects a band: one measure of one meter, summed over the billing period across every rate that reads it.
- `mode` (enum, required) — `graduated` gives each band's percentage to the usage inside that band, filled in event time. `volume` gives the percentage of the band the total reaches to all the period's usage, so it is final only when the period ends. More values may be added.
  - Allowed values: `graduated`, `volume`

### NegotiatedPricingAmountDiscount

`amountOff` is taken off each billing period, an integer in minor units of the order's currency. It is prorated by day for a partial period, split across the target's lines and floored at zero.

- `amountOff` (Money, required) — Money in integer minor currency units.

### PerUnitPricing

PerUnitPricing.

- `unitAmount` (string, required) — Price in minor currency units. Fractions are only allowed for usage rates; recurring, one-time and seat prices require whole minor units.
- `per` (string, optional, default: 1) — Units priced by unitAmount. Values above 1 are only for usage pricing; recurring, one-time and seat prices require 1.

### TieredPricing

TieredPricing.

- `tiers` (list of PriceTier, required) — Increasing bounds, ending with an open tier.
- `per` (string, optional, default: 1) — Units priced by each tier rate. Values above 1 are only for usage pricing; recurring, one-time and seat prices require 1.

### NegotiatedPricingBand

One band of a banded percentage discount.

- `targets` (list of NegotiatedPricingBandTarget, required) — The percentage off for each target in this band, as a list keyed by `target`. Every band lists the same targets.
- `upTo` (string, required, nullable) — The band's inclusive upper limit on the basis total, as a decimal string in the basis measure's unit, or null for the last band.

### NegotiatedPricingBasis

The total that selects a band: one measure of one meter, summed over the billing period across every rate that reads it.

- `measure` (string, required) — The measure on the meter whose total for the billing period selects the band. A band's `upTo` is in this measure's unit.
- `meter` (string, required) — The meter, by key.

### Money

Money in integer minor currency units.

- `amount` (integer, required) — Signed integer amount in the currency's minor units.
- `currency` (string, required) — Lowercase ISO 4217 currency code, e.g. `usd`. Must be enabled on your account.

### PriceTier

PriceTier.

- `unitAmount` (string, required) — Tier rate in minor currency units. Fractional rates are only allowed for usage pricing; recurring, one-time and seat rates require whole minor units.
- `upTo` (string, required, nullable) — A non-negative exact decimal string, up to 15 fractional places.
- `flatAmount` (integer, optional) — Flat amount in minor currency units.

### NegotiatedPricingBandTarget

The percentage taken off one target's charge in a band.

- `percentOff` (string, required) — The percentage taken off, from 0 to 100, as a decimal string: `"12.5"` is 12.5%.
- `target` (NegotiatedPricingTarget, required) — The charges a negotiated pricing entry changes. Within one kind of entry, `rate`, `price` and `overage` are the most specific, then `rateCard`, then `product`. More types may be added.

## Examples

**Response**

```json
{
  "id": "ord_5Kp2Wz",
  "object": "order",
  "createdAt": "2024-01-15T09:30:00Z",
  "activatedAt": "2024-01-15T09:30:00Z",
  "billingContacts": [],
  "billingCycle": {
    "interval": "month",
    "anchorDay": 1,
    "intervalCount": 1
  },
  "billTo": "cus_9Aa2Bc",
  "commits": [],
  "currency": "usd",
  "customer": "cus_9Aa2Bc",
  "endsAt": "2028-01-01T00:00:00Z",
  "externalId": "sf-opp-0061x00000AbCdE",
  "invoiceSettings": {
    "autoFinalize": true,
    "autoSend": true,
    "sendPaymentReminders": true
  },
  "lines": [
    {
      "type": "price",
      "charged": null,
      "displayName": "Contract review pages (2027 MSA)",
      "endedByAmendment": null,
      "endsAt": null,
      "id": "ordl_3Hq8Ta",
      "invoice": "now",
      "name": "Pages reviewed",
      "object": "orderLine",
      "plan": null,
      "price": {
        "price": "prc_pages_graduated"
      },
      "startsAt": "2027-01-01T00:00:00Z"
    }
  ],
  "livemode": true,
  "metadata": {
    "crmId": "0015g00000XyZ"
  },
  "name": "Halberd 2027",
  "negotiatedPricing": [
    {
      "type": "contractedPrice",
      "addedByAmendment": null,
      "contractedPrice": {
        "pricing": {
          "type": "perUnit",
          "perUnit": {
            "unitAmount": "0.8",
            "per": "1"
          }
        }
      },
      "displayName": "Contracted rate",
      "endedByAmendment": null,
      "endsAt": null,
      "key": "large_model_rate",
      "reportAs": "discount",
      "source": {
        "type": "manual"
      },
      "startsAt": "2027-01-01T00:00:00Z",
      "target": {
        "type": "rate",
        "rate": {
          "rate": "large_model",
          "rateCard": "lumen_api"
        }
      }
    }
  ],
  "plan": {
    "plan": "string",
    "version": 1
  },
  "purchaseOrderNumber": "PO-88213",
  "startsAt": "2027-01-01T00:00:00Z",
  "status": "draft",
  "updatedAt": "2024-01-15T09:30:00Z",
  "version": 1,
  "paymentTerms": "net45"
}
```

**SDK Code**

```python
import requests

url = "https://api.paid.ai/v1/orders/order/resume"

headers = {
    "Paid-Beta": "orders=v1",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.paid.ai/v1/orders/order/resume';
const options = {
  method: 'POST',
  headers: {'Paid-Beta': 'orders=v1', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.paid.ai/v1/orders/order/resume"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Paid-Beta", "orders=v1")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.paid.ai/v1/orders/order/resume")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Paid-Beta"] = 'orders=v1'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.paid.ai/v1/orders/order/resume")
  .header("Paid-Beta", "orders=v1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.paid.ai/v1/orders/order/resume', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Paid-Beta' => 'orders=v1',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.paid.ai/v1/orders/order/resume");
var request = new RestRequest(Method.POST);
request.AddHeader("Paid-Beta", "orders=v1");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Paid-Beta": "orders=v1",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.paid.ai/v1/orders/order/resume")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```