API Information
GET
/v1/
const url = 'https://api.loyx.se/partners/v1/';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.loyx.se/partners/v1/Get API version information.
documentation points at the live Swagger UI where it is served (local
and development, docs_urls_for) and at the public developer docs site
(PARTNERS_DOCS_URL) everywhere else, never at a link that 404s.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Api Info V1 Get
object
key
additional properties
any
Example generated
{}internal_server_error or database_error (type internal_error): our fault. Retry with backoff; quote request_id.
Media typeapplication/json
ErrorResponse
Standard error response format.
object
error
required
ErrorDetail
Error detail structure (Stripe-like format).
object
code
required
Code
Machine-readable error code
string
details
Any of:
Array<object>
FieldErrorDetailOne failing field of a validation error.
object
message
required
Message
Why the value was refused
string
param
required
Param
Dotted path of the field, e.g. items.0.unit_price.value
string
null
message
required
Message
Human-readable error message
string
type
required
Type
Error type category
string
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}