Top up your float by pay by bank.
Header Parameters
Body Parameters
Amount in pounds, with at most 2 decimals.
The bank-code of your bank from getBanksList?business=1.
Optional. Only GBP.
GBPOptional. Your own reference, shown back on getTopUpStatus.
Response
The top-up link.
Response Attributes
Open this to approve the payment at your bank.
Keep this to check the top-up with getTopUpStatus.
A bad request, with the reason in message: no or badly formatted amount, an amount outside the limits, no bankCode, or a bank that can't take this payment.
Response Attributes
Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.
Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.
Alternative error message field used by a subset of endpoints (notably getToken
and authentication failures). Integrators should check for both message and
error when parsing failure responses.
Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on
most error paths; a few auth-layer failures omit it.
Authentication failed. The body is {"status": false, "message": ...} with one of:
Access denied - token missing (no Authorization: Bearer header),
Unauthorized - Invalid or expired token (bad or expired token; tokens live 10 hours),
or Token expired - request a new token (Spendstream revoked your tokens). In every case
call getToken again.
Response Attributes
Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.
Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.
Alternative error message field used by a subset of endpoints (notably getToken
and authentication failures). Integrators should check for both message and
error when parsing failure responses.
Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on
most error paths; a few auth-layer failures omit it.
Top-up by bank isn't switched on for your account, or your account doesn't use a float.
Response Attributes
Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.
Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.
Alternative error message field used by a subset of endpoints (notably getToken
and authentication failures). Integrators should check for both message and
error when parsing failure responses.
Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on
most error paths; a few auth-layer failures omit it.
Too many unfinished top-up links. Complete or wait for the earlier ones to expire, then try again.
Response Attributes
Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.
Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.
Alternative error message field used by a subset of endpoints (notably getToken
and authentication failures). Integrators should check for both message and
error when parsing failure responses.
Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on
most error paths; a few auth-layer failures omit it.
The payment provider didn't accept the request. Try again.
Response Attributes
Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.
Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.
Alternative error message field used by a subset of endpoints (notably getToken
and authentication failures). Integrators should check for both message and
error when parsing failure responses.
Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on
most error paths; a few auth-layer failures omit it.