How platform invoices can be paid
LogsGET /payment-instructions
Returns, without sign-in, the payment method keys the platform accepts for its own invoices (taken from the enabled payment connectors at runtime) and the label and value pairs the operator configured, such as account details. instructions is empty when none are configured. Responses may be cached for 5 minutes.
Returns
200 Accepted methods and payment instructions
Show attributes
methodsPayment method keys accepted for platform invoices
instructionsOperator-configured payment details; empty when none
Show child attributes
labelWhat the value is
valueThe value to use when paying
curl -X GET "$PUBLIC_API/payment-instructions"
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$PUBLIC_API/payment-instructions", {
method: "GET"
});
const data = await res.json();
import requests
res = requests.get(
"$PUBLIC_API/payment-instructions"
)
data = res.json()
req, _ := http.NewRequest("GET", "$PUBLIC_API/payment-instructions", nil)
resp, err := http.DefaultClient.Do(req)
Response 200
{
"methods": [
"method"
],
"instructions": [
{
"label": "Account number",
"value": "value"
}
]
}