Create delayed charge

POST/api/v1/delayed-charges

Create a new delayed charge or credit in pending status.

Operation ID: create_delayed_charge_api_v1_delayed_charges_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

typestring

Type: 'charge' or 'credit'

customer_idstringrequired

Customer to charge

amountintegerrequired

Amount in cents

descriptionstringrequired

Description

line_itemsarray · DelayedChargeLineItem

Optional line items

service_datestring

Date service was performed (YYYY-MM-DD)

internal_notesstring

Internal notes

currencystring

Currency code

Responses

201Successful Response

successboolean
messagestring
codestring
dataDelayedChargeResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject