Grant customer credits by external ID
Immediately grant credits to a customer looked up by external ID using an active credit currency key.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Path parameters
externalId
Customer ID from the integrator’s system, stored on Paid as externalId.
Request
Body
creditCurrencyKey
Stable machine-readable key for the active credit currency to grant.
amount
Number of credits to grant, exact to at most 6 decimal places. This is not a monetary amount.
startsAt
When these credits become spendable, as an RFC3339 datetime with timezone. Must be at or before the current server time. Defaults to the current server time when omitted.
expiresAt
When these credits expire, as an RFC3339 datetime with timezone. Omit or set null for credits that do not expire.
idempotencyKey
Unique key for this grant within your organization. A retry with the same key and request body returns the original grant with created: false instead of granting again. Reusing a key for a different customer or request body returns 409.
Response
201
created
True when this request created a new grant. False when an earlier request with the same idempotencyKey already created it.
customer
creditCurrency
grant
createdAt
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error