Grant prepaid customer balance from a captured payment
/v1/customers/{customerId}/balance/grant-from-paymentAuthorizationBearer token · headerrequiredPublic API key bearer token.
customerIdstringrequiredenvironmentstringrequiredMerchant environment — key-bound keys resolve it from the credential; unbound callers default to sandbox.
sandboxproductionmerchantAccountIdstringrequiredIdempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
application/jsonentryIdstringpaymentIdstringrequiredtargetsCustomerBalanceTargetsShow propertiesHide properties
lineTypesstring[]priceIdsstring[]meterIdsstring[]descriptionstringeffectiveAtstring<date-time>expiresAtstring<date-time>metadataMetadataCreated
dataobjectrequiredrequestIdstringrequiredBad request, including malformed JSON
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectMissing or invalid API key
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectConflict, including idempotency body drift
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectValidation failed
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectAPI key rate limit exceeded
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectError
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject