Skip to main content
PUT
Update an deal

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

id
string
required

Body

application/json

Schema for updating an deal

status
enum<string>

New status for the deal

Available options:
paid,
canceled,
unpaid,
scheduled,
draft
Example:

"paid"

paidAt
string<date-time> | null

Timestamp when the deal was paid (ISO 8601)

Example:

"2024-06-15T12:00:00.000Z"

internalNote
string | null

Internal note for the deal

Example:

"Payment received via bank transfer"

Response

200 - application/json

Deal updated successfully.

Response after updating an deal

id
string<uuid>
required

Unique identifier for the deal

Example:

"b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a"

status
enum<string>
required

Current status of the deal

Available options:
draft,
overdue,
paid,
unpaid,
canceled,
scheduled
Example:

"paid"

dueDate
string
required

Due date of the deal in ISO 8601 format

Example:

"2024-06-30T23:59:59.000Z"

issueDate
string
required

Issue date of the deal in ISO 8601 format

Example:

"2024-06-01T00:00:00.000Z"

amount
number
required

Total amount of the deal

Example:

1500.75

currency
string
required

Currency code (ISO 4217) for the deal amount

Example:

"USD"

merchant
object | null
required

Merchant details

paidAt
string | null
required

Timestamp when the deal was paid (ISO 8601), or null if unpaid

Example:

"2024-06-15T12:00:00.000Z"

reminderSentAt
string | null
required

Timestamp when a payment reminder was sent (ISO 8601), or null if never sent

Example:

"2024-06-10T09:00:00.000Z"

note
string | null
required

Optional note attached to the deal

Example:

"Thank you for your business."

discount
number | null
required

Discount amount applied to the deal, or null if none

Example:

50

subtotal
number | null
required

Subtotal before discounts, or null if not calculated

Example:

1400

viewedAt
string | null
required

Timestamp when the deal was viewed by the merchant (ISO 8601), or null if never viewed

Example:

"2024-06-05T14:30:00.000Z"

merchantName
string | null
required

Name of the merchant as shown on the deal, or null if not set

Example:

"Acme Corporation"

sentTo
string<email> | null
required

Email address to which the deal was sent, or null if not sent

Example:

"billing@acme.com"

sentAt
string | null
required

Timestamp when the deal was sent (ISO 8601), or null if not sent

Example:

"2024-06-02T08:00:00.000Z"

createdAt
string
required

Timestamp when the deal was created (ISO 8601)

Example:

"2024-06-01T07:00:00.000Z"

updatedAt
string
required

Timestamp when the deal was last updated (ISO 8601)

Example:

"2024-06-15T10:00:00.000Z"

pdfUrl
string<uri> | null
required

URL to download the deal PDF, or null if not generated

Example:

"https://app.abacuslabs.co/api/download/deal?token=eef58951-1682-4062-b010-425866032390"

previewUrl
string<uri> | null
required

URL to preview the deal in the browser, or null if not generated

Example:

"https://app.abacuslabs.co/i/eef58951-1682-4062-b010-425866032390"

dealNumber
string

Deal number as shown on the deal (auto-generated if not provided)

Example:

"D-0001"