Coinfat

Authentication

Errors

Errors use standard HTTP status codes and a JSON body with a message.

Status codes

401Missing or invalid API key.
403Wrong scope, non-store token, or IP not allowed.
404Invoice not found, or not yours.
422Validation error. See the errors map.
429Rate limited.

Validation errors

A 422 includes an errors map keyed by field, each with an array of messages.

422
{
"message": "The given data was invalid.",
"errors": {
"amount": ["The amount must be greater than 0."],
"duration": ["The selected duration is invalid."]
}
}