Skip to navigation

Archive a credit auto top-up

Draft scaffold — not implemented or available in the API.

Archives the rule so it stops buying credits. It stays readable, and purchases it already made stay on the order. {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:

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