Skip to navigation

Update a credit auto top-up

Draft scaffold — not implemented or available in the API.

Changes only the fields sent. Setting enabled to true resumes a paused rule and checks a balance that is still below the threshold straight away. {creditAutoTopUp} takes the rule’s ctu_ ID.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

creditAutoTopUpstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

This endpoint is in the credits=v1 beta. Send this header to use it.

Allowed values:

Request

Body
collectionenumOptionalDefaults to sendInvoice

How the top-up invoice is collected.

Allowed values:
creditCurrencystringOptional1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
customerstringOptional1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
enabledbooleanOptionalDefaults to true

Whether the rule can trigger; true resumes it.

limitsobjectOptional
Monthly purchase limits.
metadatamap from strings to stringsOptional

String key-value pairs of your own, up to 500 characters per value. Always updatable.

orderstringOptional1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
paymentMethodstring or nullOptional1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
pricestringOptional1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
quantityintegerOptional
Quantity purchased on each trigger.
thresholdobjectOptional

A downward available-balance crossing threshold.

Response

200
idstring
The CreditAutoTopUp ID.
objectenum

The type of object. Always creditAutoTopUp.

Allowed values:
createdAtdatetime
When the object was created.
archivedAtdatetime or null
When this resource was archived, or null.
creditCurrencystring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
customerstring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
lastAmendmentstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
lastTriggeredAtdatetime or null
Last purchase trigger.
limitsobject
Monthly purchase limits.
livemodeboolean

true for an object on a live account, false on a test account.

metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

orderstring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
pausedReasonstring or null
Why the rule is paused.
paymentMethodstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
pricestring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
quantityinteger
Quantity purchased on each trigger.
statusenum
Rule lifecycle status.
Allowed values:
thresholdobject

A downward available-balance crossing threshold.

collectionenumOptionalDefaults to sendInvoice

How the top-up invoice is collected.

Allowed values:
enabledbooleanOptionalDefaults to true

Whether the rule can trigger; true resumes it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error